-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstylesheet.css
More file actions
389 lines (387 loc) · 7.1 KB
/
stylesheet.css
File metadata and controls
389 lines (387 loc) · 7.1 KB
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
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
@keyframes fade {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes pulse {
0% {
transform: scale3d(1, 1, 1);
}
25% {
transform: scale3d(0.975, 0.975, 0.975);
}
50% {
transform: scale3d(1, 1, 1);
}
75% {
transform: scale3d(0.975, 0.975, 0.975);
}
100% {
transform: scale3d(1, 1, 1);
}
}
@keyframes scroll {
0% {
-webkit-transform: translate3d(140ch, 0, 0);
}
100% {
-webkit-transform: translate3d(-120ch, 0, 0);
}
}
@keyframes spin {
100% {
transform: rotate(360deg);
}
}
@keyframes wiggle {
0% {
margin-left: 10%;
}
50% {
margin-left: -10%;
}
}
@media (prefers-color-scheme: dark) {
body {
background: black;
}
:root {
--button-selection: #ffffff50; /*Theme-aware button text background on selection*/
--color-primary: white;
--color-secondary: #aaa;
}
}
@media (prefers-color-scheme: light) {
body {
background: white;
}
:root {
--button-selection: #00000050; /*Theme-aware button text background on selection*/
--color-primary: black;
--color-secondary: #000000cc;
}
}
@media (prefers-reduced-motion) {
* {
transition: none !important;
}
}
@media (min-width: 1024px) {
@keyframes scroll {
animation-play-state: paused;
}
}
:root {
--accent: #1a73e8;
--accent-bg: rgba(26, 115, 232, 0.15);
--accent-hover-bg: rgba(26, 115, 232, 0.25);
}
* {
border: none;
outline: none;
}
/*Theme-aware button text background on selection*/
.button-home::selection,
.button-right::selection,
.caption::selection,
.tab button.active::selection,
.tab button:hover::selection {
background: var(--button-selection);
}
.box,
.card,
.pledge,
.pledge-container,
.tab,
.tab button,
.tab button.active {
border-radius: 32px;
}
a:hover {
color: var(--accent);
}
.box:hover a,
.button-home:hover,
.button-right:hover {
color: var(--color-primary);
}
.button-right {
float: right;
}
.pledge,
.pledge-container,
.tab {
justify-content: center;
}
ul {
padding: 0;
}
br,
.btn,
.button-home,
.button-right,
.caption,
.date,
.footer,
img,
.pledge,
.tab {
user-select: none;
}
.button-home {
position: absolute;
left: calc(4% + 12px);
}
a {
color: var(--color-primary);
text-decoration: none;
transition: 0.5s; /*Animate link color on hover*/
}
/*Disable text/element selection on long-press for touchscreens -- applies for Chrome and Safari.*/
a,
.button-home,
.button-right,
.caption,
.switch,
.tab button,
.tab button.active {
-webkit-touch-callout: none;
-webkit-tap-highlight-color: transparent;
}
/*Scrollbar transparent background*/
body {
overflow: overlay;
}
/*Animated elements*/
.box,
button,
.button-home,
.button-right,
.card,
.caption,
.date,
h1,
h2,
h3,
img,
img.avatar,
img.gallery,
img.small,
li,
p,
ul {
animation: fade 0.5s;
transition: 0.5s;
}
.box,
.card,
.pledge,
.pledge-container,
.tab {
backdrop-filter: blur(16px);
background: var(--accent-bg);
-webkit-backdrop-filter: blur(16px); /*Workaround for Safari -- totally unsupported on Firefox*/
}
.card {
margin: 1em 0;
padding: 0.15em 1.5em 1em;
}
.box:hover {
background: var(--accent-hover-bg);
box-shadow: 0 0 20px 4px var(--accent-hover-bg);
transform: scale3d(1.01, 1.01, 1.01);
}
button {
background: var(--body-background);
color: var(--color-primary);
font-family: "Open Sans";
margin-left: 0.5em;
margin-right: 0.5em;
}
.button-home {
position: fixed;
z-index: 1;
}
.button-home,
.button-right,
.caption {
background: var(--accent);
border-radius: 18px;
font-size: large;
font-weight: 700;
line-height: 24px;
margin: 4px 0;
padding: 7px 14px;
}
.button-home:hover,
.button-right:hover {
cursor: pointer;
display: block;
padding: 8px 16px;
}
.button-right:hover,
.caption:hover {
filter: drop-shadow(0 0 1rem var(--accent));
padding: 8px 16px;
}
.caption {
cursor: text;
margin: 2em auto;
width: max-content; /*Use max-content variable instead of fit-content as a workaround for Firefox.*/
}
.date {
color: var(--color-secondary);
font-size: small;
}
.pledge,
.pledge-container {
font-size: small;
font-weight: 700;
line-height: 48px;
overflow-x: scroll;
overflow-y: hidden;
scrollbar-width: none; /* Firefox */
}
.pledge,
.pledge-container,
.tab {
align-items: center; /*Fix button transition on hover misalignment*/
display: grid;
height: 48px;
white-space: nowrap;
}
/*Hide horizontal & vertical scrollbars*/
.pledge-container::-webkit-scrollbar, /*Hide scrollbars in Safari*/
.tab-wiggle::-webkit-scrollbar, /*Hide scrollbars in Safari*/
.pledge::-webkit-scrollbar,
.pledge-container::-webkit-scrollbar,
.pledge::-webkit-scrollbar {
display: none;
}
.footer {
filter: drop-shadow(0 0 1rem var(--accent));
font-size: small;
text-align: center;
}
h1 {
animation: pulse 4s;
animation-delay: 1s;
color: var(--accent);
filter: drop-shadow(0 0 1rem var(--accent-bg));
padding-bottom: 1%;
text-align: center;
}
h1:hover {
filter: drop-shadow(0 0 1rem var(--accent));
transform: scale3d(1.05, 1.05, 1.05);
}
h2 {
padding: 0.25% 0 0.15%;
}
hr {
background: var(--accent);
border-radius: 8px;
height: 4px;
margin-top: 1em;
}
html {
background: var(--body-background);
caret-color: var(--accent);
color: var(--color-primary);
font-family: "Open Sans";
padding: 1% 4%;
scrollbar-color: var(--accent) transparent; /*Firefox fix*/
scrollbar-width: thin;
transition: color 0.5s;
}
img,
img.small {
display: block;
margin: 1% auto;
width: 50%;
}
img {
border-radius: 16px;
}
img.small {
border-radius: 8px;
width: 25%;
}
/*Zoom-in on images and add top and bottom spacing whilst keeping the centered position intact.*/
img:hover {
display: block;
filter: drop-shadow(0 0 1rem var(--accent));
margin: 4% auto;
transform: scale3d(1.15, 1.15, 1.15);
}
img.small:hover {
margin: 2% auto;
transform: scale3d(1.25, 1.25, 1.25);
}
li {
list-style-type: disc;
margin: 0.8em 2.5em;
}
li.clean {
list-style-position: outside;
list-style-type: none;
}
/*Paragraphs below bullet points*/
p.li {
margin: 0.8em 3em;
}
::selection {
background: var(--accent-hover-bg);
}
.scrollable-text,
.scrollable-text-index {
animation: 10s linear infinite scroll;
padding: 0 8px;
}
.scrollable-text:hover,
.scrollable-text-index:hover,
.tab-wiggle:hover {
animation-play-state: paused;
}
.tab button,
.tab button.active {
font-size: large;
line-height: 24px;
margin: 0px 4px;
padding: 7px 14px;
}
.tab button.active {
color: var(--accent);
font-weight: 700;
}
.tab button:hover,
.tab button.active:hover {
background: var(--accent);
border-radius: 20px;
color: var(--color-primary);
cursor: pointer;
font-weight: 700;
padding: 8px 16px;
margin: -2px 4px;
}
.tab-wiggle {
animation: wiggle 2s;
overflow-x: scroll;
overflow-y: hidden;
padding: 4px;
scrollbar-width: none; /* Firefox */
}
::-webkit-scrollbar {
height: 4px;
width: 4px;
}
::-webkit-scrollbar-thumb {
background: var(--accent);
border-radius: 8px;
}
::-webkit-scrollbar-track {
margin: 16px;
}