diff options
Diffstat (limited to 'public/stylesheets/ccc.css_')
| -rw-r--r-- | public/stylesheets/ccc.css_ | 579 |
1 files changed, 579 insertions, 0 deletions
diff --git a/public/stylesheets/ccc.css_ b/public/stylesheets/ccc.css_ new file mode 100644 index 0000000..9c5dbba --- /dev/null +++ b/public/stylesheets/ccc.css_ | |||
| @@ -0,0 +1,579 @@ | |||
| 1 | html { | ||
| 2 | height: 100%; | ||
| 3 | line-height: 1.6rem; | ||
| 4 | } | ||
| 5 | |||
| 6 | body { | ||
| 7 | margin: 0; | ||
| 8 | padding: 0; | ||
| 9 | text-align: center; | ||
| 10 | font-family: Verdana, Helvetica, Arial, sans-serif; | ||
| 11 | background-color: Canvas; | ||
| 12 | color: color-mix(in srgb, CanvasText, #808080 25%); | ||
| 13 | hyphens: auto; | ||
| 14 | color-scheme: light dark; | ||
| 15 | |||
| 16 | min-height: 100%; | ||
| 17 | height: 100%; | ||
| 18 | } | ||
| 19 | |||
| 20 | @media (prefers-color-scheme: light) { | ||
| 21 | body:has(#light-mode:checked) { | ||
| 22 | color-scheme: dark; | ||
| 23 | } | ||
| 24 | #light-mode + label[for=light-mode]:before { content: '🌙'; } | ||
| 25 | #light-mode:checked + label[for=light-mode]:before { content: '☀️'; } | ||
| 26 | } | ||
| 27 | |||
| 28 | @media (prefers-color-scheme: dark) { | ||
| 29 | body:has(#light-mode:checked) { | ||
| 30 | color-scheme: light; | ||
| 31 | } | ||
| 32 | #light-mode + label[for=light-mode]:before { content: '☀️'; } | ||
| 33 | #light-mode:checked + label[for=light-mode]:before { content: '🌙'; } | ||
| 34 | |||
| 35 | /* The header images were set in the before times. Let them shine in dark | ||
| 36 | mode, too */ | ||
| 37 | body:not(:has(#light-mode:checked)) #header img, | ||
| 38 | body:not(:has(#light-mode:checked)) div#left_column::before | ||
| 39 | { | ||
| 40 | filter: invert(50%); | ||
| 41 | } | ||
| 42 | } | ||
| 43 | |||
| 44 | img { | ||
| 45 | max-width: 100%; | ||
| 46 | } | ||
| 47 | |||
| 48 | div#header img { | ||
| 49 | border: none; | ||
| 50 | } | ||
| 51 | |||
| 52 | @media(min-width:1016px) { | ||
| 53 | div#wrapper { | ||
| 54 | position: relative; | ||
| 55 | width: 909px; | ||
| 56 | margin: 0 auto 0 auto; | ||
| 57 | text-align: left; | ||
| 58 | min-height: 100%; | ||
| 59 | } | ||
| 60 | .break-mobile { | ||
| 61 | display: block; | ||
| 62 | } | ||
| 63 | } | ||
| 64 | |||
| 65 | pre { | ||
| 66 | overflow: auto; | ||
| 67 | } | ||
| 68 | |||
| 69 | .right { | ||
| 70 | text-align: right; | ||
| 71 | } | ||
| 72 | |||
| 73 | /*------------------links-------------------*/ | ||
| 74 | |||
| 75 | a { | ||
| 76 | color: #F8921E; | ||
| 77 | text-decoration: none; | ||
| 78 | } | ||
| 79 | |||
| 80 | a:visited { | ||
| 81 | color: #D1791A; | ||
| 82 | text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); | ||
| 83 | } | ||
| 84 | |||
| 85 | a:hover { | ||
| 86 | color: #5b8ca7; | ||
| 87 | } | ||
| 88 | |||
| 89 | /*------------------headlines-------------------*/ | ||
| 90 | |||
| 91 | h2 { | ||
| 92 | font-size: 1.5rem; | ||
| 93 | font-family: Helvetica, Arial, sans-serif; | ||
| 94 | line-height: 1.75rem; | ||
| 95 | } | ||
| 96 | |||
| 97 | div#center_column h2 a { | ||
| 98 | color: CanvasText; | ||
| 99 | text-decoration: none; | ||
| 100 | } | ||
| 101 | |||
| 102 | div#center_column h2 a:hover { | ||
| 103 | color: color-mix(in srgb, CanvasText, #808080 50%); | ||
| 104 | } | ||
| 105 | |||
| 106 | div#center_column h2.headline { | ||
| 107 | margin-top: 10px; | ||
| 108 | } | ||
| 109 | |||
| 110 | div#center_column .article_partial h2.headline { | ||
| 111 | padding-top: 30px; | ||
| 112 | margin-bottom: 0.3rem; | ||
| 113 | border-top: 2px solid #cccccc; | ||
| 114 | } | ||
| 115 | |||
| 116 | div.article_partial h2 a { | ||
| 117 | text-decoration: none; | ||
| 118 | } | ||
| 119 | |||
| 120 | h3 { | ||
| 121 | font-size: 1.3rem; | ||
| 122 | text-decoration: none; | ||
| 123 | |||
| 124 | } | ||
| 125 | |||
| 126 | h4 { | ||
| 127 | font-size: 1.0rem; | ||
| 128 | text-decoration: none; | ||
| 129 | } | ||
| 130 | |||
| 131 | #left_column { | ||
| 132 | line-height: 1.5em; | ||
| 133 | } | ||
| 134 | |||
| 135 | /*------------------main-navigation-------------------*/ | ||
| 136 | |||
| 137 | div.main_navigation ul { | ||
| 138 | margin-left: 0; | ||
| 139 | padding-left: 0; | ||
| 140 | padding-left: 15px; | ||
| 141 | padding-right: 15px; | ||
| 142 | text-align: left; | ||
| 143 | } | ||
| 144 | |||
| 145 | |||
| 146 | @media(max-width:1016px) { | ||
| 147 | div.main_navigation li:not(:first-child):before { | ||
| 148 | content: '•'; | ||
| 149 | margin-left: .3rem; | ||
| 150 | margin-right: .6rem; | ||
| 151 | } | ||
| 152 | |||
| 153 | div.main_navigation li { | ||
| 154 | list-style-type: none; | ||
| 155 | display: inline-block; | ||
| 156 | line-height: .75rem; | ||
| 157 | } | ||
| 158 | } | ||
| 159 | |||
| 160 | @media(min-width:1016px) { | ||
| 161 | div.main_navigation ul { | ||
| 162 | padding: 0; | ||
| 163 | text-align: right; | ||
| 164 | } | ||
| 165 | |||
| 166 | div.main_navigation li { | ||
| 167 | list-style-type: none; | ||
| 168 | line-height: 1.45em; | ||
| 169 | } | ||
| 170 | } | ||
| 171 | |||
| 172 | div.main_navigation a { | ||
| 173 | text-decoration: none; | ||
| 174 | } | ||
| 175 | |||
| 176 | div.main_navigation a.inactive:hover, div#left_column span.inactive:hover { | ||
| 177 | color: color-mix(in srgb, CanvasText, #808080 50%); | ||
| 178 | } | ||
| 179 | |||
| 180 | div.main_navigation a.active:before { | ||
| 181 | content: "▸"; | ||
| 182 | } | ||
| 183 | |||
| 184 | div.main_navigation a.active { | ||
| 185 | color: CanvasText; | ||
| 186 | text-decoration: none; | ||
| 187 | } | ||
| 188 | |||
| 189 | div.main_navigation a.inactive, div.main_navigation span.inactive, div#left_column span.inactive { | ||
| 190 | color: color-mix(in srgb, CanvasText, #808080 25%); | ||
| 191 | } | ||
| 192 | |||
| 193 | /*------------------calendar-featured-tags-------------------*/ | ||
| 194 | |||
| 195 | div#frontpage_calendar { | ||
| 196 | display: none; | ||
| 197 | margin-top: 10px; | ||
| 198 | } | ||
| 199 | |||
| 200 | @media(min-width:1016px) { | ||
| 201 | div#frontpage_calendar { | ||
| 202 | margin-top: 30px; | ||
| 203 | } | ||
| 204 | } | ||
| 205 | |||
| 206 | div#frontpage_calendar h2, div#tags h2, div#featured_articles h2, div.main_navigation h2 { | ||
| 207 | border-top: 2px solid; | ||
| 208 | border-bottom: 2px solid; | ||
| 209 | font-size: 1.1em; | ||
| 210 | padding-top: 2px; | ||
| 211 | padding-bottom: 2px; | ||
| 212 | } | ||
| 213 | |||
| 214 | div#frontpage_calendar h2 { | ||
| 215 | display: none; | ||
| 216 | border-top: none; | ||
| 217 | margin-left: auto; | ||
| 218 | margin-right: auto; | ||
| 219 | padding-left: 0.5em; | ||
| 220 | padding-right: 0.5em; | ||
| 221 | margin-top: 0; | ||
| 222 | } | ||
| 223 | |||
| 224 | @media(max-width:1016px) { | ||
| 225 | div#tags li { | ||
| 226 | list-style-type: none; | ||
| 227 | display: inline-block; | ||
| 228 | } | ||
| 229 | |||
| 230 | div#tags li:not(:first-child):before { | ||
| 231 | content: '•'; | ||
| 232 | margin-left: .3em; | ||
| 233 | margin-right: .6em; | ||
| 234 | } | ||
| 235 | } | ||
| 236 | |||
| 237 | @media(min-width:1016px) { | ||
| 238 | div#frontpage_calendar h2, div#tags h2, div#featured_articles h2 { | ||
| 239 | font-size: 1rem; | ||
| 240 | } | ||
| 241 | |||
| 242 | div#frontpage_calendar h2 { | ||
| 243 | display: block; | ||
| 244 | border-top: 2px solid #aeadad; | ||
| 245 | padding: 2px 0; | ||
| 246 | } | ||
| 247 | |||
| 248 | } | ||
| 249 | |||
| 250 | div#frontpage_calendar ul, div#tags ul, div#featured_articles ul { | ||
| 251 | padding: 0px; | ||
| 252 | font-size: 1rem; | ||
| 253 | line-height: 1.5em; | ||
| 254 | } | ||
| 255 | |||
| 256 | div#featured_articles #ds_icon img { | ||
| 257 | padding-top: 10px; | ||
| 258 | } | ||
| 259 | |||
| 260 | div#featured_articles #events_icon img { | ||
| 261 | padding-left: 10px; | ||
| 262 | } | ||
| 263 | |||
| 264 | div#frontpage_calendar li { | ||
| 265 | margin-bottom: 20px; | ||
| 266 | } | ||
| 267 | |||
| 268 | div#frontpage_calendar li, div#tags li, div#featured_articles li { | ||
| 269 | list-style-type: none; | ||
| 270 | } | ||
| 271 | |||
| 272 | div#frontpage_calendar li a, div#tags li a, div#featured_articles li a { | ||
| 273 | text-decoration: none; | ||
| 274 | color: color-mix(in srgb, CanvasText, #808080 25%); | ||
| 275 | } | ||
| 276 | |||
| 277 | div#frontpage_calendar li a:hover, | ||
| 278 | div#tags li a:hover, | ||
| 279 | div#featured_articles li a:hover { | ||
| 280 | text-decoration: none; | ||
| 281 | color: color-mix(in srgb, CanvasText, #808080 50%); | ||
| 282 | } | ||
| 283 | |||
| 284 | /* We don't want the only colourful thing on the site to be pointing | ||
| 285 | * somewhere else */ | ||
| 286 | div#featured_articles img { | ||
| 287 | filter: grayscale(1); | ||
| 288 | } | ||
| 289 | |||
| 290 | dt { | ||
| 291 | font-weight: bold; | ||
| 292 | margin-bottom: 1em; | ||
| 293 | } | ||
| 294 | |||
| 295 | dd { | ||
| 296 | margin-bottom: 1em; | ||
| 297 | } | ||
| 298 | |||
| 299 | /*--------------------------------------------------------------*/ | ||
| 300 | |||
| 301 | div.author_and_date { | ||
| 302 | font-style: italic; | ||
| 303 | font-family: Georgia; | ||
| 304 | color: color-mix(in srgb, CanvasText, #808080); | ||
| 305 | padding-top: 0; | ||
| 306 | padding-bottom: 1rem; | ||
| 307 | } | ||
| 308 | |||
| 309 | @media(min-width:1016px) { | ||
| 310 | div#left_column::before { | ||
| 311 | content: " "; | ||
| 312 | position: absolute; | ||
| 313 | left: 0; | ||
| 314 | top: 0; | ||
| 315 | width: 100%; | ||
| 316 | height: 100%; | ||
| 317 | box-sizing: border-box; | ||
| 318 | background-image: url(/images/left_column.png); | ||
| 319 | background-position: top right; | ||
| 320 | background-repeat: no-repeat; | ||
| 321 | z-index: -10; | ||
| 322 | } | ||
| 323 | div#left_column { | ||
| 324 | position: absolute; | ||
| 325 | left: 0px; | ||
| 326 | width: 135px; | ||
| 327 | min-height: 100px; | ||
| 328 | text-align: right; | ||
| 329 | padding-right: 50px; | ||
| 330 | } | ||
| 331 | |||
| 332 | div#left_column > a { | ||
| 333 | font-size: 0.8rem; | ||
| 334 | } | ||
| 335 | } | ||
| 336 | |||
| 337 | .menu-checkbox { | ||
| 338 | display: none; | ||
| 339 | } | ||
| 340 | |||
| 341 | .burger-menu { | ||
| 342 | display: none; | ||
| 343 | cursor: pointer; | ||
| 344 | } | ||
| 345 | |||
| 346 | /* Mobile styles */ | ||
| 347 | @media (max-width: 1016px) { | ||
| 348 | .main_navigation { | ||
| 349 | width: 100%; | ||
| 350 | position: relative; | ||
| 351 | } | ||
| 352 | |||
| 353 | .main_navigation ul { | ||
| 354 | transition: max-height 0.5s ease-in-out, transform .4s ease, opacity 0.4s ease; | ||
| 355 | overflow: hidden; | ||
| 356 | text-align: center; | ||
| 357 | } | ||
| 358 | |||
| 359 | |||
| 360 | .burger-menu { | ||
| 361 | position: absolute; | ||
| 362 | top: -48px; | ||
| 363 | right: 30px; | ||
| 364 | display: flex; | ||
| 365 | flex-direction: column; | ||
| 366 | transition: transform 0.3s ease, opacity 0.3s ease; | ||
| 367 | } | ||
| 368 | |||
| 369 | .burger-menu span { | ||
| 370 | display: inline-flex; | ||
| 371 | width: 30px; | ||
| 372 | height: 4px; | ||
| 373 | background: color-mix(in srgb, CanvasText, #808080 25%); | ||
| 374 | border-radius: 2px; | ||
| 375 | margin: 3px 0; | ||
| 376 | transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, transform 0.5s ease-in-out; | ||
| 377 | } | ||
| 378 | .main_navigation .menu-checkbox:not(:checked) ~ ul { | ||
| 379 | transform: translateY(-60px); | ||
| 380 | max-height: 0; | ||
| 381 | opacity: 0; | ||
| 382 | } | ||
| 383 | |||
| 384 | /* Show menu when checkbox is checked */ | ||
| 385 | .main_navigation .menu-checkbox ~ ul { | ||
| 386 | max-height: 400px; | ||
| 387 | opacity: 1; | ||
| 388 | transform: translateY(0); | ||
| 389 | text-align: center; | ||
| 390 | } | ||
| 391 | |||
| 392 | .menu-checkbox:checked + .burger-menu span:nth-child(1) { transform: translateY(10px) rotate(45deg); } | ||
| 393 | .menu-checkbox:checked + .burger-menu span:nth-child(2) { opacity: 0; } | ||
| 394 | .menu-checkbox:checked + .burger-menu span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); } | ||
| 395 | } | ||
| 396 | |||
| 397 | div#center_column { | ||
| 398 | padding-bottom: 40px; | ||
| 399 | } | ||
| 400 | |||
| 401 | @media(max-width: 1016px) { | ||
| 402 | div#center_column { | ||
| 403 | padding: 0 15px 40px 15px; | ||
| 404 | } | ||
| 405 | } | ||
| 406 | |||
| 407 | @media(min-width: 1016px) { | ||
| 408 | div#center_column { | ||
| 409 | position: absolute; | ||
| 410 | background-color: Canvas; | ||
| 411 | left: 200px; | ||
| 412 | width: 490px; | ||
| 413 | } | ||
| 414 | } | ||
| 415 | |||
| 416 | @media(min-width:1016px) { | ||
| 417 | div#right_column { | ||
| 418 | position: absolute; | ||
| 419 | background-color: Canvas; | ||
| 420 | padding-left: 55px; | ||
| 421 | left: 690px; | ||
| 422 | width: 155px; | ||
| 423 | height: 100px; | ||
| 424 | } | ||
| 425 | } | ||
| 426 | |||
| 427 | div.teaser_ruler { | ||
| 428 | border-top: 1px solid #CCCCCC; | ||
| 429 | border-bottom: 1px dashed #CCCCCC; | ||
| 430 | height: 3px; | ||
| 431 | margin-top: 30px; | ||
| 432 | } | ||
| 433 | |||
| 434 | div.article_partial { | ||
| 435 | margin-bottom: 30px; | ||
| 436 | } | ||
| 437 | |||
| 438 | |||
| 439 | div.article_partial p.excerpt { | ||
| 440 | color: CanvasText; | ||
| 441 | } | ||
| 442 | |||
| 443 | /* Search bar */ | ||
| 444 | @media(min-width:1016px) { | ||
| 445 | div#search { | ||
| 446 | position: absolute; | ||
| 447 | top: 145px; | ||
| 448 | left: 676px; | ||
| 449 | height: 25px; | ||
| 450 | vertical-align: top; | ||
| 451 | } | ||
| 452 | } | ||
| 453 | |||
| 454 | @media(max-width:1016px) { | ||
| 455 | div#search { | ||
| 456 | position: relative; | ||
| 457 | bottom: 5px; | ||
| 458 | left: 0px; | ||
| 459 | margin-left: 25px; | ||
| 460 | height: 25px; | ||
| 461 | vertical-align: top; | ||
| 462 | } | ||
| 463 | } | ||
| 464 | |||
| 465 | div#search input { | ||
| 466 | color: CanvasText !important; | ||
| 467 | } | ||
| 468 | div#search input[type=search], | ||
| 469 | div#search input[type=text] { | ||
| 470 | display: block; | ||
| 471 | padding: 2px; | ||
| 472 | margin: 0px; | ||
| 473 | height: 25px; | ||
| 474 | width: 132px; | ||
| 475 | line-height: 20px; | ||
| 476 | border: solid #808080 1px; | ||
| 477 | background-color: Canvas; | ||
| 478 | border-radius: 5px; | ||
| 479 | margin-right: 5px; | ||
| 480 | text-indent: 0.5rem; | ||
| 481 | } | ||
| 482 | |||
| 483 | /* Header */ | ||
| 484 | #header img, | ||
| 485 | #header > a { | ||
| 486 | display: block; | ||
| 487 | line-height: 0; | ||
| 488 | } | ||
| 489 | |||
| 490 | /* Main section */ | ||
| 491 | .article, .article_partial { | ||
| 492 | text-align: left; | ||
| 493 | } | ||
| 494 | |||
| 495 | h1, h2, h3 { | ||
| 496 | word-wrap: anywhere; | ||
| 497 | hyphens:auto; | ||
| 498 | } | ||
| 499 | |||
| 500 | .pagination { | ||
| 501 | margin-bottom: .5rem; | ||
| 502 | } | ||
| 503 | |||
| 504 | li { | ||
| 505 | line-height: 1.5rem; | ||
| 506 | margin-block-start: 1rem; | ||
| 507 | margin-block-end: 1rem; | ||
| 508 | } | ||
| 509 | |||
| 510 | #tags ul li { | ||
| 511 | margin-block-start: 0.5rem; | ||
| 512 | margin-block-end: 0.5rem; | ||
| 513 | } | ||
| 514 | |||
| 515 | /* Footer */ | ||
| 516 | #footer { | ||
| 517 | border-bottom: 2px solid #aeadad; | ||
| 518 | border-top: 2px solid #aeadad; | ||
| 519 | bottom: 0; | ||
| 520 | color: CanvasText; | ||
| 521 | } | ||
| 522 | |||
| 523 | #footer > br { | ||
| 524 | display: none; | ||
| 525 | } | ||
| 526 | |||
| 527 | #footer p { | ||
| 528 | margin: .5rem auto; | ||
| 529 | } | ||
| 530 | |||
| 531 | #footer a { | ||
| 532 | margin-left: 1rem; | ||
| 533 | margin-right: 1rem; | ||
| 534 | color: CanvasText; | ||
| 535 | } | ||
| 536 | |||
| 537 | /* Light and dark mode button magic */ | ||
| 538 | @media(max-width:1016px) { | ||
| 539 | div#light-mode-li { | ||
| 540 | position: absolute; | ||
| 541 | top: 145px; | ||
| 542 | left: 25px; | ||
| 543 | } | ||
| 544 | } | ||
| 545 | |||
| 546 | @media(min-width:1016px) { | ||
| 547 | div#light-mode-li { | ||
| 548 | position: absolute; | ||
| 549 | top: 145px; | ||
| 550 | left: 816px; | ||
| 551 | } | ||
| 552 | } | ||
| 553 | input#light-mode[type="checkbox"] { | ||
| 554 | display: none; | ||
| 555 | } | ||
| 556 | |||
| 557 | label[for=light-mode] { | ||
| 558 | font-size: 25px; | ||
| 559 | user-select: none; | ||
| 560 | filter: grayscale(1); | ||
| 561 | } | ||
| 562 | |||
| 563 | .hide-me { | ||
| 564 | display: none; | ||
| 565 | } | ||
| 566 | |||
| 567 | /* Temporary glowing style for easterhegg 22 */ | ||
| 568 | #eh22_icon img { | ||
| 569 | animation: animate 3s linear infinite; | ||
| 570 | } | ||
| 571 | |||
| 572 | @keyframes animate { | ||
| 573 | from { | ||
| 574 | filter: sepia(100%) hue-rotate(0deg); | ||
| 575 | } | ||
| 576 | to { | ||
| 577 | filter: sepia(100%) hue-rotate(360deg); | ||
| 578 | } | ||
| 579 | } | ||
