]> git.r.bdr.sh - rbdr/r.bdr.sh/blame_incremental - css/style.css
Change heading sizes
[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 .columned {
31 width: max-content;
32 }
33
34 .columned .h2:not(:only-child) {
35 float: left;
36 margin: 0 40px;
37 }
38
39 .columned .h2:not(:only-child) h2 {
40 width: 14.6em;
41 }
42
43 .columned .h2:not(:only-child) .h3,
44 .columned .h2:not(:only-child) li,
45 .columned .h2:not(:only-child) p {
46 width: 24em;
47 }
48
49 .columned .h2:not(:only-child) pre { width: 25em }
50}
51
52.columned .h2:first-of-type pre {
53 line-height: 1;
54}
55
56blockquote, p, article > div {
57 margin: 0 0.3em;
58 max-width: 45em
59}
60pre { max-width: 55em }
61blockquote {
62 border-left: 4px solid #ccc;
63 padding-left: 10px;
64}
65
66br { display: none }
67h1, h2, h3 { font-weight: normal }
68h1 { font-size: 1em }
69h2 { font-size: 1.65em }
70h3 { font-size: 1.25em }
71pre {
72 font-family: courier, monospace;
73 font-size: 0.875em;
74 background-color: #eee;
75 overflow-x: auto;
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 {
104 color: #ed6eff;
105 }
106
107 pre {
108 background-color: #222;
109 }
110}