Skip to content

Instantly share code, notes, and snippets.

@chriskrycho
Created October 20, 2023 16:43
Show Gist options
  • Save chriskrycho/e623c7fdc8db8bdc3ed0606704f50750 to your computer and use it in GitHub Desktop.
Save chriskrycho/e623c7fdc8db8bdc3ed0606704f50750 to your computer and use it in GitHub Desktop.
My custom style sheet for danluu.com
html {
font: 17px/1.4 Palatino;
}
body {
max-width: 36rem;
margin-left: clamp(1rem, 20%, calc(50% - 21rem));
margin-right: clamp(1rem, 20%, calc(50% - 21rem));
}
pre {
background: #f8f8f8;
padding-top: 1em;
overflow: scroll;
white-space: pre;
}
code {
background: #f8f8f8;
}
pre code {
font-size: 14px;
}
sup {
line-height: 0;
font-size: 0.8em;
font-family: Sans-Serif;
vertical-align: 0.5em;
}
blockquote {
font-style: italic;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment