Skip to content

Instantly share code, notes, and snippets.

@stephanbogner
Created August 8, 2018 16:06
Show Gist options
  • Save stephanbogner/c28fbd737d8df00968d403cf1c201549 to your computer and use it in GitHub Desktop.
Save stephanbogner/c28fbd737d8df00968d403cf1c201549 to your computer and use it in GitHub Desktop.
A theme for MacDown which is inspired by Dropbox Paper
/* Version from 180808 */
* {
margin: 0;
padding: 0;
}
@media only screen and (max-width: 320px) {
p,h1,h2,h3,h4,h5,ul,ol,hr {
padding-left: 0.5rem;
padding-right: 0.5rem;
}
h1{
font-size: 1.5rem;
line-height: 1.8rem;
}
}
@media only screen and (min-width: 320px) and (max-width: 720px) {
p,h1,h2,h3,h4,h5,ul,ol,hr {
padding-left: 1.4rem;
padding-right: 1.4rem;
}
h1{
font-size: 2rem;
line-height: 2.4rem;
}
}
@media only screen and (min-width: 720px) and (max-width: 1024px) {
p,h1,h2,h3,h4,h5,ul,ol,hr {
padding-left: 1.8rem;
padding-right: 1.8rem;
}
h1{
font-size: 2.5rem;
line-height: 3rem;
}
}
@media only screen and (min-width: 1024px) {
p,h1,h2,h3,h4,h5,ul,ol,hr {
padding-left: 2.5rem;
padding-right: 2.5rem;
}
h1{
font-size: 2.5rem;
line-height: 3rem;
}
}
body {
font-family: "iAWriterDuospace-Regular", Helvetica, Arial, sans-serif;
font-size: 16px;
color: black;
line-height: 1.4em;
background-color: #fff;
margin-top: 3.125rem;
margin-bottom: 4.375rem;
}
p {
color: #1b2733;
margin-top: 0.8125rem;
margin-bottom: 0.8125rem;
font-size: 1rem;
line-height: 1.625rem;
}
h1 {
font-weight: bold;
margin-top: 1.875rem;
margin-bottom: 2rem;
}
h2 {
font-weight: normal;
margin-top: 1.8725rem;
margin-bottom: 0.75rem;
font-size: 1.875rem;
line-height: 2.25rem;
}
h3 {
font-weight: bold;
margin-top: 1.125rem;
margin-bottom: 0.375rem;
font-size: 1.3125rem;
line-height: 1.75rem;
}
hr{
border: 0;
margin-top: 2.5rem;
margin-bottom: 2.5rem;
border-bottom: 1px solid #c1c7cd;
box-sizing: border-box;
}
figcaption{
color: #637282;
font-size: 0.875rem;
font-style: italic;
line-height: 1.3125rem;
text-align: center;
}
a{
text-decoration: none;
color: #a6a96d;
}
ul li{
margin-left: 1.9rem;
padding-left: 0.6rem;
}
ol li{
margin-left: 2.5rem;
}
p a{
word-wrap: break-word;
}
p,
h1,
h2,
h3,
h4,
h5,
ul,
ol,
hr {
max-width: 740px;
margin-left: auto;
margin-right: auto;
}
img {
width: 100%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment