]> git.r.bdr.sh - rbdr/r.bdr.sh/blame_incremental - css/style.css
Add blog page
[rbdr/r.bdr.sh] / css / style.css
... / ...
CommitLineData
1body {
2 font-family: "Hoefler Text", "Times New Roman", serif;
3 font-feature-settings: "liga" 1, "dlig" 1, "pnum" 1;
4 line-height: 1.6;
5 letter-spacing: 0.02em;
6}
7
8@media only screen and (min-width: 500px) {
9 body {
10 overflow-x: auto;
11 }
12
13 .columned {
14 height: calc(100vh - 200px);
15 width: max-content;
16 }
17
18 .columned .h2:not(:only-child) {
19 float: left;
20 margin: 0 40px;
21 height: calc(100vh - 200px);
22 }
23
24 .columned .h2:not(:only-child) h2 {
25 width: 14.6em;
26 }
27
28 .columned .h2:not(:only-child) .h3, .columned .h2:not(:only-child) p {
29 width: 22em;
30 }
31
32 .columned .h2:not(:only-child) pre { width: 25em }
33}
34
35.columned .h2:first-of-type pre {
36 line-height: 1;
37}
38
39blockquote, p { max-width: 45em }
40pre { max-width: 55em }
41blockquote {
42 border-left: 4px solid #ccc;
43 padding-left: 10px;
44}
45
46h1, h2, h3 { font-weight: normal }
47br { display: none }
48pre {
49 font-family: courier, monospace;
50 font-size: 14px;
51 background-color: #eee;
52 overflow-x: auto;
53}
54
55canvas {
56 width: 64px;
57 height: 64px;
58 display: inline-block;
59 background-color: #000;
60 border: 1px solid #000;
61}
62
63@media (prefers-color-scheme: dark) {
64 body {
65 color: #fff;
66 background: #000;
67 }
68
69 canvas {
70 background-color: #fff;
71 border: 1px solid #fff;
72 }
73
74 a {
75 color: #5dc1fd;
76 display: inline-block;
77 min-height: 48px;
78 }
79
80 a:visited {
81 color: #ed6eff;
82 }
83
84 pre {
85 background-color: #222;
86 }
87}