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