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