-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
styles.css
336 lines (278 loc) · 6.21 KB
/
styles.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
@import url('./preflight.css');
@import url('./prose.css');
@tailwind base;
@tailwind components;
@tailwind utilities;
html {
@apply overflow-x-hidden;
}
body,
html,
#__next {
@apply w-full max-w-full min-h-full bg-gray-100;
/* scroll-behavior: smooth; */
}
#__next {
/* background-image: url('./images/bg-typeofweb.svg'); */
background-repeat: repeat;
background-size: 106px;
background-position: center -15px;
@apply pt-12 lg:pt-12;
/* @apply pt-24; */
}
.size-full {
width: 100%;
max-width: 100%;
}
.size-large {
width: 768px;
max-width: 100%;
}
.size-medium {
width: 300px;
max-width: 100%;
}
.aligncenter {
@apply mx-auto;
}
.alignleft {
@apply float-left mr-5;
}
.alignright {
@apply float-right ml-5;
}
@media screen and (max-width: 1023.9999px) {
body.not-scrollable {
overflow: hidden;
position: fixed;
touch-action: none;
}
}
.digits:nth-child(-n + 9):nth-child(n + 1)::before {
margin-left: -1.9rem;
}
main > * + * {
content-visibility: auto;
contain-intrinsic-size: 10px 700px;
}
.icon.icon-link {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='h-5 w-5' viewBox='0 0 20 20' fill='rgb(138,138,138)'%3E%3Cpath fill-rule='evenodd' d='M12.586 4.586a2 2 0 112.828 2.828l-3 3a2 2 0 01-2.828 0 1 1 0 00-1.414 1.414 4 4 0 005.656 0l3-3a4 4 0 00-5.656-5.656l-1.5 1.5a1 1 0 101.414 1.414l1.5-1.5zm-5 5a2 2 0 012.828 0 1 1 0 101.414-1.414 4 4 0 00-5.656 0l-3 3a4 4 0 105.656 5.656l1.5-1.5a1 1 0 10-1.414-1.414l-1.5 1.5a2 2 0 11-2.828-2.828l3-3z' clip-rule='evenodd' /%3E%3C/svg%3E");
background-size: 20px;
background-repeat: no-repeat;
width: 25px;
height: 20px;
margin-left: -25px;
padding-right: 5px;
display: inline-block;
opacity: 0;
transition: opacity 0.3s ease-in;
}
:is(h1, h2, h3, h4):hover .icon.icon-link {
opacity: 1;
}
* {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: geometricPrecision;
}
.main-menu-button {
transform: translate3d(0, calc(0px - constant(safe-area-inset-bottom)), 0);
transform: translate3d(0, calc(0px - env(safe-area-inset-bottom)), 0);
}
.app-footer {
padding-bottom: calc(6rem + constant(safe-area-inset-bottom));
padding-bottom: calc(6rem + env(safe-area-inset-bottom));
background-image: url('./images/bg-typeofweb.svg');
background-repeat: repeat;
background-size: 106px;
background-position: top center;
}
[id] {
scroll-margin: 4rem 0 0 0;
}
dl {
@apply my-4;
& dt {
@apply indent-0 first:mt-0 mt-4 font-bold;
}
}
@layer utilities {
@supports (background-image: paint(fancyLinkUnderline)) {
.prose a,
.fancy-inner-link {
display: inline;
padding-bottom: 9px;
text-indent: 0;
background-size: 100% 9px;
background-repeat: no-repeat;
background-position: bottom left;
}
@property --fancy-animation-color {
syntax: '<color>';
initial-value: theme('colors.blue.500');
inherits: false;
}
@property --fancy-animation-progress {
syntax: '<number>';
initial-value: 0;
inherits: false;
}
.prose .inner-link,
.fancy-inner-link {
background-image: paint(fancyLinkUnderline);
background-position: bottom left;
padding-bottom: 9px;
transition: --fancy-animation-progress 0.6s cubic-bezier(0.7, 0, 0.3, 1);
--fancy-animation-progress: 0;
}
.prose .inner-link:hover,
.fancy-inner-link:hover {
--fancy-animation-progress: 1;
}
}
@supports (not (background-image: paint(fancyLinkUnderline))) {
.prose a:hover,
.fancy-link:hover {
text-decoration: underline;
}
}
}
a,
button {
@apply transition-shadow;
}
:focus,
select:focus {
outline: 0;
@apply border-blue-200 ring ring-blue-100 ring-opacity-50 ring-offset-2;
}
a:focus {
@apply underline ring-offset-0;
}
progress {
@apply animate-delay-1000 relative animate-appear;
&::-webkit-progress-bar {
@apply bg-gray-200;
}
&::-moz-progress-bar {
@apply bg-gray-200;
}
&::-webkit-progress-value {
@apply bg-gradient-to-r from-green-500 to-pink-500 via-blue-500 transition-all ease-out;
background-size: 100vw;
}
}
.katex {
& .katex-html > .newline + .newline {
min-height: 0.5em;
}
& .mfrac .frac-line {
border-color: currentColor;
}
}
.math {
white-space: nowrap;
& .katex-html {
white-space: normal;
}
}
.regulations {
font-size: 90%;
text-indent: 0 !important;
& li::before {
content: none !important;
}
& li {
padding-left: 1rem !important;
}
& ol {
margin-top: 0 !important;
}
& ol {
list-style-type: upper-roman;
}
& ol ol {
list-style-type: decimal;
}
& ol ol ol {
list-style-type: lower-alpha;
}
& ol ol ol ol {
list-style-type: decimal;
}
& ol ol ol ol ol {
list-style-type: lower-roman;
}
& ol ol ol ol ol ol {
list-style-type: upper-latin;
}
& ol h2,
& ol h3 {
display: inline-block;
font-size: 100%;
font-weight: 900;
}
}
.cp_embed_wrapper {
@apply my-8 pb-3 h-96 bg-gray-100 overflow-hidden resize-y;
& iframe {
@apply !h-full;
}
}
@media (max-width: 400px) {
iframe[src*='codepen.io'] {
width: 320px !important;
}
}
.ais-PoweredBy-text {
font-size: 0.6rem;
}
.ais-PoweredBy-logo {
height: 0.85rem;
width: auto;
}
@media screen and (min-width: 640px) {
.ais-PoweredBy-text {
font-size: 0.8rem;
}
.ais-PoweredBy-logo {
height: 1.25rem;
}
}
.cv-embed {
display: none;
}
@media screen and (min-width: 768px) {
.cv-embed {
--embed-scale: 0.8155555555;
display: block;
width: 824px;
height: 1220px;
margin-top: 1em;
transform: scale(var(--embed-scale));
transform-origin: top left;
transform-style: flat;
margin-bottom: calc(-1 * (1 - var(--embed-scale)) * 1220px);
}
}
.oembed iframe {
width: 100%;
height: 100%;
}
figure {
@apply text-center;
}
figure.oembed {
@apply mx-2 pb-8 pt-6 px-6 bg-white rounded-xl hover:shadow-2xl shadow-xl transition-shadow lg:mx-12;
}
figure.oembed p.title {
@apply mb-1 font-bold;
}
figure.oembed p {
hyphens: none;
max-width: 50ch;
@apply mx-auto;
}
figure.oembed cite {
@apply block -mt-3 mb-2 text-left text-gray-400 text-xs font-normal;
}