Created
December 6, 2023 20:08
-
-
Save remmycat/575476909f5d3131fe19d7c70b948fd3 to your computer and use it in GitHub Desktop.
Remmy's Advent of Code Userstyles (colors, mobile)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ==UserStyle== | |
@name AoC mods | |
@description Less jarring font and colors (my opinion) and mobile readability. On mobile wide content is scrollable. | |
@match https://adventofcode.com/* | |
==/UserStyle== */ | |
[title] { | |
text-decoration: underline; | |
text-decoration-style: dotted; | |
text-decoration-thickness: 2px; | |
text-decoration-color: #bbcade; | |
text-underline-offset: 4px; | |
text-decoration-skip-ink: none; | |
} | |
body { | |
color: #89afcf; | |
font-family: "Courier"; | |
line-height: 1.4; | |
/* This is iOS/macOS only */ | |
-webkit-font-smoothing: antialiased; | |
min-width: initial; | |
} | |
pre, code { | |
font-family: "Courier"; | |
} | |
article h2 { | |
color: #bbcade; | |
font-weight: bold; | |
font-size: 1.6em; | |
white-space: initial; | |
} | |
article p { | |
letter-spacing: -0.3px; | |
} | |
.day-success, .star-count, .star { | |
color: #d0d07a !important; | |
} | |
article em { | |
color: #bbcade; | |
text-shadow: none; | |
font-weight: bold; | |
} | |
article em.star { | |
text-shadow: none; | |
} | |
#sidebar { | |
display: none; | |
} | |
main { | |
display: flex; | |
flex-direction: column; | |
align-items: center; | |
} | |
main > * { | |
max-width: min(45em, calc(100vw - 40px)); | |
overflow-x: auto; | |
} | |
header > div { | |
display: flex; | |
flex-wrap: wrap; | |
flex-direction: row; | |
justify-content: space-between; | |
max-width: min(45em, calc(100vw - 40px)); | |
margin-inline: auto; | |
position: relative; | |
} | |
header > div:nth-child(1) { | |
align-items: flex-end; | |
margin-top: 40px; | |
} | |
header > div:nth-child(2) { | |
align-items: flex-start; | |
} | |
header .user { | |
position: absolute; | |
top: -30px; | |
right: 12px; | |
} | |
header nav, header ul { | |
display: flex !important; | |
flex-direction: row; | |
flex: 1; | |
flex-wrap: wrap; | |
justify-content: space-between; | |
} | |
header li { | |
display: block; | |
} | |
code { | |
color: #eee; | |
padding-inline: 2px; | |
} | |
code::before { | |
background-color: #333340; | |
border: none; | |
border-radius: 4px; | |
} | |
pre:has(code) { | |
max-width: 100%; | |
overflow-x: auto; | |
} | |
pre > code { | |
box-sizing: border-box; | |
padding: 20px; | |
} | |
pre > code::before { | |
border-radius: 8px; | |
} | |
a { | |
color: #11cd11; | |
} | |
* { | |
text-shadow: none !important; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment