2025-10-13 14:43:58 +02:00

85 lines
1.1 KiB
CSS

*, ::before, *::after {
box-sizing: border-box;
}
:root {
color-scheme: dark;
}
body {
font-family: system-ui;
color: white;
background-color: #141414;
padding: 1rem;
max-width: 90%;
margin: 0 auto;
}
h1 {
font-size: 2.5rem;
}
h2 {
font-size: 2rem;
}
h3 {
font-size: 1rem;
}
h4 {
font-size: 0.5rem;
}
a {
font-weight: bold;
color: white;
}
a:has(code) {
color: #d5c4a1;
}
p code {
color: #d5c4a1;
background-color: #1d2021;
padding: 0.25rem 0.5rem;
border-radius: 0.5rem;
font-size: 1rem;
}
pre code {
border-radius: 0.5rem;
font-size: 1rem;
}
h1, h2, h3, h4, h5, h6 {
color: black;
isolation: isolate;
position: relative;
max-width: max-content;
&::before {
content: "";
position: absolute;
top: -0.25em;
bottom: -0.25em;
right: -1em;
left: -999rem;
z-index: -1;
border-radius: 0.5rem;
background-color: #ccc;
}
}
h2 {
position: sticky;
top: 0;
z-index: 10;
}
table-of-contents > ul {
list-style: none;
padding-left: 0;
font-size: 1.25rem;
}