Skip to content

Instantly share code, notes, and snippets.

@diamondburned
Created December 11, 2023 04:55
Show Gist options
  • Save diamondburned/26a88119a388b9d3c5ad5dc96128c81e to your computer and use it in GitHub Desktop.
Save diamondburned/26a88119a388b9d3c5ad5dc96128c81e to your computer and use it in GitHub Desktop.
Advent of Code CSS but actually good
* {
box-sizing: border-box;
}
body {
margin: 0 auto;
padding: 1em 1.5em;
min-height: 100vh;
max-width: 800px;
min-width: auto;
font-family: monospace;
font-weight: 400;
}
html {
background: #0f0f23;
}
header {
overflow: auto;
padding-bottom: 0.5em;
margin-bottom: 1.5em;
}
body > pre {
color: white;
font-size: 0.9em;
}
article {
width: auto;
}
article h2 + * {
white-space: break-spaces;
}
#sponsor {
display: none;
}
#aoc-extension {
position: absolute;
width: 100%;
left: 0;
overflow: auto;
}
#aoc-extension-graphs > div {
height: 40vh;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment