]> git.r.bdr.sh - rbdr/r.bdr.sh/blame_incremental - css/style.css
Reword
[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 padding: 1em;
77}
78
79canvas {
80 width: 64px;
81 height: 64px;
82 display: block;
83 background-color: #000;
84 border: 1px solid #000;
85}
86
87@media (prefers-color-scheme: dark) {
88 body {
89 color: #fff;
90 background: #000;
91 }
92
93 canvas {
94 background-color: #fff;
95 border: 1px solid #fff;
96 }
97
98 a {
99 color: #5dc1fd;
100 display: inline-block;
101 min-height: 48px;
102 }
103
104 a:visited {
105 color: #ed6eff;
106 }
107
108 pre {
109 background-color: #222;
110 }
111}