]> git.r.bdr.sh - rbdr/r.bdr.sh/blame - css/style.css
Add more R
[rbdr/r.bdr.sh] / css / style.css
CommitLineData
a28829c3
RBR
1html {
2 scroll-behavior: smooth;
3}
4
554c7e00 5body {
842364af 6 font-size: 1em;
2d479f54 7 font: -apple-system-body;
cb935595 8 font-family: "Hoefler Text", "Times New Roman", serif;
1203ab0c 9 font-feature-settings: "liga" 1, "dlig" 1, "pnum" 1;
ea3c62fe
RBR
10 line-height: 1.6;
11 letter-spacing: 0.02em;
56ffe968 12 text-align: justify;
554c7e00
RBR
13}
14
b28d5c2c
RBR
15aside {
16 clear: both;
17}
18
7629ba8e
RBR
19::selection {
20 color: #00f;
21 background-color: #e8e8e8;
22}
23
f752d89a
RBR
24@media only screen and (min-width: 500px) {
25 body {
26 overflow-x: auto;
27 }
ea3c62fe 28
f752d89a 29 .columned {
f752d89a
RBR
30 width: max-content;
31 }
ea3c62fe 32
d2329634 33 .columned .h2:not(:only-child) {
f752d89a
RBR
34 float: left;
35 margin: 0 40px;
f752d89a 36 }
ea3c62fe 37
d2329634 38 .columned .h2:not(:only-child) h2 {
f752d89a
RBR
39 width: 14.6em;
40 }
ea3c62fe 41
9ac4588d
RBR
42 .columned .h2:not(:only-child) .h3,
43 .columned .h2:not(:only-child) li,
44 .columned .h2:not(:only-child) p {
56ffe968 45 width: 24em;
f752d89a
RBR
46 }
47
d2329634 48 .columned .h2:not(:only-child) pre { width: 25em }
f752d89a
RBR
49}
50
1d6b1b68
RBR
51.columned .h2:first-of-type pre {
52 line-height: 1;
53}
54
c1bc1a5c
RBR
55blockquote, p, article > div {
56 margin: 0 0.3em;
57 max-width: 45em
58}
f752d89a
RBR
59pre { max-width: 55em }
60blockquote {
61 border-left: 4px solid #ccc;
62 padding-left: 10px;
63}
64
f752d89a 65br { display: none }
c1bc1a5c 66h1, h2, h3 { font-weight: normal }
554c7e00 67pre {
c26e6664 68 font-family: courier, monospace;
2d479f54 69 font-size: 0.875em;
20ee07e0 70 background-color: #eee;
f752d89a 71 overflow-x: auto;
554c7e00
RBR
72}
73
3b6787e4 74canvas {
21b1c71d
RBR
75 width: 64px;
76 height: 64px;
77 display: inline-block;
36626ad1 78 background-color: #000;
ad06827e 79 border: 1px solid #000;
967d51a0
BB
80}
81
21b1c71d 82@media (prefers-color-scheme: dark) {
b44cad65 83 body {
554c7e00
RBR
84 color: #fff;
85 background: #000;
b44cad65
RBR
86 }
87
36626ad1
RBR
88 canvas {
89 background-color: #fff;
ad06827e 90 border: 1px solid #fff;
36626ad1
RBR
91 }
92
21b1c71d
RBR
93 a {
94 color: #5dc1fd;
96759a28
RBR
95 display: inline-block;
96 min-height: 48px;
b44cad65
RBR
97 }
98
21b1c71d
RBR
99 a:visited {
100 color: #ed6eff;
b44cad65 101 }
20ee07e0
RBR
102
103 pre {
104 background-color: #222;
105 }
bb31ec9c 106}