Repository navigation
Expand file tree
/
Copy pathselect.css
More file actions
158 lines (128 loc) · 2.43 KB
/
Copy pathselect.css
File metadata and controls
158 lines (128 loc) · 2.43 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
body {
margin: 0;
font-family: sans-serif;
color: #111;
background: #fff;
}
.select-screen {
min-height: 100vh;
padding: 48px 24px;
box-sizing: border-box;
}
.select-content {
width: 100%;
max-width: 420px;
margin: 0 auto;
}
.select-content h1,
.select-content h2 {
margin: 32px 0 20px;
font-size: 22px;
line-height: 1.5;
}
.select-content h1:first-child,
.select-content h2:first-child {
margin-top: 16px;
}
.level-list {
display: grid;
gap: 10px;
}
.level-list input {
position: absolute;
opacity: 0;
}
.level-card {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 14px 16px;
border: 1.5px solid #ddd;
border-radius: 14px;
cursor: pointer;
}
.level-card strong,
.level-card small {
display: block;
}
.level-card small {
margin-top: 4px;
font-size: 13px;
line-height: 1.5;
color: #666;
}
.level-example {
display: none;
margin-top: 8px;
font-size: 13px;
line-height: 1.5;
color: #666;
}
.radio-mark {
box-sizing: border-box;
flex: 0 0 22px;
width: 22px;
height: 22px;
border: 2px solid #111;
border-radius: 50%;
}
.level-list input:checked + .level-card {
background: #555;
color: #fff;
border-color: #111;
}
.level-list input:checked + .level-card small {
color: #e0e0e0;
}
.level-list input:checked + .level-card .level-example {
display: block;
color: #e0e0e0;
}
.level-list input:checked + .level-card .radio-mark {
background: #fff;
border: 5px solid #555;
outline: 2px solid #fff;
}
.select-actions {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 32px;
}
.back-link {
color: #666;
text-decoration: none;
font-size: 14px;
}
.back-link:hover,
.back-link:focus-visible {
color: #111;
}
#nextButton {
padding: 12px 28px;
border: none;
border-radius: 10px;
background: #555;
color: #fff;
font-size: 15px;
cursor: pointer;
}
#nextButton:hover:not(:disabled) {
background: #444;
}
#nextButton:focus-visible {
outline: 2px solid #555;
outline-offset: 3px;
}
#nextButton:disabled {
opacity: 0.2;
cursor: not-allowed;
}
.level-list input:focus-visible + .level-card {
outline: 2px solid #111;
outline-offset: 3px;
}
.level-list input:not(:checked) + .level-card:hover {
background: #f5f5f5;
}