]> git.r.bdr.sh - rbdr/r.bdr.sh/blame - css/style.css
Float header in column mode
[rbdr/r.bdr.sh] / css / style.css
CommitLineData
a28829c3
RBR
1html {
2 scroll-behavior: smooth;
3}
4
554c7e00 5body {
c21740be 6 font-size: 1em;
b05364b7 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;
1b814f1c 17 padding-top: 2em;
b28d5c2c
RBR
18}
19
7629ba8e
RBR
20::selection {
21 color: #00f;
22 background-color: #e8e8e8;
23}
24
f752d89a
RBR
25@media only screen and (min-width: 500px) {
26 body {
27 overflow-x: auto;
28 }
ea3c62fe 29
f752d89a 30 .columned {
f752d89a
RBR
31 width: max-content;
32 }
ea3c62fe 33
d2329634 34 .columned .h2:not(:only-child) {
f752d89a
RBR
35 float: left;
36 margin: 0 40px;
f752d89a 37 }
ea3c62fe 38
d2329634 39 .columned .h2:not(:only-child) h2 {
f752d89a
RBR
40 width: 14.6em;
41 }
ea3c62fe 42
9ac4588d
RBR
43 .columned .h2:not(:only-child) .h3,
44 .columned .h2:not(:only-child) li,
45 .columned .h2:not(:only-child) p {
56ffe968 46 width: 24em;
f752d89a
RBR
47 }
48
d2329634 49 .columned .h2:not(:only-child) pre { width: 25em }
7d88d76a
RBR
50
51 header {
52 float: left;
53 margin-top: 1.2em;
54 }
f752d89a
RBR
55}
56
1d6b1b68
RBR
57.columned .h2:first-of-type pre {
58 line-height: 1;
59}
60
c1bc1a5c
RBR
61blockquote, p, article > div {
62 margin: 0 0.3em;
63 max-width: 45em
64}
f752d89a
RBR
65pre { max-width: 55em }
66blockquote {
67 border-left: 4px solid #ccc;
68 padding-left: 10px;
69}
70
f752d89a 71br { display: none }
c1bc1a5c 72h1, h2, h3 { font-weight: normal }
1b814f1c
RBR
73h1 { font-size: 1em }
74h2 { font-size: 1.65em }
75h3 { font-size: 1.25em }
554c7e00 76pre {
c26e6664 77 font-family: courier, monospace;
2d479f54 78 font-size: 0.875em;
20ee07e0 79 background-color: #eee;
f752d89a 80 overflow-x: auto;
5f1bacc2 81 padding: 1em;
554c7e00
RBR
82}
83
3b6787e4 84canvas {
21b1c71d
RBR
85 width: 64px;
86 height: 64px;
1b814f1c 87 display: block;
36626ad1 88 background-color: #000;
ad06827e 89 border: 1px solid #000;
967d51a0
BB
90}
91
21b1c71d 92@media (prefers-color-scheme: dark) {
b44cad65 93 body {
554c7e00
RBR
94 color: #fff;
95 background: #000;
b44cad65
RBR
96 }
97
36626ad1
RBR
98 canvas {
99 background-color: #fff;
ad06827e 100 border: 1px solid #fff;
36626ad1
RBR
101 }
102
21b1c71d
RBR
103 a {
104 color: #5dc1fd;
96759a28
RBR
105 display: inline-block;
106 min-height: 48px;
b44cad65
RBR
107 }
108
21b1c71d
RBR
109 a:visited {
110 color: #ed6eff;
b44cad65 111 }
20ee07e0
RBR
112
113 pre {
114 background-color: #222;
115 }
bb31ec9c 116}