diff options
| author | 2025-04-18 07:22:05 +0000 | |
|---|---|---|
| committer | 2025-11-02 06:20:02 +0000 | |
| commit | 2a36c3b01040159238f1b3a7f6847a7d91a2ca94 (patch) | |
| tree | 8c0f808fec6f2e00ee2e81e9cd287fe3bb891b46 /doc/style.css | |
| parent | Add .editorconfig (diff) | |
| download | penes-snac2-2a36c3b01040159238f1b3a7f6847a7d91a2ca94.tar.gz penes-snac2-2a36c3b01040159238f1b3a7f6847a7d91a2ca94.tar.xz penes-snac2-2a36c3b01040159238f1b3a7f6847a7d91a2ca94.zip | |
Commit my version of the stylesheet
Diffstat (limited to 'doc/style.css')
| -rw-r--r-- | doc/style.css | 380 |
1 files changed, 343 insertions, 37 deletions
diff --git a/doc/style.css b/doc/style.css index 5289332..ba57f04 100644 --- a/doc/style.css +++ b/doc/style.css | |||
| @@ -1,39 +1,345 @@ | |||
| 1 | body { max-width: 48em; margin: auto; line-height: 1.5; padding: 0.8em; word-wrap: break-word; } | 1 | :root { |
| 2 | pre { overflow-x: scroll; } | 2 | color-scheme: dark light; |
| 3 | blockquote { font-style: italic; } | 3 | |
| 4 | .snac-embedded-video, img { max-width: 100% } | 4 | --primary-hue: 20; |
| 5 | .snac-origin { font-size: 85% } | 5 | --secondary-hue: 200; |
| 6 | .snac-score { float: right; font-size: 85% } | 6 | --saturation: 60%; |
| 7 | .snac-top-user { text-align: center; padding-bottom: 2em } | 7 | --lightness: 50%; |
| 8 | .snac-top-user-name { font-size: 200% } | 8 | |
| 9 | .snac-top-user-id { font-size: 150% } | 9 | --light-gray: 95%; |
| 10 | .snac-announcement { border: black 1px solid; padding: 0.5em } | 10 | --dark-gray: 45%; |
| 11 | .snac-avatar { float: left; height: 2.5em; width: 2.5em; padding: 0.25em } | 11 | |
| 12 | .snac-author { font-size: 90%; text-decoration: none } | 12 | --primary: hsl(var(--primary-hue) var(--saturation) var(--lightness)); |
| 13 | .snac-author-tag { font-size: 80% } | 13 | --secondary: hsl(var(--secondary-hue) var(--saturation) var(--lightness)); |
| 14 | .snac-pubdate { color: #a0a0a0; font-size: 90% } | 14 | } |
| 15 | .snac-top-controls { padding-bottom: 1.5em } | 15 | |
| 16 | .snac-post { border-top: 1px solid #a0a0a0; padding-top: 0.5em; padding-bottom: 0.5em; } | 16 | @font-face { |
| 17 | .snac-children { padding-left: 1em; border-left: 1px solid #a0a0a0; } | 17 | font-family: "M PLUS 2"; |
| 18 | font-display: swap; | ||
| 19 | src: url("/2/eris/s/MPLUS2.ttf"), local("M PLUS 2"); | ||
| 20 | } | ||
| 21 | |||
| 22 | @font-face { | ||
| 23 | font-family: "M PLUS 1 Code"; | ||
| 24 | font-display: swap; | ||
| 25 | src: url("/2/eris/s/MPLUS1Code.ttf"), local("M PLUS 1 Code"); | ||
| 26 | } | ||
| 27 | |||
| 28 | html { | ||
| 29 | height: 100%; | ||
| 30 | width: 100%; | ||
| 31 | font-family: "M PLUS 2", sans-serif; | ||
| 32 | line-height: 120%; | ||
| 33 | text-rendering: optimizeLegibility; | ||
| 34 | } | ||
| 35 | |||
| 36 | blockquote { | ||
| 37 | font-style: italic; | ||
| 38 | } | ||
| 39 | |||
| 40 | /* TODO: Figure out how to float this shit to the right while still allowing wrapping on mobile and having it on the | ||
| 41 | same height as everything else */ | ||
| 42 | .snac-search-box { | ||
| 43 | font-size: 1rem; | ||
| 44 | } | ||
| 45 | |||
| 46 | h1 { | ||
| 47 | font-size: 150%; | ||
| 48 | line-height: 110%; | ||
| 49 | } | ||
| 50 | |||
| 51 | h2 { | ||
| 52 | font-size: 115%; | ||
| 53 | } | ||
| 54 | |||
| 55 | h3, h4, h5 { | ||
| 56 | font-size: 100%; | ||
| 57 | } | ||
| 58 | |||
| 59 | b { | ||
| 60 | color: hsl(var(--secondary-hue) var(--saturation) 30%); | ||
| 61 | } | ||
| 62 | |||
| 63 | u { | ||
| 64 | text-decoration-color: var(--secondary); | ||
| 65 | } | ||
| 66 | |||
| 67 | button, pre, code, input, textarea { | ||
| 68 | font-family: "M PLUS 1 Code", monospace; | ||
| 69 | border-radius: 4px; | ||
| 70 | color: var(--secondary); | ||
| 71 | background-color: hsl(0 0 var(--light-gray)); | ||
| 72 | } | ||
| 73 | |||
| 74 | pre { | ||
| 75 | overflow-x: scroll; | ||
| 76 | } | ||
| 77 | |||
| 78 | /* TODO: consider max-width */ | ||
| 79 | body { | ||
| 80 | background: hsl(var(--primary-hue) 1% 99%); | ||
| 81 | height: 100%; | ||
| 82 | width: 100%; | ||
| 83 | margin: 0; | ||
| 84 | } | ||
| 85 | |||
| 86 | header { | ||
| 87 | background: hsl(var(--secondary-hue) 1% 74%); | ||
| 88 | margin-bottom: 1rem; | ||
| 89 | border-bottom: 1px solid black; | ||
| 90 | |||
| 91 | font-size: 125%; | ||
| 92 | line-height: 150%; | ||
| 93 | |||
| 94 | text-overflow: ellipsis; | ||
| 95 | } | ||
| 96 | |||
| 97 | header * { | ||
| 98 | margin-top: 0.1rem; | ||
| 99 | margin-left: 0.25rem; | ||
| 100 | margin-right: 0.25rem; | ||
| 101 | } | ||
| 102 | |||
| 103 | header > .left { | ||
| 104 | justify-content: left; | ||
| 105 | } | ||
| 106 | |||
| 107 | |||
| 108 | header > .right { | ||
| 109 | justify-content: right; | ||
| 110 | } | ||
| 111 | |||
| 112 | header > :first-child { | ||
| 113 | margin-left: 0.5rem; | ||
| 114 | } | ||
| 115 | |||
| 116 | .snac-embedded-video, img { | ||
| 117 | max-width: 100%; | ||
| 118 | } | ||
| 119 | |||
| 120 | body > header img { | ||
| 121 | padding: 0.25rem; | ||
| 122 | height: 3rem; | ||
| 123 | width: auto; | ||
| 124 | } | ||
| 125 | |||
| 126 | footer { | ||
| 127 | display: flex; | ||
| 128 | flex-direction: column; | ||
| 129 | justify-content: center; | ||
| 130 | text-align: center; | ||
| 131 | font-height: 80%; | ||
| 132 | margin-top: 1rem; | ||
| 133 | border-top: 1px solid black; | ||
| 134 | } | ||
| 135 | |||
| 136 | footer > p { | ||
| 137 | margin-bottom: 0.5rem; | ||
| 138 | } | ||
| 139 | |||
| 140 | a { | ||
| 141 | color: var(--secondary); | ||
| 142 | text-decoration: none; | ||
| 143 | } | ||
| 144 | |||
| 145 | a:hover { | ||
| 146 | color: var(--primary); | ||
| 147 | background-color: hsl(0 0 var(--light-gray)); | ||
| 148 | border-radius: 4px; | ||
| 149 | } | ||
| 150 | |||
| 151 | /* Support for fiore */ | ||
| 152 | .snac-content { | ||
| 153 | white-space: pre-wrap; | ||
| 154 | } | ||
| 155 | |||
| 156 | .snac-content-attachments > a:hover { | ||
| 157 | background-color: transparent; | ||
| 158 | border-radius: 0; | ||
| 159 | } | ||
| 160 | |||
| 161 | a:visited { | ||
| 162 | color: var(--primary); | ||
| 163 | } | ||
| 164 | |||
| 165 | @media (min-width: 1140px) { | ||
| 166 | body > main { | ||
| 167 | margin-left: 9rem; | ||
| 168 | margin-right: 9rem; | ||
| 169 | } | ||
| 170 | } | ||
| 171 | |||
| 172 | @media (min-width: 800px) and (max-width: 1140px) { | ||
| 173 | body > main { | ||
| 174 | margin-left: 5rem; | ||
| 175 | margin-right: 5rem; | ||
| 176 | } | ||
| 177 | } | ||
| 178 | |||
| 179 | @media (max-width: 800px) { | ||
| 180 | body > main { | ||
| 181 | margin-left: 1rem; | ||
| 182 | margin-right: 1rem; | ||
| 183 | } | ||
| 184 | } | ||
| 185 | |||
| 186 | @media (prefers-color-scheme: dark) { | ||
| 187 | body, input, textarea { | ||
| 188 | background: hsl(var(--primary-hue) 1% 17%); | ||
| 189 | color: hsl(0 0 var(--light-gray)); | ||
| 190 | } | ||
| 191 | |||
| 192 | header { | ||
| 193 | background: hsl(var(--secondary-hue) 1% 12%); | ||
| 194 | } | ||
| 195 | |||
| 196 | b { | ||
| 197 | color: hsl(var(--secondary-hue) var(--saturation) 75%); | ||
| 198 | } | ||
| 199 | } | ||
| 200 | |||
| 201 | .snac-origin { | ||
| 202 | font-size: 85%; | ||
| 203 | } | ||
| 204 | |||
| 205 | .snac-score { | ||
| 206 | float: right; | ||
| 207 | font-size: 85%; | ||
| 208 | } | ||
| 209 | |||
| 210 | .snac-top-user { | ||
| 211 | text-align: center; | ||
| 212 | padding-bottom: 2em; | ||
| 213 | } | ||
| 214 | |||
| 215 | .snac-top-user-name { | ||
| 216 | font-size: 200%; | ||
| 217 | } | ||
| 218 | |||
| 219 | .snac-top-user-id { | ||
| 220 | font-size: 150% | ||
| 221 | } | ||
| 222 | |||
| 223 | .snac-announcement { | ||
| 224 | border: black 1px solid; | ||
| 225 | padding: 0.5em; | ||
| 226 | } | ||
| 227 | |||
| 228 | .snac-avatar { | ||
| 229 | float: left; | ||
| 230 | /* TODO: Maybe max-height & max-width 2.5em? */ | ||
| 231 | height: 2.5em; | ||
| 232 | padding: 0.25em; | ||
| 233 | } | ||
| 234 | |||
| 235 | .snac-author { | ||
| 236 | font-size: 90%; | ||
| 237 | text-decoration: none; | ||
| 238 | } | ||
| 239 | |||
| 240 | .snac-author-tag { | ||
| 241 | font-size: 80%; | ||
| 242 | } | ||
| 243 | |||
| 244 | .snac-pubdate { | ||
| 245 | color: hsl(0 0 var(--dark-gray)); | ||
| 246 | font-size: 90%; | ||
| 247 | } | ||
| 248 | |||
| 249 | .snac-top-controls { | ||
| 250 | padding-bottom: 1.5em; | ||
| 251 | } | ||
| 252 | |||
| 253 | .snac-post { | ||
| 254 | border-top: 1px solid #a0a0a0; | ||
| 255 | padding-top: 0.5em; | ||
| 256 | padding-bottom: 0.5em; | ||
| 257 | } | ||
| 258 | |||
| 259 | .snac-children { | ||
| 260 | padding-left: 1em; | ||
| 261 | border-left: 1px solid #a0a0a0; | ||
| 262 | } | ||
| 263 | |||
| 18 | .snac-thread-cont { border-top: 1px dashed #a0a0a0; } | 264 | .snac-thread-cont { border-top: 1px dashed #a0a0a0; } |
| 19 | .snac-textarea { font-family: inherit; width: 100% } | 265 | |
| 20 | .snac-history { border: 1px solid #606060; border-radius: 3px; margin: 2.5em 0; padding: 0 2em } | 266 | .snac-textarea { |
| 21 | .snac-btn-mute { float: right; margin-left: 0.5em } | 267 | width: 100%; |
| 22 | .snac-btn-unmute { float: right; margin-left: 0.5em } | 268 | } |
| 23 | .snac-btn-follow { float: right; margin-left: 0.5em } | 269 | |
| 24 | .snac-btn-unfollow { float: right; margin-left: 0.5em } | 270 | .snac-history { |
| 25 | .snac-btn-hide { float: right; margin-left: 0.5em } | 271 | border: 1px solid #606060; |
| 26 | .snac-btn-delete { float: right; margin-left: 0.5em } | 272 | border-radius: 3px; |
| 27 | .snac-btn-limit { float: right; margin-left: 0.5em } | 273 | margin: 2.5em 0; |
| 28 | .snac-btn-unlimit { float: right; margin-left: 0.5em } | 274 | padding: 0 2em; |
| 29 | .snac-footer { margin-top: 2em; font-size: 75% } | 275 | } |
| 30 | .snac-poll-result { margin-left: auto; margin-right: auto; } | 276 | |
| 31 | .snac-list-of-lists { padding-left: 0; } | 277 | .snac-btn-mute { |
| 32 | .snac-list-of-lists li { display: inline; border: 1px solid #a0a0a0; border-radius: 25px; | 278 | float: right; |
| 33 | margin-right: 0.5em; padding-left: 0.5em; padding-right: 0.5em; } | 279 | margin-left: 0.5em; |
| 34 | .snac-no-more-unseen-posts { border-top: 1px solid #a0a0a0; border-bottom: 1px solid #a0a0a0; padding: 0.5em 0; margin: 1em 0; } | 280 | } |
| 35 | @media (prefers-color-scheme: dark) { | 281 | |
| 36 | body, input, textarea { background-color: #000; color: #fff; } | 282 | .snac-btn-unmute { |
| 37 | a { color: #7799dd } | 283 | float: right; |
| 38 | a:visited { color: #aa99dd } | 284 | margin-left: 0.5em; |
| 285 | } | ||
| 286 | |||
| 287 | .snac-btn-follow { | ||
| 288 | float: right; | ||
| 289 | margin-left: 0.5em; | ||
| 290 | } | ||
| 291 | |||
| 292 | .snac-btn-unfollow { | ||
| 293 | float: right; | ||
| 294 | margin-left: 0.5em; | ||
| 295 | } | ||
| 296 | |||
| 297 | .snac-btn-hide { | ||
| 298 | float: right; | ||
| 299 | margin-left: 0.5em; | ||
| 300 | } | ||
| 301 | |||
| 302 | .snac-btn-delete { | ||
| 303 | float: right; | ||
| 304 | margin-left: 0.5em; | ||
| 305 | } | ||
| 306 | |||
| 307 | .snac-btn-limit { | ||
| 308 | float: right; | ||
| 309 | margin-left: 0.5em; | ||
| 310 | } | ||
| 311 | |||
| 312 | .snac-btn-unlimit { | ||
| 313 | float: right; | ||
| 314 | margin-left: 0.5em; | ||
| 315 | } | ||
| 316 | |||
| 317 | .snac-footer { | ||
| 318 | margin-top: 2em; | ||
| 319 | font-size: 75%; | ||
| 320 | } | ||
| 321 | |||
| 322 | .snac-poll-result { | ||
| 323 | margin-left: auto; | ||
| 324 | margin-right: auto; | ||
| 325 | } | ||
| 326 | |||
| 327 | .snac-list-of-lists { | ||
| 328 | padding-left: 0; | ||
| 329 | } | ||
| 330 | |||
| 331 | .snac-list-of-lists li { | ||
| 332 | display: inline; | ||
| 333 | border: 1px solid #a0a0a0; | ||
| 334 | border-radius: 4px; | ||
| 335 | margin-right: 0.5em; | ||
| 336 | padding-left: 0.5em; | ||
| 337 | padding-right: 0.5em; | ||
| 338 | } | ||
| 339 | |||
| 340 | .snac-no-more-unseen-posts { | ||
| 341 | border-top: 1px solid #a0a0a0; | ||
| 342 | border-bottom: 1px solid #a0a0a0; | ||
| 343 | padding: 0.5em 0; | ||
| 344 | margin: 1em 0; | ||
| 39 | } | 345 | } |