| 1 |
:root { |
| 2 |
color-scheme: dark; |
| 3 |
|
| 4 |
--light-bg: #FFFFFF; |
| 5 |
--light-fg: #000000; |
| 6 |
|
| 7 |
--dark-bg: #1C1B22; |
| 8 |
--dark-fg: #FBFBFE; |
| 9 |
|
| 10 |
--md-opacity: 60%; |
| 11 |
} |
| 12 |
|
| 13 |
body { |
| 14 |
background-color: light-dark(var(--light-bg), var(--dark-bg)); |
| 15 |
color: light-dark(var(--light-fg), var(--dark-fg)); |
| 16 |
|
| 17 |
font-size: 20px; |
| 18 |
line-height: 1.3; |
| 19 |
|
| 20 |
max-width: 1000px; |
| 21 |
|
| 22 |
margin: 1em 4em; |
| 23 |
} |
| 24 |
|
| 25 |
@media only screen and (max-width: 1000px) { |
| 26 |
body { |
| 27 |
margin: 1em 2em; |
| 28 |
} |
| 29 |
} |
| 30 |
|
| 31 |
@media only screen and (max-width: 600px) { |
| 32 |
body { |
| 33 |
font-size: 18px; |
| 34 |
line-height: 1.2; |
| 35 |
|
| 36 |
margin: 0.5em 1.5em; |
| 37 |
} |
| 38 |
} |
| 39 |
|
| 40 |
a { |
| 41 |
color: light-dark(#0000EE, #8C8CFF); |
| 42 |
} |
| 43 |
|
| 44 |
a:visited { |
| 45 |
color: light-dark(#551A8B, #FFADFF); |
| 46 |
} |
| 47 |
|
| 48 |
a:active { |
| 49 |
color: light-dark(#EE0000, #FA6464); |
| 50 |
} |
| 51 |
|
| 52 |
h1, h2 { |
| 53 |
font-family: sans-serif; |
| 54 |
} |
| 55 |
|
| 56 |
|
| 57 |
h1::before { content: '# '; opacity: var(--md-opacity); } |
| 58 |
h2::before { content: '## '; opacity: var(--md-opacity); } |
| 59 |
|
| 60 |
strong { |
| 61 |
&::before, &::after { content: '**'; opacity: var(--md-opacity); } |
| 62 |
} |
| 63 |
|
| 64 |
a { |
| 65 |
white-space: nowrap; |
| 66 |
text-decoration: none; |
| 67 |
} |
| 68 |
|
| 69 |
a:hover { |
| 70 |
&, & code { |
| 71 |
text-decoration: underline; |
| 72 |
} |
| 73 |
} |
| 74 |
|
| 75 |
a:not(.anchor):not([data-footnote-ref]) { |
| 76 |
&::before { content: '['; opacity: var(--md-opacity); } |
| 77 |
&::after { content: ']'; opacity: var(--md-opacity); } |
| 78 |
} |
| 79 |
|
| 80 |
a[data-footnote-ref] { |
| 81 |
&::before { content: '[^'; opacity: var(--md-opacity); } |
| 82 |
&::after { content: ']'; opacity: var(--md-opacity); } |
| 83 |
} |
| 84 |
|
| 85 |
code { |
| 86 |
font-size: 1rem; |
| 87 |
display: inline-block; |
| 88 |
|
| 89 |
&::before, &::after { content: '`'; opacity: var(--md-opacity); } |
| 90 |
} |
| 91 |
|
| 92 |
ul { |
| 93 |
list-style-type: none; |
| 94 |
padding-left: 1rem; |
| 95 |
} |
| 96 |
|
| 97 |
ul li::before { |
| 98 |
content: '* '; |
| 99 |
font-family: monospace; |
| 100 |
opacity: var(--md-opacity); |
| 101 |
} |
| 102 |
|
| 103 |
section.footnotes li:target { |
| 104 |
animation-name: highlight; |
| 105 |
animation-duration: 2s; |
| 106 |
} |
| 107 |
|
| 108 |
@keyframes highlight { |
| 109 |
10%, 90% { |
| 110 |
background-color: light-dark( |
| 111 |
oklch(from var(--light-bg) calc(l - 0.1) c h), |
| 112 |
oklch(from var(--dark-bg) calc(l + 0.1) c h) |
| 113 |
); |
| 114 |
} |
| 115 |
|
| 116 |
100% { |
| 117 |
background-color: inherit; |
| 118 |
} |
| 119 |
} |