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