style.css (5096B)
1 /** Variables **/ 2 3 :root 4 { 5 --Canvas-bg: #201b1b; 6 --Canvas-color: #fff; 7 --Pre-bg: #151515; 8 --Pre-color: #fff; 9 --Pre-border: #222; 10 --Main-color: #f2f2f2; 11 --Code-color: #2adba4; 12 --Accent1-color: #2adba4; /* green */ 13 --Accent2-color: #368aeb; /* blue */ 14 --Highlight-num: #43a60d; 15 --Highlight-esc: #dfad06; 16 --Highlight-str: #f77f1d; 17 --Highlight-pps: #458759; 18 --Highlight-slc: #a0a0a0; 19 --Highlight-com: #a0a0a0; 20 --Highlight-ppc: #94e39; 21 --Highlight-opt: #ffffff; 22 --Highlight-ipl: #4dc987; 23 --Highlight-lin: #555555; 24 --Highlight-kwa: #d9396a; 25 --Highlight-kwb: #8655e7; 26 --Highlight-kwc: #ffffff; 27 --Highlight-kwd: #00a48f; 28 } 29 30 img { 31 display: inline-block; 32 max-width: 100%; 33 } 34 35 pre, code, sample { 36 white-space: pre-wrap; 37 hyphens: none; 38 } 39 40 table { 41 max-width: 100%; 42 } 43 44 html { 45 font-size: 70.5%; 46 } 47 48 body { 49 line-height: 1.5; 50 font-size: 1.6rem; 51 max-width: 38em; 52 margin: auto; 53 padding: 13px; 54 } 55 56 /* Structural blocks */ 57 58 #page-wrapper 59 { 60 max-width: 88rem; 61 62 padding: 1rem 2rem 2rem; 63 64 margin-left: auto; 65 margin-right: auto; 66 } 67 68 69 /* Visual styles */ 70 71 html 72 { 73 background: var(--Canvas-bg); 74 color: var(--Canvas-color); 75 } 76 77 header 78 { 79 text-align: center; 80 } 81 82 ::selection 83 { 84 background: var(--Selection-bg); 85 color: var(--Selection-color); 86 } 87 88 /* shared gradient border */ 89 nav, footer 90 { 91 border-width: 0; 92 border-style: solid; 93 border-color: var(--Accent1-color); 94 border-image: linear-gradient(to right, var(--Accent1-color), var(--Accent2-color)) 2; 95 } 96 97 nav 98 { 99 font-size: 1.8rem; 100 border-bottom-width: 2px; 101 padding-top: 0.5rem; 102 padding-bottom: 0.5rem; 103 word-spacing: 5px; 104 text-align: center; 105 } 106 107 main 108 { 109 color: var(--Main-color); 110 text-rendering: optimizeLegibility; 111 } 112 113 footer 114 { 115 text-align: center; 116 padding-top: 1rem; 117 margin-top: 1rem; 118 border-top-width: 2px; 119 } 120 121 div#banner-text 122 { 123 display: flex; 124 flex-direction: column; 125 justify-content: center; 126 align-items: center; 127 } 128 129 .banner 130 { 131 display: flex; 132 flex-direction: row; 133 gap: 1rem; 134 justify-content: center; 135 align-items: center; 136 line-height: 1; 137 } 138 139 .banner-title 140 { 141 margin: 0; 142 font-size: 3.6rem; 143 font-weight: 200; 144 letter-spacing: 0.425em; 145 /* letter-spacing is applied even to the last letter, 146 so for proper centering, we have to remove it ourselves, sadly */ 147 margin-right: -0.425em; 148 } 149 150 .banner-title a 151 { 152 text-decoration:none; 153 color: var(--Main-color); 154 } 155 156 .banner-title a:hover 157 { 158 text-decoration:none; 159 color: var(--Accent1-color); 160 } 161 162 a { 163 color: var(--Accent2-color); 164 } 165 166 a:hover, a:focus 167 { 168 text-decoration: underline; 169 color: var(--Accent1-color); 170 } 171 172 a.nav-active { 173 color: var(--Accent1-color); 174 font-weight: 200; 175 } 176 177 nav a { text-decoration: none; } 178 179 a.here { text-decoration: none; } 180 181 hr 182 { 183 border: 0 none; 184 color: var(--Accent2-color); 185 background-color: currentColor; 186 height: 2px; 187 } 188 189 hr.footnotes { width: 40%; } 190 191 a.footnote 192 { 193 text-decoration: none; 194 margin-right: 0.4rem; 195 } 196 197 ul.toc { list-style: none; } 198 199 h5 { font-size: 1.6rem; } 200 h6 { font-size: 1.4rem; } 201 202 code, kbd, samp 203 { 204 color: var(--Code-color); 205 } 206 207 208 /** Typography */ 209 210 @supports (hyphens: auto) 211 { 212 main 213 { 214 text-align: justify; 215 hyphens: auto; 216 } 217 } 218 219 body 220 { 221 font-family: system-ui, sans-serif; 222 font-weight: 200; 223 } 224 225 table, th, td 226 { 227 border: 1px solid var(--Accent1-color); 228 border-collapse: collapse; 229 } 230 231 th, td 232 { 233 padding: 0.5em; 234 hyphens: none; 235 text-align: left; 236 } 237 238 .centered { text-align: center; } 239 240 /* Style definition file generated by highlight 3.52, http://www.andre-simon.de/ */ 241 /* highlight theme: Kwrite Editor */ 242 body.hl { background-color: #e0eaee; } 243 pre.hl { color: #000000; background-color:#e0eaee; font-size: 10pt; font-family: monospace; } 244 .hl.num { color: var(--Highlight-num); } 245 .hl.esc { color: var(--Highlight-esc); } 246 .hl.str { color: var(--Highlight-str); } 247 .hl.pps { color: var(--Highlight-pps); } 248 .hl.slc { color: var(--Highlight-slc); font-style: italic; } 249 .hl.com { color: var(--Highlight-com); font-style: italic; } 250 .hl.ppc { color: var(--Highlight-ppc); } 251 .hl.opt { color: var(--Highlight-opt); } 252 .hl.ipl { color: var(--Highlight-ipl); } 253 .hl.lin { color: var(--Highlight-lin); } 254 .hl.kwa { color: var(--Highlight-kwa); font-weight: bold; } 255 .hl.kwb { color: var(--Highlight-kwb); } 256 .hl.kwc { color: var(--Highlight-kwc); font-weight: bold; } 257 .hl.kwd { color: var(--Highlight-kwd); } 258 259 pre 260 { 261 box-sizing: border-box; 262 overflow: auto; 263 padding: 2rem; 264 margin-left: -2rem; 265 margin-right: -2rem; 266 border: 1px solid var(--Pre-border); 267 background: var(--Pre-bg); 268 color: var(--Pre-color); 269 } 270 271 pre code 272 { 273 color: inherit; 274 } 275 276 @media screen and (max-width: 34em) 277 { 278 .banner, .banner-title 279 { 280 display: block; 281 text-align: center; 282 margin: auto; 283 } 284 .banner 285 { 286 margin-bottom: 2rem; 287 } 288 } 289 290 @media screen and (max-width: 28em) 291 { 292 .banner-title 293 { 294 font-size: 3.2rem; 295 } 296 }