-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.scss
84 lines (69 loc) · 1.16 KB
/
style.scss
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
html {
height: 100%;
display: grid;
place-items: center;
background: #f8f8f8;
color: #1a1a1a;
@media (prefers-color-scheme: dark) {
background: #1a1a1a;
color: #f8f8f8;
}
}
body {
margin: 20px 20px 60px;
font: 300 16px/1.5 "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}
h1 {
font-size: 2em;
font-weight: 700;
line-height: 1.2;
margin: 0 0 0 -1px; // Visual alignment
}
ul {
display: flex;
list-style: none;
font-size: .75em;
font-weight: 600;
line-height: 1.2;
margin-block: 4px 0;
padding: 0;
text-transform: uppercase;
&:has(:empty) li {
animation-play-state: paused;
}
li:not(:empty) + li:before {
content: '•';
font-weight: 500;
padding-inline: .5em;
}
li {
animation: fade-in 0.3s ease-out both;
animation-delay: calc(0.4s + var(--index) * 0.15s);
}
}
@keyframes fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
a {
--link-color: #05c;
color: var(--link-color);
text-decoration: none;
@media (prefers-color-scheme: dark) {
--link-color: #{lighten(#05c, 20%)};
}
&:focus,
&:hover {
text-decoration: underline;
}
&.secret {
color: inherit;
&:hover {
color: var(--link-color);
}
}
}