]> git.r.bdr.sh - rbdr/r.bdr.sh/blame_incremental - css/style.css
Fix header z-index
[rbdr/r.bdr.sh] / css / style.css
... / ...
CommitLineData
1* {
2 padding: 0;
3 margin: 0
4}
5html { scroll-behavior: smooth }
6body {
7 font-size: 1em;
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 padding: 2em;
13}
14@supports (-webkit-touch-callout: none) {
15 body {
16 font-size: 1em;
17 font: -apple-system-body;
18 font-family: "Hoefler Text", "Times New Roman", serif;
19 font-feature-settings: "liga" 1, "dlig" 1, "pnum" 1;
20 line-height: 1.6;
21 letter-spacing: 0.02em;
22 padding: 2em;
23 }
24}
25aside {
26 clear: both;
27 padding: 2em 0;
28}
29::selection {
30 background-color: #e8e8e8;
31 color: #00f;
32}
33.h2 { margin-top: 1em }
34@media only screen and (min-width: 500px) {
35 body { overflow-x: auto }
36 .columned {
37 width: max-content;
38
39 .h2:not(:only-child) {
40 float: left;
41 margin: 0 60px 0 0;
42
43 h2 { max-width: 14.6em }
44 .h3,
45 li,
46 p { max-width: 24em }
47 pre { max-width: 25em }
48 }
49
50 .h2:first-of-type {
51 columns: 3;
52 width: 24em;
53
54 h2:empty {display: none}
55 h2,
56 pre,
57 ul,
58 p:not(.a) { column-span: all }
59 p { break-after: column }
60 p.a { break-after: avoid }
61 }
62 }
63}
64
65.a { margin: 0 0.3em }
66pre {
67 background-color: #eee;
68 font-family: courier, monospace;
69 font-size: 0.875em;
70 max-width: 55em;
71 overflow-x: auto;
72 padding: 1em;
73}
74pre[role="img"] { display: none }
75blockquote, p, article > div {
76 max-width: 45em
77}
78blockquote {
79 border-left: 4px solid #ccc;
80 padding-left: 10px;
81}
82br { display: none }
83h1, h2, h3 {
84 font-family: "Avenir Next";
85 font-weight: 900
86}
87h1 { font-size: 2em }
88h3 {
89 font-weight: 600;
90 margin-top: 1em
91}
92
93h2, h3, a { color: #00f }
94[data-title="/index.html"] {
95 .h2:nth-of-type(n+2):nth-of-type(-n+4) {
96 h2, h3, a { color: #EE0700 }
97 }
98
99 .h2:nth-of-type(n+5):nth-of-type(-n+6) {
100 h2, h3, a { color: #398557 }
101 }
102
103 .h2:nth-of-type(n+7):nth-of-type(-n+9) {
104 h2, h3, a { color: #6A5ACD }
105 }
106
107 .h2:nth-of-type(10) {
108 h2, h3, a { color: #A76905 }
109 }
110
111 .h2:nth-of-type(11) {
112 h2, h3, a { color: #1D76DB }
113 }
114
115 .h2:nth-of-type(n+12):nth-of-type(-n+16) {
116 h2, h3, a { color: #D505C6 }
117 }
118
119 .h2:nth-of-type(17) {
120 h2, h3, a { color: #6A788A }
121 }
122}
123
124.h2 a {
125 display: inline-block;
126 padding: 0.25em 0;
127 margin: 0.25em 0;
128}
129
130header { position: relative }
131main {
132 position: relative;
133 z-index: 1
134}
135header h1 {
136 font-size: min(7.5rem, 17vw);
137 font-weight: 900;
138 letter-spacing: -0.2em;
139 line-height: 1em;
140}
141header h1 a {
142 background: repeating-linear-gradient(
143 0deg,
144 black,
145 black 1px,
146 white 1px,
147 white 2px
148 );
149 background-clip: text;
150 color: transparent;
151 display: inline-block;
152 padding-right: 0.2em;
153 text-decoration: none;
154 -webkit-text-stroke: 1px #000;
155}
156
157canvas {
158 background-color: #000;
159 border: 1px solid #000;
160 display: inline-block;
161 height: 64px;
162 width: 64px;
163}
164
165@media (prefers-color-scheme: dark) {
166 body {
167 background: #000;
168 color: #fff;
169 }
170 canvas {
171 background-color: #fff;
172 border: 1px solid #fff;
173 }
174 h2, h3, a { color: #5dc1fd }
175 [data-title="/index.html"] .h2:nth-of-type(n+7):nth-of-type(-n+9) {
176 h2, h3, a { color: #675CFB }
177 }
178 pre { background-color: #222 }
179 header h1 a {
180 -webkit-text-stroke: 1px #fff;
181 }
182}