]> git.r.bdr.sh - rbdr/r.bdr.sh/blame_incremental - css/style.css
Apply to all
[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: 1em }
78h2 { font-size: 1.65em }
79h3 { font-size: 1.25em }
80pre {
81 font-family: courier, monospace;
82 font-size: 0.875em;
83 background-color: #eee;
84 overflow-x: auto;
85 padding: 1em;
86}
87
88canvas {
89 width: 64px;
90 height: 64px;
91 display: block;
92 background-color: #000;
93 border: 1px solid #000;
94}
95
96@media (prefers-color-scheme: dark) {
97 body {
98 color: #fff;
99 background: #000;
100 }
101
102 canvas {
103 background-color: #fff;
104 border: 1px solid #fff;
105 }
106
107 a {
108 color: #5dc1fd;
109 display: inline-block;
110 min-height: 48px;
111 }
112
113 a:visited {
114 color: #ed6eff;
115 }
116
117 pre {
118 background-color: #222;
119 }
120}