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