aboutsummaryrefslogtreecommitdiff
path: root/template/style.css
diff options
context:
space:
mode:
Diffstat (limited to 'template/style.css')
-rwxr-xr-xtemplate/style.css385
1 files changed, 372 insertions, 13 deletions
diff --git a/template/style.css b/template/style.css
index 161ef84..d4832b1 100755
--- a/template/style.css
+++ b/template/style.css
@@ -303,8 +303,8 @@ article a {
303 303
304article img { 304article img {
305 max-width: 120%; 305 max-width: 120%;
306 width: 120%;
306 position: relative; 307 position: relative;
307 width: 130%;
308 left: -10%; 308 left: -10%;
309 margin: 70px auto; 309 margin: 70px auto;
310} 310}
@@ -343,6 +343,12 @@ audio {
343 footer { padding: 0 20px; } 343 footer { padding: 0 20px; }
344 h1[itemtype="headline"] { font-size: 220%; } 344 h1[itemtype="headline"] { font-size: 220%; }
345 .navigation header { padding: 0 20px; } 345 .navigation header { padding: 0 20px; }
346
347 article img {
348 max-width: 100%;
349 position: initial;
350 margin: 50px auto;
351 }
346} 352}
347 353
348@media only screen and (max-width: 600px) { 354@media only screen and (max-width: 600px) {
@@ -352,21 +358,374 @@ audio {
352} 358}
353 359
354 360
355/* light/dark mode */ 361/* light/dark mode */@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');
356 362
357@media (prefers-color-scheme: light) { } 363:root {
364 --base-document-width: 760px;
365 --base-font-size: 18px;
366 --base-color: #111111;
358 367
359@media (prefers-color-scheme: dark) { 368 --link-color: #111111;
360 /* body { 369 --link-color-hover: #111111;
361 background: #111; 370
362 color: white; 371 --label-color: #5f5f5f;
363 } 372
373 --border-color: #eeeeee;
374
375 --badge-background-color: #eeeeee;
376 --badge-label-color: #111111;
377}
378
379* {
380 box-sizing: border-box;
381}
382
383body {
384 background: white;
385 font-family: 'IBM Plex Sans', sans-serif;
386 color: var(--base-color);
387 font-size: var(--base-font-size);
388 line-height: 1.7em;
389 padding: 0;
390 margin: 0;
391 padding-bottom: 100px;
392}
393
394hr {
395 border: 0;
396 border-top: 5px solid #f7f7f7;
397}
398
399
400::selection {
401 background: #ff0;
402 color: #000;
403}
404
405::-moz-selection {
406 background: #ff0;
407 color: #000;
408}
409
410/* width of the page */
411
412.wrapper {
413 max-width: var(--base-document-width);
414 margin: 0 auto;
415}
416
417/* links */
418
419a {
420 color: var(--link-color);
421 /* font-weight: 600; */
422}
423
424a:hover {
425 color: var(--link-color-hover);
426}
427
428
429/* headings */
430
431h1 { font-size: 220%; line-height: 1.2em; }
432h2 { font-size: 180%; line-height: 1.2em; }
433h3 { font-size: 160%; line-height: 1.2em; }
434h4 { font-size: 140%; line-height: 1.2em; }
435h5 { font-size: 120%; line-height: 1.2em; }
436h6 { font-size: 100%; line-height: 1.2em; }
437
438h1[itemtype="headline"] {
439 padding-bottom: 0;
440 margin-bottom: 20px;
441 font-size: 260%;
442 line-height: 1.2em;
443}
444
445/* tables */
446
447table {
448 width: 100%;
449}
364 450
365 a { 451table, th, td {
366 color: white !important; 452 border: 1px solid black;
453 text-align: left;
454}
455
456th, td {
457 padding: 5px 10px;
458}
459
460
461/* quotes */
462
463blockquote {
464 position: relative;
465 margin-block-start: 30px;
466 margin-block-end: 30px;
467 margin-right: 0;
468}
469
470blockquote:before {
471 content: ' ';
472 background-image: url('/assets/general/alert.svg');
473 background-size: 30px 30px;
474 height: 30px;
475 width: 30px;
476 position: absolute;
477 left: -40px;
478 top: 6px;
479}
480
481blockquote p {
482 padding-left: 10px;
483}
484
485
486/* header navigation */
487
488.navigation {
489 /*border-bottom: 1px dotted var(--border-color);*/
490 margin-block-start: 30px;
491 margin-block-end: 50px;
492}
493
494.navigation header {
495 display: flex;
496 align-items: center;
497}
498
499.navigation header a {
500 text-decoration: none;
501}
502
503.navigation header a:hover {
504 text-decoration: underline;
505}
506
507.navigation header .home {
508 font-size: 130%;
509 font-weight: 900;
510}
511
512.navigation header .home a:hover {
513 text-decoration: none;
514}
515
516.navigation header nav {
517 flex-grow: 1;
518 text-align: right;
519}
520
521.navigation header nav a {
522 padding: 0 10px;
523 font-size: 90%;
524 font-weight: 500;
525}
526
527/* index post list */
528
529.post-list {
530 list-style-type: none;
531 padding: 0;
532 margin: 0;
533}
534
535.post-list li {
536 margin: 0 0 20px 0;
537}
538
539.post-list li time {
540 display: block;
541 font-size: 70%;
542 font-weight: 500;
543}
544
545.post-list li a {
546 display: inline-block;
547 text-decoration: none;
548}
549
550.post-list li a:hover {
551 text-decoration: underline;
552}
553
554.post-list li a h2 {
555 font-weight: 500;
556 font-size: 100%;
557 margin: 0;
558}
559
560
561/* project list */
562
563.project-list {
564 margin-top: 60px;
565}
566
567.project-list a {
568 font-weight: 400;
569 text-decoration: none;
570}
571
572.project-list li {
573 list-style-type: disclosure-closed;
574 padding-left: 10px;
575}
576
577
578/* webring */
579
580.webring a {
581 font-weight: 500;
582}
583
584
585/* tag badges */
586
587.tags {
588 margin-top: 5px;
589}
590
591.tags a {
592 font-size: 80%;
593 padding: 2px 10px;
594 border-radius: 20px;
595
596 background: var(--badge-background-color);
597 color: var(--badge-label-color) !important;
598}
599
600.tags a:hover {
601 filter: brightness(90%);
602}
603
604
605/* helpers */
606
607.top-margin {
608 margin-top: 60px;
609}
610
611.top-margin-huge {
612 margin-top: 100px;
613}
614
615code {
616 font-family: 'IBM Plex Mono', monospace;
617 background: rgb(255, 241, 177);
618 border-radius: 5px;
619 padding: 2px 8px;
620 font-size: 14px;
621 font-weight: 500;
622}
623
624pre > code {
625 background: unset;
626 padding: unset;
627
628 padding: 15px 20px !important;
629 border-radius: 5px !important;
630 font-weight: 400;
631}
632
633pre {
634 font-size: 14px;
635 line-height: 1.5em;
636
637 margin-block-start: 40px;
638 margin-block-end: 40px;
639}
640
641img, video {
642 max-width: 100%;
643 margin: 30px auto;
644 display: block;
645 border-radius: 5px;
646}
647
648time {
649 color: var(--label-color);
650 font-size: 90%;
651}
652
653/* article */
654
655article a {
656 overflow-wrap: break-word;
657 word-wrap: break-word;
658 -webkit-hyphens: auto;
659 -ms-hyphens: auto;
660 -moz-hyphens: auto;
661 hyphens: auto;
662}
663
664article img {
665 max-width: 120%;
666 width: 120%;
667 position: relative;
668 left: -10%;
669 margin: 70px auto;
670}
671
672article strong {
673 font-weight: 600;
674}
675
676/* audio */
677
678audio {
679 width: 100%;
680 outline: none;
681}
682
683
684/* footer */
685
686.footer {
687 margin-top: 70px;
688 padding-top: 20px;
689 padding-bottom: 50px;
690 font-size: 90%;
691 color: #888;
692}
693
694.footer a {
695 color: #777;
696}
697
698
699/* responsive */
700
701@media only screen and (max-width: 960px) {
702 main { padding: 0 20px; }
703 footer { padding: 0 20px; }
704 h1[itemtype="headline"] { font-size: 220%; }
705 .navigation { margin-block-start: 30px; }
706 .navigation header { padding: 0 20px; }
707
708 article img {
709 max-width: 100%;
710 position: initial;
711 margin: 50px auto;
367 } 712 }
713}
368 714
369 code { 715@media only screen and (max-width: 600px) {
370 color: #111; 716 .navigation header { display: block; }
371 } */ 717 .navigation header h3 { text-align: center; margin-bottom: 10px; }
718 .navigation header nav { text-align: center; }
372} 719}
720
721
722/* light/dark mode */
723
724@media (prefers-color-scheme: light) { }
725
726@media (prefers-color-scheme: dark) { }
727
728
729@media (prefers-color-scheme: light) { }
730
731@media (prefers-color-scheme: dark) { }