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