|
0
|
1 /* browser defaults, adjusted only where prose, tables and images need it.
|
|
|
2 light and dark schemes come from the browser; all shades are derived from
|
|
|
3 the text colour. */
|
|
|
4
|
|
|
5 :root {
|
|
|
6 color-scheme: light dark;
|
|
|
7
|
|
|
8 --rule: color-mix(in srgb, currentColor 30%, transparent);
|
|
|
9 --muted: color-mix(in srgb, currentColor 65%, transparent);
|
|
|
10 --wash: color-mix(in srgb, currentColor 6%, transparent);
|
|
|
11 --measure: 42em;
|
|
|
12 }
|
|
|
13
|
|
|
14 body {
|
|
|
15 max-width: var(--measure);
|
|
|
16 margin: 0 auto;
|
|
|
17 padding: 2em 1em 3em;
|
|
|
18 line-height: 1.5;
|
|
|
19 /* keep long urls from widening the column */
|
|
|
20 overflow-wrap: break-word;
|
|
|
21 }
|
|
|
22
|
|
|
23 /* masthead ---------------------------------------------------------------- */
|
|
|
24
|
|
|
25 .site-head {
|
|
|
26 padding-bottom: 0.6em;
|
|
|
27 border-bottom: 1px solid var(--rule);
|
|
|
28 }
|
|
|
29
|
|
|
30 .site-title {
|
|
|
31 margin: 0;
|
|
|
32 font-weight: bold;
|
|
|
33 }
|
|
|
34
|
|
|
35 .site-title a {
|
|
|
36 color: inherit;
|
|
|
37 text-decoration: none;
|
|
|
38 }
|
|
|
39
|
|
|
40 .site-nav {
|
|
|
41 margin: 0;
|
|
|
42 padding: 0;
|
|
|
43 list-style: none;
|
|
|
44 }
|
|
|
45
|
|
|
46 .site-nav li {
|
|
|
47 display: inline;
|
|
|
48 }
|
|
|
49
|
|
|
50 .site-nav li + li::before {
|
|
|
51 content: " | ";
|
|
|
52 }
|
|
|
53
|
|
|
54 /* page head --------------------------------------------------------------- */
|
|
|
55
|
|
|
56 h1 {
|
|
|
57 line-height: 1.2;
|
|
|
58 margin: 1.2em 0 0;
|
|
|
59 }
|
|
|
60
|
|
|
61 .subtitle {
|
|
|
62 margin: 0.3em 0 0;
|
|
|
63 font-style: italic;
|
|
|
64 }
|
|
|
65
|
|
|
66 .timeframe {
|
|
|
67 margin: 0.3em 0 0;
|
|
|
68 color: var(--muted);
|
|
|
69 }
|
|
|
70
|
|
|
71 /* tags and the creation date sit above the title, aligned right */
|
|
|
72 .tags, .created {
|
|
|
73 margin: 1.6em 0 0;
|
|
|
74 padding: 0;
|
|
|
75 list-style: none;
|
|
|
76 font-size: 0.85em;
|
|
|
77 text-align: right;
|
|
|
78 }
|
|
|
79
|
|
|
80 .tags + .created,
|
|
|
81 .tags + h1,
|
|
|
82 .created + h1 {
|
|
|
83 margin-top: 0.2em;
|
|
|
84 }
|
|
|
85
|
|
|
86 .tags li {
|
|
|
87 display: inline;
|
|
|
88 }
|
|
|
89
|
|
|
90 .tags li:not(:last-child)::after {
|
|
|
91 content: ",";
|
|
|
92 }
|
|
|
93
|
|
|
94 /* repository and crossref links, below the text and any floated image */
|
|
|
95 .page-link {
|
|
|
96 clear: both;
|
|
|
97 }
|
|
|
98
|
|
|
99 .updated {
|
|
|
100 clear: both;
|
|
|
101 margin-top: 2em;
|
|
|
102 font-size: 0.85em;
|
|
|
103 text-align: right;
|
|
|
104 color: var(--muted);
|
|
|
105 }
|
|
|
106
|
|
|
107 /* body -------------------------------------------------------------------- */
|
|
|
108
|
|
|
109 dt { font-weight: bold; }
|
|
|
110 dd { margin-bottom: 0.6em; }
|
|
|
111
|
|
|
112 pre {
|
|
|
113 overflow-x: auto;
|
|
|
114 padding: 0.6em 0.8em;
|
|
|
115 background: var(--wash);
|
|
|
116 }
|
|
|
117
|
|
|
118 blockquote {
|
|
|
119 margin-left: 0;
|
|
|
120 padding-left: 1em;
|
|
|
121 border-left: 2px solid var(--rule);
|
|
|
122 }
|
|
|
123
|
|
|
124 /* tables shrink and wrap; the generator emits no wrapper to scroll in */
|
|
|
125 table {
|
|
|
126 width: 100%;
|
|
|
127 border-collapse: collapse;
|
|
|
128 }
|
|
|
129
|
|
|
130 th, td {
|
|
|
131 padding: 0.3em 0.6em 0.3em 0;
|
|
|
132 text-align: left;
|
|
|
133 vertical-align: top;
|
|
|
134 border-bottom: 1px solid var(--rule);
|
|
|
135 }
|
|
|
136
|
|
|
137 th { border-bottom-width: 2px; }
|
|
|
138
|
|
|
139 /* images ------------------------------------------------------------------ */
|
|
|
140
|
|
|
141 /* local images have width and height attributes */
|
|
|
142 img {
|
|
|
143 max-width: 100%;
|
|
|
144 height: auto;
|
|
|
145 }
|
|
|
146
|
|
|
147 /* floats excluded: this rule would reset their side margins */
|
|
|
148 p > img:only-child:not(.left):not(.right) {
|
|
|
149 display: block;
|
|
|
150 margin: 1.4em 0;
|
|
|
151 }
|
|
|
152
|
|
|
153 .right, .left {
|
|
|
154 max-width: 50%;
|
|
|
155 margin-bottom: 0.6em;
|
|
|
156 }
|
|
|
157
|
|
|
158 .right { float: right; margin-left: 1.4em; }
|
|
|
159 .left { float: left; margin-right: 1.4em; }
|
|
|
160
|
|
|
161 figure {
|
|
|
162 margin: 0;
|
|
|
163 }
|
|
|
164
|
|
|
165 figure:not(.left):not(.right) {
|
|
|
166 margin: 1.4em 0;
|
|
|
167 }
|
|
|
168
|
|
|
169 figure img {
|
|
|
170 display: block;
|
|
|
171 }
|
|
|
172
|
|
|
173 figcaption {
|
|
|
174 margin-top: 0.4em;
|
|
|
175 font-size: 0.9em;
|
|
|
176 color: var(--muted);
|
|
|
177 }
|
|
|
178
|
|
|
179 /* footnotes --------------------------------------------------------------- */
|
|
|
180
|
|
|
181 .footnote {
|
|
|
182 clear: both;
|
|
|
183 font-size: 0.9em;
|
|
|
184 color: var(--muted);
|
|
|
185 }
|
|
|
186
|
|
|
187 .footnote hr {
|
|
|
188 border: 0;
|
|
|
189 border-top: 1px solid var(--rule);
|
|
|
190 margin: 2.5em 0 0.6em;
|
|
|
191 }
|
|
|
192
|
|
|
193 .footnote-backref { text-decoration: none; }
|
|
|
194
|
|
|
195 /* footer ------------------------------------------------------------------ */
|
|
|
196
|
|
|
197 .site-foot {
|
|
|
198 margin-top: 3em;
|
|
|
199 padding-top: 0.6em;
|
|
|
200 border-top: 1px solid var(--rule);
|
|
|
201 clear: both;
|
|
|
202 font-size: 0.9em;
|
|
|
203 color: var(--muted);
|
|
|
204 }
|
|
|
205
|
|
|
206 .site-foot p {
|
|
|
207 margin: 0;
|
|
|
208 }
|
|
|
209
|
|
|
210 /* narrow screens ---------------------------------------------------------- */
|
|
|
211
|
|
|
212 @media (max-width: 30em) {
|
|
|
213 /* images stop floating and take block spacing */
|
|
|
214 .right, .left {
|
|
|
215 display: block;
|
|
|
216 float: none;
|
|
|
217 max-width: 100%;
|
|
|
218 margin: 1.4em 0;
|
|
|
219 }
|
|
|
220 }
|