-
Notifications
You must be signed in to change notification settings - Fork 0
/
level-4.css
127 lines (107 loc) · 2.44 KB
/
level-4.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
:root {
--l4-size: calc(var(--size) * 1.75);
}
.level-4 {
animation-duration: calc(var(--speed) * 3);
animation-name: l4;
animation-timing-function: ease-out;
animation-direction: alternate;
animation-fill-mode: forwards;
animation-play-state: paused;
visibility: hidden;
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
width: var(--l4-size);
height: var(--size);
opacity: 0;
}
.level-4:focus-within {
animation-play-state: running;
}
.level-4:focus-within:not(:valid) .message {
opacity: 1;
}
.level-4:focus-within ~ .wizard {
left: calc(var(--gap) * 4 + var(--steps) * 3 + var(--size) + var(--l2-size));
}
.level-4:valid ~ .next,
.level-4:valid + .steps {
animation-play-state: running;
}
.level-4:valid ~ .next form {
visibility: visible;
}
@keyframes l4 {
from {
opacity: 0;
visibility: hidden;
}
to {
opacity: 1;
visibility: visible;
}
}
.level-4-elements {
width: var(--size);
height: var(--size);
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr 1fr;
opacity: 0;
transition: opacity calc(var(--speed) * 1) ease-out var(--speed);
}
.level-4:focus-within .level-4-elements,
.level-4:valid .level-4-elements {
opacity: 1;
}
.level-4-trigram {
position: relative;
}
.level-4-trigram span {
line-height: 1;
font-size: calc(var(--size) * 0.6);
color: #334155;
position: absolute;
top: -2px;
left: 50%;
transform: translateX(-50%);
transition: all calc(var(--speed) / 2) ease-out;
transition-property: color, text-shadow;
}
.level-4-element {
opacity: 0;
position: absolute;
}
.level-4-element[value="fire"]:checked:focus-visible ~ span,
.level-4-element[value="earth"]:checked:focus-visible ~ span,
.level-4-element:focus-visible ~ span {
border-bottom: 1px solid #94a3b8;
}
.level-4-element:checked ~ span {
text-shadow: 0px 0px 10px currentColor;
}
.level-4-element[value="fire"] ~ span {
color: #fb923c;
text-shadow: 0px 0px 10px currentColor;
}
.level-4-element[value="fire"]:checked ~ span {
color: #334155;
text-shadow: none;
}
.level-4-element[value="earth"] ~ span {
color: #84cc16;
text-shadow: 0px 0px 10px currentColor;
}
.level-4-element[value="earth"]:checked ~ span {
color: #334155;
text-shadow: none;
}
.level-4-element[value="water"]:checked ~ span {
color: #0ea5e9;
}
.level-4-element[value="wind"]:checked ~ span {
color: #a5f3fc;
text-shadow: 0px 0px 10px #22d3ee;
}