-
Notifications
You must be signed in to change notification settings - Fork 0
/
expansion.css
46 lines (41 loc) · 949 Bytes
/
expansion.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
main:has(.expansion) {
height: 100%;
display: flex;
justify-content: center;
align-items: center;
div.expansion {
--expand-duration: 0.5s;
--link-slide-duration: 0.5s;
text-align: center;
&>div.components {
user-select: none;
text-decoration: none;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
span {
color: var(--letter-color);
transition-property: width;
transition-duration: var(--expand-duration);
display: inline-block;
overflow: hidden;
height: 1lh;
}
}
&>a.link {
display: inline-block;
height: 0;
transition-property: height;
transition-duration: var(--link-slide-duration);
transition-delay: var(--expand-duration);
overflow: hidden;
}
&:hover,
&:has(a.link:focus) {
a.link {
height: 1.5lh;
}
}
}
}