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