@jsb188/css 1.1.8 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/_colors.generated.css +530 -0
- package/css/_global.css +2426 -1142
- package/css/_responsive.css +7240 -0
- package/css/_responsive.generated.css +12503 -0
- package/css/_sizing.css +1572 -1761
- package/css/alert.css +86 -8
- package/css/animate.css +527 -181
- package/css/form.css +378 -204
- package/css/layout.css +306 -128
- package/css/loading.css +119 -103
- package/css/misc.css +33 -32
- package/css/modal.css +54 -51
- package/css/popover.css +53 -49
- package/package.json +22 -21
- package/scripts/generateResponsiveCss.js +274 -0
- package/css/list.css +0 -282
package/css/form.css
CHANGED
|
@@ -1,477 +1,651 @@
|
|
|
1
|
-
|
|
2
1
|
/* Form elements */
|
|
3
2
|
|
|
4
3
|
.form_el {
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
7
6
|
}
|
|
8
7
|
|
|
9
8
|
.no_resize {
|
|
10
|
-
|
|
9
|
+
resize: none;
|
|
11
10
|
}
|
|
12
11
|
|
|
13
12
|
/* Form containers - same padding for all form elements */
|
|
14
13
|
|
|
15
14
|
.form_cnt,
|
|
16
|
-
.form_el input,
|
|
17
|
-
|
|
15
|
+
.form_el input,
|
|
16
|
+
.form_el textarea,
|
|
17
|
+
.form_el .tx_virtualizer {
|
|
18
|
+
padding: 0.58rem;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
fieldset.form_cnt {
|
|
22
|
+
padding-bottom: 1rem;
|
|
18
23
|
}
|
|
19
24
|
|
|
20
25
|
.form_cnt.smaller,
|
|
21
|
-
.form_el.smaller input,
|
|
22
|
-
|
|
23
|
-
|
|
26
|
+
.form_el.smaller input,
|
|
27
|
+
.form_el.smaller textarea,
|
|
28
|
+
.form_el.smaller .tx_virtualizer {
|
|
29
|
+
/* If less is needed, use .lh_1 .lh_2 to further flatten the height */
|
|
30
|
+
padding: 0.32rem 6px;
|
|
24
31
|
}
|
|
25
32
|
|
|
26
33
|
/* Input */
|
|
27
34
|
|
|
28
35
|
.form_cnt.outline,
|
|
29
|
-
.form_el input,
|
|
30
|
-
|
|
31
|
-
|
|
36
|
+
.form_el input,
|
|
37
|
+
.form_el textarea,
|
|
38
|
+
.form_el .tx_virtualizer {
|
|
39
|
+
border: solid 1px var(--color-darker-light);
|
|
40
|
+
background-color: transparent;
|
|
32
41
|
}
|
|
33
42
|
|
|
34
43
|
/* Invisible input (use this to make inputs clickable with separate render component) */
|
|
35
44
|
|
|
36
45
|
.invis_input {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
46
|
+
border: none;
|
|
47
|
+
padding: 0;
|
|
48
|
+
margin: 0;
|
|
49
|
+
color: rgba(0, 0, 0, 0);
|
|
50
|
+
background-color: rgba(0, 0, 0, 0);
|
|
41
51
|
}
|
|
42
52
|
|
|
43
|
-
.invis_input:focus
|
|
44
|
-
|
|
53
|
+
.invis_input:focus,
|
|
54
|
+
.stock:focus {
|
|
55
|
+
outline: none;
|
|
45
56
|
}
|
|
46
57
|
|
|
47
58
|
.invis_input::selection {
|
|
48
|
-
|
|
49
|
-
|
|
59
|
+
background: rgba(0, 0, 0, 0);
|
|
60
|
+
color: rgba(0, 0, 0, 0);
|
|
50
61
|
}
|
|
51
62
|
|
|
52
63
|
input.invis_input[type="number"] {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
64
|
+
appearance: none;
|
|
65
|
+
-webkit-appearance: none;
|
|
66
|
+
-moz-appearance: textfield;
|
|
56
67
|
}
|
|
57
68
|
|
|
58
69
|
input.invis_input::-webkit-outer-spin-button,
|
|
59
70
|
input.invis_input::-webkit-inner-spin-button {
|
|
60
|
-
|
|
61
|
-
|
|
71
|
+
-webkit-appearance: none;
|
|
72
|
+
margin: 0;
|
|
62
73
|
}
|
|
63
74
|
|
|
64
|
-
/*
|
|
75
|
+
/* Native checkbox rendered as a toggle switch */
|
|
65
76
|
|
|
66
|
-
|
|
67
|
-
|
|
77
|
+
input.toggle_switch {
|
|
78
|
+
appearance: none;
|
|
79
|
+
-webkit-appearance: none;
|
|
80
|
+
box-sizing: border-box;
|
|
81
|
+
border: 0;
|
|
82
|
+
padding: 0;
|
|
83
|
+
width: calc(var(--toggle-switch-height) * 1.75);
|
|
84
|
+
height: var(--toggle-switch-height);
|
|
85
|
+
cursor: pointer;
|
|
86
|
+
transition:
|
|
87
|
+
background-color 0.15s ease-in-out,
|
|
88
|
+
outline-color 0.125s ease-in-out;
|
|
68
89
|
}
|
|
69
90
|
|
|
70
|
-
|
|
71
|
-
|
|
91
|
+
input.toggle_switch.av_xs {
|
|
92
|
+
--toggle-switch-height: calc(var(--av-xsmall) * 0.7142857);
|
|
93
|
+
}
|
|
94
|
+
input.toggle_switch.av_sm {
|
|
95
|
+
--toggle-switch-height: calc(var(--av-small) * 0.7142857);
|
|
96
|
+
}
|
|
97
|
+
input.toggle_switch.av_df {
|
|
98
|
+
--toggle-switch-height: calc(var(--av-default) * 0.7142857);
|
|
99
|
+
}
|
|
100
|
+
input.toggle_switch.av_md {
|
|
101
|
+
--toggle-switch-height: calc(var(--av-medium) * 0.7142857);
|
|
102
|
+
}
|
|
103
|
+
input.toggle_switch.av_lg {
|
|
104
|
+
--toggle-switch-height: calc(var(--av-large) * 0.7142857);
|
|
105
|
+
}
|
|
106
|
+
input.toggle_switch.av_xl {
|
|
107
|
+
--toggle-switch-height: calc(var(--av-xlarge) * 0.7142857);
|
|
72
108
|
}
|
|
73
109
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
} */
|
|
110
|
+
input.toggle_switch:not(:checked) {
|
|
111
|
+
background-color: rgba(var(--color-darker-rgb), 0.1);
|
|
112
|
+
}
|
|
78
113
|
|
|
79
|
-
|
|
80
|
-
|
|
114
|
+
input.toggle_switch:not(:checked):hover {
|
|
115
|
+
background-color: rgba(var(--color-darker-rgb), 0.15);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
input.toggle_switch::after {
|
|
119
|
+
content: "";
|
|
120
|
+
position: absolute;
|
|
121
|
+
top: 10%;
|
|
122
|
+
left: 0;
|
|
123
|
+
height: 80%;
|
|
124
|
+
aspect-ratio: 1;
|
|
125
|
+
border-radius: 50%;
|
|
126
|
+
background-color: rgb(var(--color-bg));
|
|
127
|
+
box-shadow: 0 1px 3px rgba(var(--color-darker-rgb), 0.3);
|
|
128
|
+
transform: translateX(12.5%);
|
|
129
|
+
transition: transform 0.15s ease-in-out;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
input.toggle_switch:checked::after {
|
|
133
|
+
transform: translateX(106.25%);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
input.toggle_switch:disabled {
|
|
137
|
+
cursor: not-allowed;
|
|
138
|
+
opacity: 0.5;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* Input; focus, placeholder */
|
|
142
|
+
|
|
143
|
+
input.error,
|
|
144
|
+
textarea.error,
|
|
145
|
+
[contenteditable="true"].error,
|
|
146
|
+
.form_el.error .form_input,
|
|
147
|
+
.form_el .form_input.error {
|
|
148
|
+
border-color: rgb(var(--color-error)) !important;
|
|
149
|
+
background-color: rgba(var(--color-error-faded), 0.1) !important;
|
|
150
|
+
}
|
|
151
|
+
input.error:focus,
|
|
152
|
+
textarea.error:focus,
|
|
153
|
+
[contenteditable="true"].error:focus,
|
|
154
|
+
.form_el.error .form_input:focus,
|
|
155
|
+
.form_el .form_input.error:focus {
|
|
156
|
+
outline: 2px solid rgb(var(--color-error)) !important;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
input:not(.stock):not(.toggle_switch):focus,
|
|
160
|
+
textarea:not(.stock):focus,
|
|
161
|
+
[contenteditable="true"]:not(.stock):focus,
|
|
162
|
+
.form_el input.focus:not(.toggle_switch),
|
|
163
|
+
.form_el.focused textarea.form_el,
|
|
164
|
+
.form_el.focused input:not(.toggle_switch),
|
|
165
|
+
.form_el.focused textarea,
|
|
166
|
+
.form_el.error.focused .form_input,
|
|
167
|
+
.form_el.focused .form_input.error {
|
|
168
|
+
outline: 2px solid rgb(var(--color-main));
|
|
169
|
+
border-color: rgb(var(--color-main)) !important;
|
|
170
|
+
/* box-shadow: 0 0 20px rgba(0,0,0,.05); */
|
|
171
|
+
box-shadow: 0 0 40px rgba(var(--color-main), 0.1);
|
|
81
172
|
}
|
|
82
173
|
|
|
83
|
-
.
|
|
84
|
-
|
|
174
|
+
.form_input:not(.disabled):not(.error):hover,
|
|
175
|
+
.form_el:hover .form_input:not(.disabled):not(.error),
|
|
176
|
+
.form_el_hv:hover {
|
|
177
|
+
background-color: rgba(var(--color-main), 0.04);
|
|
85
178
|
}
|
|
86
179
|
|
|
87
|
-
|
|
180
|
+
input:not(.error):not(.disabled):not(.stock):not(.toggle_switch):focus,
|
|
181
|
+
textarea:not(.error):not(.disabled):not(.stock):focus,
|
|
182
|
+
[contenteditable="true"]:not(.error):not(.disabled):not(.stock):focus,
|
|
183
|
+
.form_input:not(.disabled):not(.error):focus:hover,
|
|
88
184
|
.form_el.focused .form_input:not(.error):not(.disabled) {
|
|
89
|
-
|
|
185
|
+
/* background-color: rgba(var(--color-main), .075) !important; */
|
|
186
|
+
background-color: rgba(var(--color-main), 0.075);
|
|
90
187
|
}
|
|
91
188
|
|
|
92
|
-
.
|
|
93
|
-
.
|
|
94
|
-
|
|
189
|
+
input.focus_bg:focus,
|
|
190
|
+
textarea.focus_bg:focus,
|
|
191
|
+
[contenteditable="true"].focus_bg:focus {
|
|
192
|
+
background-color: rgb(var(--color-bg)) !important;
|
|
95
193
|
}
|
|
96
194
|
|
|
97
|
-
.
|
|
98
|
-
|
|
195
|
+
.form_not_allowed input,
|
|
196
|
+
.form_not_allowed textarea,
|
|
197
|
+
.form_not_allowed [role="button"] {
|
|
198
|
+
cursor: not-allowed !important;
|
|
99
199
|
}
|
|
100
200
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
201
|
+
.form_el:not(.disabled):hover .form_el_r,
|
|
202
|
+
.form_el:not(.disabled).focused .form_el_r {
|
|
203
|
+
background: linear-gradient(
|
|
204
|
+
to left,
|
|
205
|
+
var(--color-main-bg) 50%,
|
|
206
|
+
rgba(var(--color-main), 0)
|
|
207
|
+
) !important;
|
|
104
208
|
}
|
|
105
209
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
210
|
+
[contenteditable="true"]:empty:before {
|
|
211
|
+
content: attr(data-placeholder);
|
|
212
|
+
color: var(--color-text-light);
|
|
109
213
|
}
|
|
110
214
|
|
|
111
215
|
.form_el.c input {
|
|
112
|
-
|
|
216
|
+
text-align: center;
|
|
113
217
|
}
|
|
114
218
|
|
|
115
219
|
/* Input preset: lighter */
|
|
116
|
-
|
|
117
|
-
|
|
220
|
+
|
|
221
|
+
.form_el.lighter .form_input,
|
|
222
|
+
.form_el.lighter .tx_virtualizer {
|
|
223
|
+
border: solid 1px var(--color-darker-light);
|
|
118
224
|
}
|
|
119
225
|
|
|
120
226
|
/* Input preset: subtle */
|
|
121
227
|
|
|
122
228
|
.form_el.subtle input {
|
|
123
|
-
|
|
124
|
-
|
|
229
|
+
width: 120px;
|
|
230
|
+
padding: 0.35rem;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/* Input preset; condensed */
|
|
234
|
+
|
|
235
|
+
.form_el.condensed {
|
|
236
|
+
margin-top: 0.9rem;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.form_el.condensed label {
|
|
240
|
+
position: absolute;
|
|
241
|
+
z-index: 5;
|
|
242
|
+
top: -9px;
|
|
243
|
+
left: 9px;
|
|
244
|
+
padding: 0 1px !important;
|
|
245
|
+
font-size: var(--text-xxsmall);
|
|
246
|
+
background-color: rgb(var(--color-bg));
|
|
125
247
|
}
|
|
126
248
|
|
|
127
249
|
/* Textarea */
|
|
128
250
|
|
|
129
251
|
.form_el.fs textarea {
|
|
130
|
-
|
|
252
|
+
width: 100% !important;
|
|
131
253
|
}
|
|
132
254
|
|
|
133
255
|
.form_el .tx_virtualizer {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
256
|
+
position: absolute;
|
|
257
|
+
z-index: -1;
|
|
258
|
+
top: 0;
|
|
259
|
+
left: 0;
|
|
260
|
+
right: 0;
|
|
261
|
+
visibility: hidden;
|
|
137
262
|
}
|
|
138
263
|
|
|
139
264
|
.form_el .tx_virtualizer:after {
|
|
140
|
-
|
|
141
|
-
|
|
265
|
+
/* This allows trailing empty line breaks to be calculated */
|
|
266
|
+
content: ".";
|
|
142
267
|
}
|
|
143
268
|
|
|
144
269
|
/* Label */
|
|
145
270
|
|
|
146
|
-
.form_el label
|
|
147
|
-
|
|
271
|
+
.form_el label,
|
|
272
|
+
label.form_el {
|
|
273
|
+
color: var(--color-text-medium);
|
|
148
274
|
}
|
|
149
275
|
|
|
150
276
|
.form_el:has(input:focus) label {
|
|
151
|
-
|
|
277
|
+
color: var(--color-text-bold);
|
|
152
278
|
}
|
|
153
279
|
|
|
154
280
|
.form_el label .label_r .icon {
|
|
155
|
-
|
|
281
|
+
transform: translateY(1px);
|
|
156
282
|
}
|
|
157
283
|
|
|
158
284
|
/* Fieldset, radio group */
|
|
159
285
|
|
|
160
286
|
fieldset {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
fieldset input[type="radio"] {
|
|
168
|
-
display: none;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.form_opt {
|
|
172
|
-
padding: .3rem .3rem .4rem;
|
|
287
|
+
padding: 0;
|
|
288
|
+
margin: 0;
|
|
289
|
+
border: none;
|
|
173
290
|
}
|
|
174
291
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
292
|
+
fieldset legend {
|
|
293
|
+
padding: 0 2px;
|
|
294
|
+
margin-left: -2px;
|
|
178
295
|
}
|
|
179
296
|
|
|
180
|
-
|
|
181
|
-
|
|
297
|
+
fieldset input[type="radio"] {
|
|
298
|
+
display: none;
|
|
182
299
|
}
|
|
183
300
|
|
|
184
301
|
/* Clickable button at right; use this for inputs */
|
|
185
302
|
|
|
186
303
|
.form_el.has_r .form_el_r {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
304
|
+
position: absolute;
|
|
305
|
+
top: 1px;
|
|
306
|
+
right: 1px;
|
|
307
|
+
bottom: 1px;
|
|
308
|
+
width: 3.5rem;
|
|
309
|
+
padding-left: 1.5rem;
|
|
310
|
+
background: linear-gradient(
|
|
311
|
+
to left,
|
|
312
|
+
rgba(var(--color-bg), 1) 50%,
|
|
313
|
+
rgba(var(--color-bg), 0)
|
|
314
|
+
);
|
|
192
315
|
}
|
|
193
316
|
|
|
194
317
|
/* .active is for <PopOverButton /> active state, not ::active */
|
|
195
318
|
.active .form_el_r,
|
|
196
|
-
.focused .form_el_r,
|
|
197
|
-
|
|
319
|
+
.focused .form_el_r,
|
|
320
|
+
.form_el_r.btn:hover {
|
|
321
|
+
color: var(--color-text);
|
|
198
322
|
}
|
|
199
323
|
|
|
200
324
|
/* Preset; none */
|
|
201
325
|
|
|
202
|
-
.form_el.none input,
|
|
203
|
-
|
|
204
|
-
|
|
326
|
+
.form_el.none input,
|
|
327
|
+
.form_el.none textarea {
|
|
328
|
+
border: none;
|
|
329
|
+
background-color: transparent;
|
|
205
330
|
}
|
|
206
331
|
|
|
207
|
-
.form_el.none input:focus,
|
|
208
|
-
|
|
332
|
+
.form_el.none input:focus,
|
|
333
|
+
.form_el.none textarea:focus {
|
|
334
|
+
box-shadow: none;
|
|
209
335
|
}
|
|
210
336
|
|
|
211
337
|
/* Preset: fill */
|
|
212
338
|
|
|
213
|
-
.form_el.fill input,
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
339
|
+
.form_el.fill input,
|
|
340
|
+
.form_el.fill textarea {
|
|
341
|
+
border: none;
|
|
342
|
+
background-color: rgb(var(--color-bg-alt));
|
|
343
|
+
/* border-radius: var(--radius-default); */
|
|
217
344
|
}
|
|
218
345
|
|
|
219
346
|
/* Preset: inside outline container */
|
|
220
347
|
|
|
221
348
|
.form_el.inside_outline {
|
|
222
|
-
|
|
223
|
-
|
|
349
|
+
/* This is the difference between common padding minus container padding: 1rem - .58 */
|
|
350
|
+
padding: 0 0.42rem;
|
|
224
351
|
}
|
|
225
352
|
|
|
226
353
|
.stripe_form_line {
|
|
227
|
-
|
|
228
|
-
|
|
354
|
+
padding-bottom: 0.5rem;
|
|
355
|
+
border-bottom: solid 1px var(--color-darker-light);
|
|
229
356
|
}
|
|
230
357
|
|
|
231
358
|
.form_el.inside_outline input {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
359
|
+
border: none;
|
|
360
|
+
border-radius: 0;
|
|
361
|
+
border-bottom: solid 1px var(--color-darker-light);
|
|
362
|
+
/* background-color: rgb(var(--color-bg-alt)); */
|
|
363
|
+
padding-top: 0;
|
|
364
|
+
padding-left: 0;
|
|
365
|
+
padding-right: 0;
|
|
366
|
+
margin-bottom: 0.05rem;
|
|
367
|
+
transform: translateY(-0.1rem);
|
|
239
368
|
}
|
|
240
369
|
|
|
241
370
|
.form_el.inside_outline input:focus {
|
|
242
|
-
|
|
243
|
-
|
|
371
|
+
box-shadow: none;
|
|
372
|
+
border-bottom-color: var(--color-text-bold);
|
|
244
373
|
}
|
|
245
374
|
|
|
246
375
|
.form_el.inside_outline.error input {
|
|
247
|
-
|
|
376
|
+
border-bottom-color: rgb(var(--color-error-active));
|
|
248
377
|
}
|
|
249
378
|
|
|
250
379
|
.form_cnt.outline .form_el.inside_outline:last-child {
|
|
251
|
-
|
|
380
|
+
margin-bottom: 0.25rem;
|
|
252
381
|
}
|
|
253
382
|
|
|
254
383
|
/* Inline button at right of search input (for enter key prompt) */
|
|
255
384
|
|
|
256
385
|
.form_el_inline_btn {
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
386
|
+
position: absolute;
|
|
387
|
+
top: 50%;
|
|
388
|
+
right: 0.55rem;
|
|
389
|
+
/* Can't use 1px transform depressed effect becuase of the absolute positioning */
|
|
390
|
+
transform: translateY(-50%) !important;
|
|
262
391
|
}
|
|
263
392
|
|
|
264
393
|
/* Full width button */
|
|
265
394
|
|
|
266
395
|
.btn.fw {
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
396
|
+
min-width: 70px;
|
|
397
|
+
height: 2.64em;
|
|
398
|
+
padding: 0 var(--rem-small);
|
|
399
|
+
/* border-bottom-width: 4px; */
|
|
400
|
+
/* background-color: rgb(var(--color-bg)); */
|
|
272
401
|
}
|
|
273
402
|
|
|
274
403
|
.btn.full {
|
|
275
|
-
|
|
404
|
+
width: 100%;
|
|
276
405
|
}
|
|
277
406
|
|
|
278
407
|
.btn.fw .bl {
|
|
279
|
-
|
|
408
|
+
width: 24px;
|
|
280
409
|
}
|
|
281
410
|
|
|
282
|
-
.btn.fw:hover:not(:disabled),
|
|
283
|
-
|
|
411
|
+
.btn.fw:hover:not(:disabled),
|
|
412
|
+
.btn.fw:active:not(:disabled) {
|
|
413
|
+
background-color: rgb(var(--color-bg-alt));
|
|
284
414
|
}
|
|
285
415
|
|
|
286
416
|
.btn.fw:active:not(:disabled) {
|
|
287
|
-
|
|
417
|
+
transform: translateY(1px);
|
|
288
418
|
}
|
|
289
419
|
|
|
290
420
|
/* Emphasize preset */
|
|
291
421
|
|
|
292
422
|
.btn.em {
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
423
|
+
background-color: var(--color-solid);
|
|
424
|
+
border: solid 2px var(--color-text-bold);
|
|
425
|
+
box-shadow: 0 2px var(--color-text-bold);
|
|
426
|
+
/* box-shadow: 0 2px var(--color-text), 0 2px 4px rgba(0,0,0,.1); */
|
|
297
427
|
}
|
|
298
428
|
|
|
299
429
|
.btn.em:hover {
|
|
300
|
-
|
|
430
|
+
background-color: var(--color-solid-hover) !important;
|
|
301
431
|
}
|
|
302
432
|
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
433
|
+
/*.btn.em:active, .btn.em:disabled, .btn.em.disabled {*/
|
|
434
|
+
.btn.em:active:not(:disabled):not(.disabled),
|
|
435
|
+
.btn.em.loading:disabled,
|
|
436
|
+
.btn.em.loading.disabled {
|
|
437
|
+
transform: translateY(2px);
|
|
438
|
+
box-shadow: none;
|
|
306
439
|
}
|
|
307
440
|
|
|
308
441
|
.btn.em:active {
|
|
309
|
-
|
|
442
|
+
background-color: var(--color-solid-active) !important;
|
|
310
443
|
}
|
|
311
444
|
|
|
312
|
-
.btn.em:disabled,
|
|
313
|
-
|
|
445
|
+
.btn.em:disabled,
|
|
446
|
+
.btn.em.disabled {
|
|
447
|
+
color: var(--color-text-bold) !important;
|
|
448
|
+
background-color: var(--color-solid-hover) !important;
|
|
314
449
|
}
|
|
315
450
|
|
|
316
451
|
/* Opaque preset */
|
|
317
452
|
|
|
318
|
-
.btn.subtle
|
|
319
|
-
|
|
453
|
+
.btn.subtle {
|
|
454
|
+
background-color: rgba(0, 0, 0, 0.1);
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.btn.bg {
|
|
458
|
+
background-color: rgb(var(--color-bg));
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
a.btn.subtle,
|
|
462
|
+
a.btn.bg,
|
|
463
|
+
a.btn.outline {
|
|
464
|
+
color: inherit;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.btn.subtle:disabled,
|
|
468
|
+
.btn.subtle.disabled {
|
|
469
|
+
background-color: rgba(0, 0, 0, 0.064);
|
|
470
|
+
/* color: var(--color-text-medium); */
|
|
471
|
+
color: rgba(0, 0, 0, 0.275);
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
.btn.bg:disabled,
|
|
475
|
+
.btn.bg.disabled {
|
|
476
|
+
background-color: rgb(var(--color-bg-fade));
|
|
477
|
+
/* color: var(--color-text-medium); */
|
|
478
|
+
color: rgba(0, 0, 0, 0.275);
|
|
320
479
|
}
|
|
321
480
|
|
|
322
|
-
.btn.subtle:disabled
|
|
323
|
-
|
|
481
|
+
.btn.subtle:not(:disabled):not(.disabled):hover {
|
|
482
|
+
background-color: rgba(0, 0, 0, 0.2);
|
|
324
483
|
}
|
|
325
484
|
|
|
326
|
-
.btn.
|
|
327
|
-
|
|
485
|
+
.btn.bg:not(:disabled):not(.disabled):hover {
|
|
486
|
+
background-color: rgb(var(--color-bg-alt)) !important;
|
|
328
487
|
}
|
|
329
488
|
|
|
330
|
-
.btn.subtle:not(:disabled):not(.disabled):active
|
|
331
|
-
|
|
489
|
+
.btn.subtle:not(:disabled):not(.disabled):active {
|
|
490
|
+
background-color: rgba(0, 0, 0, 0.25);
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.btn.bg:not(:disabled):not(.disabled):active {
|
|
494
|
+
background-color: rgb(var(--color-bg-active)) !important;
|
|
332
495
|
}
|
|
333
496
|
|
|
334
497
|
/* Outline */
|
|
335
498
|
|
|
336
499
|
.btn.outline {
|
|
337
|
-
|
|
338
|
-
|
|
500
|
+
border: solid 2px var(--color-darker-light);
|
|
501
|
+
background-color: rgb(var(--color-bg-alt));
|
|
339
502
|
}
|
|
340
503
|
|
|
341
504
|
.btn.outline.bg {
|
|
342
|
-
|
|
505
|
+
background-color: rgb(var(--color-bg));
|
|
343
506
|
}
|
|
344
507
|
|
|
345
508
|
.btn.outline:not(:disabled):not(.disabled):hover {
|
|
346
|
-
|
|
509
|
+
background-color: rgb(var(--color-bg-active));
|
|
347
510
|
}
|
|
348
511
|
|
|
349
512
|
.btn.outline:not(:disabled):not(.disabled):active {
|
|
350
|
-
|
|
513
|
+
background-color: rgb(var(--color-bg-medium));
|
|
351
514
|
}
|
|
352
515
|
|
|
353
516
|
/* Subtle outline */
|
|
354
517
|
|
|
355
518
|
.btn.outline_subtle {
|
|
356
|
-
|
|
519
|
+
box-shadow: inset 0 0 0 2px var(--color-darker-light);
|
|
357
520
|
}
|
|
358
521
|
|
|
359
522
|
.btn.outline_subtle:not(:disabled):not(.disabled):hover {
|
|
360
|
-
|
|
523
|
+
background-color: var(--color-darker-soft);
|
|
361
524
|
}
|
|
362
525
|
|
|
363
526
|
/* Inline button */
|
|
364
527
|
|
|
365
528
|
.btn.il {
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
529
|
+
position: relative;
|
|
530
|
+
padding: 0.35rem 0.5rem;
|
|
531
|
+
border-radius: 4px;
|
|
369
532
|
}
|
|
370
533
|
|
|
371
534
|
/* Button sizes */
|
|
372
535
|
|
|
373
536
|
.btn.sm {
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
537
|
+
min-width: 52px;
|
|
538
|
+
padding: 0.35rem 0.45rem;
|
|
539
|
+
border-radius: var(--radius-small);
|
|
377
540
|
}
|
|
378
541
|
|
|
379
542
|
.btn.df {
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
543
|
+
min-width: 58px;
|
|
544
|
+
padding: 0.5rem 0.64rem;
|
|
545
|
+
border-radius: var(--radius-small);
|
|
383
546
|
}
|
|
384
547
|
|
|
385
548
|
.btn.md {
|
|
386
|
-
|
|
387
|
-
|
|
549
|
+
padding: 0.7rem 1.05rem 0.7rem;
|
|
550
|
+
border-radius: var(--radius-small-wrap);
|
|
388
551
|
}
|
|
389
552
|
|
|
390
553
|
.btn.lg {
|
|
391
|
-
|
|
392
|
-
|
|
554
|
+
padding: 0.9rem 1.2rem 0.9rem;
|
|
555
|
+
border-radius: var(--radius-small-wrap);
|
|
393
556
|
}
|
|
394
557
|
|
|
395
558
|
/* Side input button */
|
|
396
559
|
|
|
397
560
|
.form_input_btn {
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
561
|
+
align-self: stretch;
|
|
562
|
+
padding: 0 0.25rem;
|
|
563
|
+
margin-left: 0.25rem;
|
|
564
|
+
margin-right: 0.25rem;
|
|
402
565
|
}
|
|
403
566
|
|
|
404
567
|
.form_input_btn.r {
|
|
405
|
-
|
|
568
|
+
margin-right: -0.5rem;
|
|
406
569
|
}
|
|
407
570
|
|
|
408
571
|
/* Alert count */
|
|
409
572
|
|
|
410
573
|
.alert_ct {
|
|
411
|
-
|
|
412
|
-
|
|
574
|
+
min-width: 18px;
|
|
575
|
+
height: 18px;
|
|
576
|
+
padding: 0 4px;
|
|
413
577
|
}
|
|
414
578
|
|
|
415
579
|
.form_input_btn .alert_ct {
|
|
416
|
-
|
|
417
|
-
|
|
580
|
+
position: absolute;
|
|
581
|
+
top: -2px;
|
|
582
|
+
right: -4px;
|
|
418
583
|
}
|
|
419
584
|
|
|
420
585
|
.form_el .alert_ct {
|
|
421
|
-
|
|
422
|
-
|
|
586
|
+
position: absolute;
|
|
587
|
+
top: -4px;
|
|
588
|
+
right: -4px;
|
|
423
589
|
}
|
|
424
590
|
|
|
425
591
|
/* Inline-block label (NOTE: must _not_ use vertical padding because this will affect line height) */
|
|
426
592
|
|
|
427
593
|
.ib_label {
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
594
|
+
position: relative;
|
|
595
|
+
padding: 0 5px;
|
|
596
|
+
margin: 0 2px 0 3px;
|
|
597
|
+
line-height: 1;
|
|
598
|
+
white-space: nowrap;
|
|
433
599
|
}
|
|
434
600
|
|
|
435
601
|
.ib_label .icon {
|
|
436
|
-
|
|
437
|
-
|
|
602
|
+
font-size: 1rem;
|
|
603
|
+
margin: -4px -2px;
|
|
438
604
|
}
|
|
439
605
|
|
|
440
606
|
.ib_label .indicator {
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
607
|
+
display: block;
|
|
608
|
+
margin-left: 2px;
|
|
609
|
+
margin-right: 5px;
|
|
444
610
|
}
|
|
445
611
|
|
|
446
612
|
.ib_label:first-child {
|
|
447
|
-
|
|
613
|
+
margin-left: 0;
|
|
448
614
|
}
|
|
449
615
|
|
|
450
616
|
.ib_label:last-child {
|
|
451
|
-
|
|
617
|
+
margin-right: 0;
|
|
452
618
|
}
|
|
453
619
|
|
|
454
|
-
.ib_label:before,
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
620
|
+
.ib_label:before,
|
|
621
|
+
.btn.il:before {
|
|
622
|
+
content: " ";
|
|
623
|
+
position: absolute;
|
|
624
|
+
top: 50%;
|
|
625
|
+
left: 0;
|
|
626
|
+
right: 0;
|
|
627
|
+
height: 1.6rem;
|
|
628
|
+
transform: translateY(-0.85rem);
|
|
629
|
+
border-radius: 5px;
|
|
461
630
|
}
|
|
462
631
|
|
|
463
632
|
.ib_label.outline:before {
|
|
464
|
-
|
|
633
|
+
border: solid 1px var(--color-darker-light);
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
.ib_label.outline.bg_bf:before {
|
|
637
|
+
border-color: var(--color-darker-medium);
|
|
465
638
|
}
|
|
466
639
|
|
|
467
640
|
/* Color indicators */
|
|
468
641
|
|
|
469
|
-
.ib_label .indicator,
|
|
470
|
-
|
|
471
|
-
|
|
642
|
+
.ib_label .indicator,
|
|
643
|
+
.color_indicator {
|
|
644
|
+
width: 10px;
|
|
645
|
+
/*
|
|
472
646
|
height: 1em;
|
|
473
647
|
14px is 1em of .ft_xs. I wanted it to be pixels so .ft_sm and .ft_xs has the same indicator height.
|
|
474
648
|
*/
|
|
475
|
-
|
|
476
|
-
|
|
649
|
+
height: 14px;
|
|
650
|
+
border-radius: 3px;
|
|
477
651
|
}
|