]> git.r.bdr.sh - rbdr/r.bdr.sh/blob - css/style.css
Add block h1 a
[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 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
65 blockquote, p, article > div {
66 margin: 0 0.3em;
67 max-width: 45em
68 }
69 pre { max-width: 55em }
70 blockquote {
71 border-left: 4px solid #ccc;
72 padding-left: 10px;
73 }
74
75 br { display: none }
76 h1, h2, h3 { font-weight: normal }
77 h1 { font-size: 1em }
78 h2 { font-size: 1.65em }
79 h3 { font-size: 1.25em }
80 pre {
81 font-family: courier, monospace;
82 font-size: 0.875em;
83 background-color: #eee;
84 overflow-x: auto;
85 padding: 1em;
86 }
87
88 canvas {
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 h1 a {
108 display: block;
109 width: 64px;
110 }
111
112 a {
113 color: #5dc1fd;
114 display: inline-block;
115 min-height: 48px;
116 }
117
118 a:visited {
119 color: #ed6eff;
120 }
121
122 pre {
123 background-color: #222;
124 }
125 }