Skip to content

Instantly share code, notes, and snippets.

@corlaez
Last active August 28, 2022 03:23
Show Gist options
  • Save corlaez/ff269e4c88cb4f1625b8c961053ad1a9 to your computer and use it in GitHub Desktop.
Save corlaez/ff269e4c88cb4f1625b8c961053ad1a9 to your computer and use it in GitHub Desktop.
Modest Variation (Markdown css)

A modified modest css (https://github.com/markdowncss/modest)

Changes:

  1. Remove media print block that I intent to use but manage in a different file
  2. body padding is now 0. This allows elements like banners to reach the top and sides without gaps.
  3. p is now justified
  4. a links color changed to improve contrast
  5. Remove external fonts (google)
  6. Remove fluidity reference and overlapping code (I plan to use fluidity but manage it separately)
The MIT License (MIT)
Copyright (c) 2014-2015 John Otander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
pre,
code {
font-family: Menlo, Monaco, "Courier New", monospace;
}
pre {
padding: .5rem;
line-height: 1.25;
overflow-x: scroll;
}
a,
a:visited {
color: #0079cb;
}
a:hover,
a:focus,
a:active {
color: #2775a9;
}
.modest-no-decoration {
text-decoration: none;
}
html {
font-size: 12px;
}
@media screen and (min-width: 32rem) and (max-width: 48rem) {
html {
font-size: 15px;
}
}
@media screen and (min-width: 48rem) {
html {
font-size: 16px;
}
}
body {
line-height: 1.85;
}
p,
.modest-p {
font-size: 1rem;
margin-bottom: 1.3rem;
text-align: justify;
}
h1,
.modest-h1,
h2,
.modest-h2,
h3,
.modest-h3,
h4,
.modest-h4 {
margin: 1.414rem 0 .5rem;
font-weight: inherit;
line-height: 1.42;
}
h1,
.modest-h1 {
margin-top: 0;
font-size: 3.998rem;
}
h2,
.modest-h2 {
font-size: 2.827rem;
}
h3,
.modest-h3 {
font-size: 1.999rem;
}
h4,
.modest-h4 {
font-size: 1.414rem;
}
h5,
.modest-h5 {
font-size: 1.121rem;
}
h6,
.modest-h6 {
font-size: .88rem;
}
small,
.modest-small {
font-size: .707em;
}
html {
font-size: 18px;
max-width: 100%;
}
body {
color: #444;
font-family: 'Open Sans Condensed', sans-serif;
font-weight: 300;
margin: 0 auto;
max-width: 48rem;
line-height: 1.45;
padding: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: Arimo, Helvetica, sans-serif;
}
h1,
h2,
h3 {
margin-bottom: 1.15rem;
padding-bottom: .5rem;
}
h1 {
text-align: center;
padding: 4rem 0;
}
h2 {
text-align: center;
border-bottom: 2px solid #fafafa;
}
blockquote {
border-left: 8px solid #fafafa;
padding: 1rem;
}
pre,
code {
background-color: #fafafa;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment