Skip to content

Instantly share code, notes, and snippets.

@saidaspen
Last active May 20, 2023 21:23
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save saidaspen/cbf216aa4be971a65b55426b884aee72 to your computer and use it in GitHub Desktop.
Save saidaspen/cbf216aa4be971a65b55426b884aee72 to your computer and use it in GitHub Desktop.
AoC CSS
input ~ span:before,
.leaderboard-entry,
.privboard-row {
font-family: "Source Code Pro", monospace;
letter-spacing: 1px;
}
body * {
text-shadow: none !important;
}
article em {
font-weight: bold;
color: #22ff68
}
main > article + p,
main > article:not(:last-of-type) {
opacity: 0.8;
}
code {
font-family: "Source Code Pro", monospace;
letter-spacing: 1px;
color: #ff6e6e
}
article code em {
color: #ff6e6e
}
@WeirdAlex03
Copy link

On line 23, letter-spacing: 1.px is invalid; you need to drop the decimal point.

Also, adding

article code em {
    color: #ff6e6e
}

keeps code blocks red even if they're emphasized as <code><em>... (like in 2020 Day 1 - second-to-last paragraph).

@saidaspen
Copy link
Author

@WeirdAlex03 thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment