]> git.bts.cx Git - garden.git/blob - templates/style/screen.css
ebb16695451c1fa55dcd9902bcebdedfc8595c16
[garden.git] / templates / style / screen.css
1 html {
2     line-height: 1.15;
3     -webkit-text-size-adjust:100%
4 }
5
6 body {
7     margin:0
8 }
9
10 h1 {
11     font-size: 2em;
12     margin:.67em 0
13 }
14
15 hr {
16     box-sizing: content-box;
17     height: 0;
18     overflow:visible
19 }
20
21 pre {
22     font-size:1em
23 }
24
25 a {
26     background-color:rgba(0, 0, 0, 0)
27 }
28
29 abbr[title] {
30     border-bottom: none;
31     text-decoration: underline;
32     text-decoration:underline dotted
33 }
34
35 b, strong {
36     font-weight:bolder
37 }
38
39 code, kbd, samp {
40     font-size:1em
41 }
42
43 small {
44     font-size:80%
45 }
46
47 sub, sup {
48     font-size: 75%;
49     line-height: 0;
50     position: relative;
51     vertical-align:baseline
52 }
53
54 sub {
55     bottom:-0.25em
56 }
57
58 sup {
59     top:-0.5em
60 }
61
62 img {
63     border-style:none
64 }
65
66 button, input, optgroup, select, textarea {
67     font-size: 100%;
68     line-height: 1.15;
69     margin:0
70 }
71
72 button, input {
73     overflow:visible
74 }
75
76 button, select {
77     text-transform:none
78 }
79
80 button, [type=button], [type=reset], [type=submit] {
81     -webkit-appearance:button
82 }
83
84 button::-moz-focus-inner, [type=button]::-moz-focus-inner, [type=reset]::-moz-focus-inner, [type=submit]::-moz-focus-inner {
85     border-style: none;
86     padding:0
87 }
88
89 button:-moz-focusring, [type=button]:-moz-focusring, [type=reset]:-moz-focusring, [type=submit]:-moz-focusring {
90     outline:1px dotted ButtonText
91 }
92
93 fieldset {
94     padding:.35em .75em .625em
95 }
96
97 legend {
98     box-sizing: border-box;
99     color: inherit;
100     display: table;
101     max-width: 100%;
102     padding: 0;
103     white-space:normal
104 }
105
106 progress {
107     vertical-align:baseline
108 }
109
110 textarea {
111     overflow:auto
112 }
113
114 [type=checkbox], [type=radio] {
115     box-sizing: border-box;
116     padding:0
117 }
118
119 [type=number]::-webkit-inner-spin-button, [type=number]::-webkit-outer-spin-button {
120     height:auto
121 }
122
123 [type=search] {
124     -webkit-appearance: textfield;
125     outline-offset:-2px
126 }
127
128 [type=search]::-webkit-search-decoration {
129     -webkit-appearance:none
130 }
131
132 ::-webkit-file-upload-button {
133     -webkit-appearance: button;
134     font:inherit
135 }
136
137 details {
138     display:block
139 }
140
141 summary {
142     display:list-item
143 }
144
145 template {
146     display:none
147 }
148
149 [hidden] {
150     display:none
151 }
152
153 .highlight {
154     background: #f8f8f8;
155     padding: 1px 1em;
156     border-radius: 3px;
157     font-size: 1em;
158     font-size: .9em;
159     overflow: auto;
160     margin:1em -1em
161 }
162
163 .highlight code {
164     padding:0
165 }
166
167 div.highlight {
168     display:grid
169 }
170
171 .highlight .c {
172     color: #998;
173     font-style:italic
174 }
175
176 .highlight .err {
177     color: #a61717;
178     background-color:#e3d2d2
179 }
180
181 .highlight .k {
182     font-weight:bold
183 }
184
185 .highlight .o {
186     font-weight:bold
187 }
188
189 .highlight .cm {
190     color: #998;
191     font-style:italic
192 }
193
194 .highlight .cp {
195     color: #999;
196     font-weight:bold
197 }
198
199 .highlight .c1 {
200     color: #998;
201     font-style:italic
202 }
203
204 .highlight .cs {
205     color: #999;
206     font-weight: bold;
207     font-style:italic
208 }
209
210 .highlight .gd {
211     color: #000;
212     background-color:#fdd
213 }
214
215 .highlight .gd .x {
216     color: #000;
217     background-color:#faa
218 }
219
220 .highlight .ge {
221     font-style:italic
222 }
223
224 .highlight .gr {
225     color:#a00
226 }
227
228 .highlight .gh {
229     color:#999
230 }
231
232 .highlight .gi {
233     color: #000;
234     background-color:#dfd
235 }
236
237 .highlight .gi .x {
238     color: #000;
239     background-color:#afa
240 }
241
242 .highlight .go {
243     color:#888
244 }
245
246 .highlight .gp {
247     color:#555
248 }
249
250 .highlight .gs {
251     font-weight:bold
252 }
253
254 .highlight .gu {
255     color:#aaa
256 }
257
258 .highlight .gt {
259     color:#a00
260 }
261
262 .highlight .kc {
263     font-weight:bold
264 }
265
266 .highlight .kd {
267     font-weight:bold
268 }
269
270 .highlight .kp {
271     font-weight:bold
272 }
273
274 .highlight .kr {
275     font-weight:bold
276 }
277
278 .highlight .kt {
279     color: #458;
280     font-weight:bold
281 }
282
283 .highlight .m {
284     color:#099
285 }
286
287 .highlight .s {
288     color:#d14
289 }
290
291 .highlight .na {
292     color:teal
293 }
294
295 .highlight .nb {
296     color:#0086b3
297 }
298
299 .highlight .nc {
300     color: #458;
301     font-weight:bold
302 }
303
304 .highlight .no {
305     color:teal
306 }
307
308 .highlight .ni {
309     color:purple
310 }
311
312 .highlight .ne {
313     color: #900;
314     font-weight:bold
315 }
316
317 .highlight .nf {
318     color: #900;
319     font-weight:bold
320 }
321
322 .highlight .nn {
323     color:#555
324 }
325
326 .highlight .nt {
327     color:navy
328 }
329
330 .highlight .nv {
331     color:teal
332 }
333
334 .highlight .ow {
335     font-weight:bold
336 }
337
338 .highlight .w {
339     color:#bbb
340 }
341
342 .highlight .mf {
343     color:#099
344 }
345
346 .highlight .mh {
347     color:#099
348 }
349
350 .highlight .mi {
351     color:#099
352 }
353
354 .highlight .mo {
355     color:#099
356 }
357
358 .highlight .sb {
359     color:#d14
360 }
361
362 .highlight .sc {
363     color:#d14
364 }
365
366 .highlight .sd {
367     color:#d14
368 }
369
370 .highlight .s2 {
371     color:#d14
372 }
373
374 .highlight .se {
375     color:#d14
376 }
377
378 .highlight .sh {
379     color:#d14
380 }
381
382 .highlight .si {
383     color:#d14
384 }
385
386 .highlight .sx {
387     color:#d14
388 }
389
390 .highlight .sr {
391     color:#009926
392 }
393
394 .highlight .s1 {
395     color:#d14
396 }
397
398 .highlight .dl {
399     color:#d14
400 }
401
402 .highlight .ss {
403     color:#990073
404 }
405
406 .highlight .bp {
407     color:#999
408 }
409
410 .highlight .vc {
411     color:teal
412 }
413
414 .highlight .vg {
415     color:teal
416 }
417
418 .highlight .vi {
419     color:teal
420 }
421
422 .highlight .il {
423     color:#099
424 }
425
426 body {
427     box-sizing: content-box;
428     font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
429     margin: 0 auto;
430     line-height: 1.7;
431     padding: 4vh 6vw;
432     overflow-x: hidden;
433     color: #333;
434     font-size: 1rem;
435     max-width:63em
436 }
437
438 @media (min-width: 820px) {
439     body {
440         font-size:1.2rem
441     }
442 }
443
444 time {
445     display: block;
446     color: hsl(0, 0%, 30%);
447     margin:.5em 0 1em
448 }
449
450 footer {
451     margin: 2em 0;
452     font-size: .8em;
453     color: hsl(0, 0%, 36%);
454     padding-top:1em
455 }
456
457 img {
458     max-width: 100%;
459     margin: 0 auto;
460     max-height: 75vh;
461     border-radius:4px
462 }
463
464 blockquote {
465     padding: 1.5em;
466     margin: 0;
467     font-size: .88em;
468     background: hsl(0, 0%, 96.4%);
469     border-radius:4px
470 }
471
472 blockquote p {
473     margin:0
474 }
475
476 hr {
477     width: 100%;
478     border: 0;
479     height: 1px;
480     margin: 1.5em 0;
481     background:hsl(0, 0%, 85%)
482 }
483
484 h1, h2, h3, h4, h5, h6 {
485     line-height: 1.3;
486     margin-bottom: 0;
487     padding-bottom:0
488 }
489
490 a {
491     transition: background 300ms;
492     padding: 0 .1em;
493     text-decoration: none;
494     border-bottom: 1px solid hsl(0, 0%, 85%);
495     color:hsl(0, 0%, 10%)
496 }
497
498 a:hover {
499     color: #000 !important;
500     background:#fffaf1
501 }
502
503 a:after {
504     position: relative;
505     top: -0.5em;
506     font-size: .7em;
507     content: "↗";
508     color:#aaa
509 }
510
511 a.internal-link:after, a.footnote:after, a.reversefootnote:after {
512     content: ""
513 }
514
515 *:focus {
516     background: #ffe8bc !important;
517     color:#000 !important
518 }
519
520 nav {
521     margin:1em 0 3em
522 }
523
524 #notes-entry-container {
525     display: grid;
526     grid-gap: 2em;
527     grid-template-areas: "content" "side"
528 }
529
530 @media (min-width: 700px) {
531     #notes-entry-container {
532         grid-template-columns: 3fr 1fr;
533         grid-template-areas: "content side"
534     }
535 }
536
537 .backlink-box {
538     background: hsl(0, 0%, 96.4%);
539     padding: 1em;
540     border-radius:4px
541 }
542
543 code {
544     background: #f5f5f5;
545     padding: .1em .2em;
546     border-radius:4px
547 }
548
549 .invalid-link {
550     color: #444;
551     cursor: help;
552     background: #fafafa;
553     padding:0 .1em
554 }
555
556 .invalid-link-brackets {
557     color: #ccc;
558     cursor: help
559 }
560
561 body {
562   display: grid;
563   width: 100%;
564   height: 200px;
565   grid-template:
566     [header-left] "head head" 60px [header-right]
567     [main-left] "nav main" 100px [main-right]
568     [footer-left] "nav foot" 30px [footer-right]
569     / 300px auto;
570 }
571
572 header {
573   grid-area: head;
574 }
575
576 nav {
577   grid-area: nav;
578 }
579
580 main {
581   grid-area: main;
582 }
583
584 footer {
585   grid-area: foot;
586 }