Skip to content

Instantly share code, notes, and snippets.

@craftamap
Created July 15, 2020 09:31
Show Gist options
  • Save craftamap/548c13305a0d649f8edb0c4073d5ebf7 to your computer and use it in GitHub Desktop.
Save craftamap/548c13305a0d649f8edb0c4073d5ebf7 to your computer and use it in GitHub Desktop.
Good looking markdown css
@media print {
@page {
margin: 0;
}
body {
margin: 2.5cm;
}
}
img {
max-width: 100%;
}
h1,
h2,
h3,
h4,
h5 {
font-family: "Roboto Slab", serif;
}
p,
ul,
ol {
font-family: "Lato", sans-serif;
}
code {
background-color: #DDD;
padding: 3px;
}
@media screen {
body {
width: 800px;
margin: 0 auto;
}
}
<link href="https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;1,400;1,700&amp;family=Roboto+Slab:wght@400;700&amp;display=swap" rel="stylesheet">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment