-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstyles.css
222 lines (186 loc) · 4.46 KB
/
styles.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
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
form {
margin: 0;
}
.widget--filter-label {
width: 100px;
}
.widget--filter-label::after {
content: ":";
}
.widget--filter-input {
border: 1px solid #000;
height: 24px;
border-top-left-radius: 6px;
padding: 2px 4px;
position: relative;
z-index: 1;
caret-color: red;
}
.widget--filter-and-options-container {
position: relative;
}
.widget--filter-and-options-container:not(.widget--open) .widget--filter-input {
border-bottom-left-radius: 6px;
}
.widget--filter-input:hover {
outline: 1px solid red;
}
.widget--filter-input:focus {
background-color: rgb(255, 235, 235);
}
.widget--filter-input:focus,
.widget--filter-and-options-container:focus-within .widget--filter-input {
outline: 1px solid red;
}
.widget--unselect-all-button {
position: absolute;
border: 0;
background-color: transparent;
right: 34px;
margin-top: 4px;
z-index: 2;
padding: 0;
border-radius: 8px;
}
.widget--x-selected-count {
font-size: 75%;
font-weight: bold;
padding-left: 4px;
}
.widget--unselect-all-button img {
vertical-align: middle;
}
.widget--unselect-all-button:focus,
.widget--unselect-all-button:hover {
outline: 1px solid red;
cursor: pointer;
background-color: rgb(255, 212, 212);
}
.widget--toggle-options-button {
height: 24px;
border: 1px solid #000;
margin-left: -1px;
vertical-align: bottom; /* Not totally sure what value is best here */
border-top-right-radius: 6px;
}
.widget--selected-options-button:focus {
outline: none;
}
.widget--toggle-options-button:hover,
.widget--toggle-options-button:focus {
cursor: pointer;
outline: none;
}
.widget--toggle-options-button img,
.widget--selected-options-button img {
border-radius: 8px;
}
.widget--toggle-options-button:hover img,
.widget--toggle-options-button:focus img,
.widget--selected-options-button:hover img,
.widget--selected-options-button:focus img {
outline: 1px solid red;
background-color: rgb(255, 212, 212);
}
.widget--filter-and-options-container:not(.widget--open) .widget--toggle-options-button {
border-bottom-right-radius: 6px;
}
.widget--filter-and-options-container:not(.widget--open) .widget--toggle-options-button img {
transform: rotate(180deg);
}
.widget--selected-options-container {
margin-top: 1em;
border: 0;
padding: 0;
}
.widget--selected-options-list {
margin: 0;
padding: 0;
overflow: hidden;
color: transparent; /* To hide the bullet point numbers (1., 2., etc.) visually, but let screen readers announce them. */
}
.widget--selected-options-list li {
float: left; /* TODO: Rather use flexbox here? */
margin-right: 0.5em;
}
.widget--selected-options-button {
border-radius: 6px;
border: 1px solid #000;
padding: 2px 4px;
}
.widget--selected-options-button img {
vertical-align: bottom;
}
.widget--selected-options-button:hover {
cursor: pointer;
}
.widget--selected-options-button img {
vertical-align: bottom;
}
.widget--available-options-container {
margin: 0;
border: 1px solid #000;
padding: 0;
position: absolute;
margin-top: -1px;
background-color: #fff;
width: 100%;
box-sizing: border-box;
box-shadow: 0px 0px 24px #0000007a;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
overflow: hidden;
}
.widget--available-options-list {
color: transparent; /* To hide the bullet point numbers (1., 2., etc.) visually, but let screen readers announce them. */
list-style: none;
padding: 0;
margin: 0;
}
.widget--available-options-list label {
color: #000;
padding: 2 4px;
width: 100%;
box-sizing: border-box;
border-left: 4px solid transparent; /* For high contrast mode */
}
.widget--available-options-list input:focus {
outline: none;
}
.widget--available-options-list input:hover {
cursor: pointer;
}
.widget--available-options-list label:focus-within,
.widget--available-options-list label:hover {
background-color: rgb(255, 167, 167);
cursor: pointer;
border-left-color: #000;
}
.widget--available-options-list input:checked + span {
font-weight: bold;
}
.widget--available-options-list input:checked + span .check {
content: " ";
display: inline-block;
margin-left: 0.25em;
background-color: red;
width: 14px;
height: 14px;
background: url(check.svg);
}
.widget--available-options-legend {
background-color: #000;
color: #fff;
border: 1px solid #000;
margin: 0 -1px;
border-bottom: 0;
width: 100%;
padding: 4px 0;
font-size: 0.75em;
font-style: italic;
text-align: center;
}
.event-logger {
position: fixed;
bottom: 1em;
}