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