]> git.r.bdr.sh - rbdr/r.bdr.sh/blob - css/style.css
ce3551dde980b233fdb0803f5bcb37866888d654
[rbdr/r.bdr.sh] / css / style.css
1 html {
2 scroll-behavior: smooth;
3 }
4
5 body {
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
15 aside {
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 header {
52 float: left;
53 margin-top: 1.2em;
54 }
55 }
56
57 .columned .h2:first-of-type pre {
58 line-height: 1;
59 }
60
61 blockquote, p, article > div {
62 margin: 0 0.3em;
63 max-width: 45em
64 }
65 pre { max-width: 55em }
66 blockquote {
67 border-left: 4px solid #ccc;
68 padding-left: 10px;
69 }
70
71 br { display: none }
72 h1, h2, h3 { font-weight: normal }
73 h1 { font-size: 1em }
74 h2 { font-size: 1.65em }
75 h3 { font-size: 1.25em }
76 pre {
77 font-family: courier, monospace;
78 font-size: 0.875em;
79 background-color: #eee;
80 overflow-x: auto;
81 padding: 1em;
82 }
83
84 canvas {
85 width: 64px;
86 height: 64px;
87 display: block;
88 background-color: #000;
89 border: 1px solid #000;
90 }
91
92 @media (prefers-color-scheme: dark) {
93 body {
94 color: #fff;
95 background: #000;
96 }
97
98 canvas {
99 background-color: #fff;
100 border: 1px solid #fff;
101 }
102
103 a {
104 color: #5dc1fd;
105 display: inline-block;
106 min-height: 48px;
107 }
108
109 a:visited {
110 color: #ed6eff;
111 }
112
113 pre {
114 background-color: #222;
115 }
116 }