@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/form.css CHANGED
@@ -1,477 +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;
19
+ }
20
+
21
+ fieldset.form_cnt {
22
+ padding-bottom: 1rem;
18
23
  }
19
24
 
20
25
  .form_cnt.smaller,
21
- .form_el.smaller input, .form_el.smaller textarea, .form_el.smaller .tx_virtualizer {
22
- /* If less is needed, use .lh_1 .lh_2 to further flatten the height */
23
- 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;
24
31
  }
25
32
 
26
33
  /* Input */
27
34
 
28
35
  .form_cnt.outline,
29
- .form_el input, .form_el textarea, .form_el .tx_virtualizer {
30
- border: solid 1px var(--color-darker-light);
31
- 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;
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
- border: none;
38
- padding: 0; margin: 0;
39
- color: rgba(0,0,0,0);
40
- 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);
41
51
  }
42
52
 
43
- .invis_input:focus {
44
- outline: none;
53
+ .invis_input:focus,
54
+ .stock:focus {
55
+ outline: none;
45
56
  }
46
57
 
47
58
  .invis_input::selection {
48
- background: rgba(0,0,0,0);
49
- color: rgba(0,0,0,0);
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
- appearance: none;
54
- -webkit-appearance: none;
55
- -moz-appearance: textfield;
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
- -webkit-appearance: none;
61
- margin: 0;
71
+ -webkit-appearance: none;
72
+ margin: 0;
62
73
  }
63
74
 
64
- /* Input */
75
+ /* Native checkbox rendered as a toggle switch */
65
76
 
66
- .form_el input::placeholder, .form_el textarea::placeholder {
67
- color: var(--color-text-light);
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
- .form_el input:focus, .form_el textarea:focus, [contenteditable='true']:focus {
71
- outline: none;
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
- /* .focus_shadow input:focus, .focus_shadow textarea:focus, .focus_shadow [contenteditable='true']:focus {
75
- box-shadow: 0 0 20px rgba(0,0,0,.05);
76
- box-shadow: 0 0 40px rgba(var(--color-main),.15), 0 0 1px rgba(0,0,0,.32);
77
- } */
110
+ input.toggle_switch:not(:checked) {
111
+ background-color: rgba(var(--color-darker-rgb), 0.1);
112
+ }
78
113
 
79
- .form_not_allowed input, .form_not_allowed textarea, .form_not_allowed [role="button"] {
80
- cursor: not-allowed !important;
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
- .form_el:hover .form_input:not(.disabled):not(.error) {
84
- background-color: rgba(var(--color-main), .04) !important;
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
- .form_el .form_input:not(.error):not(.disabled):focus, .form_el:not(.error):not(.disabled):hover .form_input:not(.error):not(.disabled):focus,
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
- background-color: rgba(var(--color-main), .075) !important;
185
+ /* background-color: rgba(var(--color-main), .075) !important; */
186
+ background-color: rgba(var(--color-main), 0.075);
90
187
  }
91
188
 
92
- .form_el:not(.disabled):hover .form_el_r,
93
- .form_el:not(.disabled).focused .form_el_r {
94
- background: linear-gradient(to left, var(--color-main-bg) 50%, rgba(var(--color-main), 0)) !important;
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
- .form_el .form_input:not(.disabled):not(.error):focus, .form_el.focused .form_input:not(.disabled):not(.error) {
98
- border-color: var(--color-text-default) !important;
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
- [contenteditable='true']:empty:before {
102
- content: attr(data-placeholder);
103
- color: var(--color-text-light);
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
- .form_el.error .form_input, .form_el .form_input.error {
107
- border-color: rgb(var(--color-error)) !important;
108
- background-color: rgba(var(--color-error-faded), .1) !important;
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
- text-align: center;
216
+ text-align: center;
113
217
  }
114
218
 
115
219
  /* Input preset: lighter */
116
- .form_el.lighter .form_input, .form_el.lighter .tx_virtualizer {
117
- border: solid 1px var(--color-darker-light);
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
- width: 120px;
124
- padding: .35rem;
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
- width: 100% !important;
252
+ width: 100% !important;
131
253
  }
132
254
 
133
255
  .form_el .tx_virtualizer {
134
- position: absolute; z-index: -1;
135
- top: 0; left: 0; right: 0;
136
- visibility: hidden;
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
- /* This allows trailing empty line breaks to be calculated */
141
- content: '.';
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
- color: var(--color-text-medium);
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
- color: var(--color-text-bold);
277
+ color: var(--color-text-bold);
152
278
  }
153
279
 
154
280
  .form_el label .label_r .icon {
155
- transform: translateY(1px);
281
+ transform: translateY(1px);
156
282
  }
157
283
 
158
284
  /* Fieldset, radio group */
159
285
 
160
286
  fieldset {
161
- padding: 0;
162
- margin: 0;
163
- border: none;
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
- .form_opt:hover {
176
- /* I have to figure out where this is used and change it to vars */
177
- background-color: rgba(230, 230, 230, .5);
292
+ fieldset legend {
293
+ padding: 0 2px;
294
+ margin-left: -2px;
178
295
  }
179
296
 
180
- .form_opt .ic_cnt {
181
- width: 25px;
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
- position:absolute;
188
- top: 1px; right: 1px; bottom: 1px;
189
- width: 3.5rem;
190
- padding-left: 1.5rem;
191
- 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
+ );
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, .form_el_r.btn:hover {
197
- color: var(--color-text);
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, .form_el.none textarea {
203
- border: none;
204
- background-color: transparent;
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, .form_el.none textarea:focus {
208
- box-shadow: none;
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, .form_el.fill textarea {
214
- border: none;
215
- background-color: rgb(var(--color-bg-alt));
216
- /* 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); */
217
344
  }
218
345
 
219
346
  /* Preset: inside outline container */
220
347
 
221
348
  .form_el.inside_outline {
222
- /* This is the difference between common padding minus container padding: 1rem - .58 */
223
- padding: 0 .42rem;
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
- padding-bottom: .5rem;
228
- border-bottom: solid 1px var(--color-darker-light);
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
- border: none;
233
- border-radius: 0;
234
- border-bottom: solid 1px var(--color-darker-light);
235
- /* background-color: rgb(var(--color-bg-alt)); */
236
- padding-top: 0; padding-left: 0; padding-right: 0;
237
- margin-bottom: .05rem;
238
- 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);
239
368
  }
240
369
 
241
370
  .form_el.inside_outline input:focus {
242
- box-shadow: none;
243
- border-bottom-color: var(--color-text-bold)
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
- border-bottom-color: rgb(var(--color-error-active));
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
- margin-bottom: .25rem;
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
- position: absolute;
258
- top: 50%;
259
- right: .55rem;
260
- /* Can't use 1px transform depressed effect becuase of the absolute positioning */
261
- 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;
262
391
  }
263
392
 
264
393
  /* Full width button */
265
394
 
266
395
  .btn.fw {
267
- min-width: 70px;
268
- height: 2.64em;
269
- padding: 0 var(--rem-small);
270
- /* border-bottom-width: 4px; */
271
- /* 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)); */
272
401
  }
273
402
 
274
403
  .btn.full {
275
- width: 100%;
404
+ width: 100%;
276
405
  }
277
406
 
278
407
  .btn.fw .bl {
279
- width: 24px;
408
+ width: 24px;
280
409
  }
281
410
 
282
- .btn.fw:hover:not(:disabled), .btn.fw:active:not(:disabled) {
283
- 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));
284
414
  }
285
415
 
286
416
  .btn.fw:active:not(:disabled) {
287
- transform: translateY(1px);
417
+ transform: translateY(1px);
288
418
  }
289
419
 
290
420
  /* Emphasize preset */
291
421
 
292
422
  .btn.em {
293
- background-color: var(--color-solid);
294
- border: solid 2px var(--color-text-bold);
295
- box-shadow: 0 2px var(--color-text-bold);
296
- /* 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); */
297
427
  }
298
428
 
299
429
  .btn.em:hover {
300
- background-color: var(--color-solid-hover) !important;
430
+ background-color: var(--color-solid-hover) !important;
301
431
  }
302
432
 
303
- .btn.em:active, .btn.em:disabled, .btn.em.disabled {
304
- transform: translateY(2px);
305
- 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;
306
439
  }
307
440
 
308
441
  .btn.em:active {
309
- background-color: var(--color-solid-active) !important;
442
+ background-color: var(--color-solid-active) !important;
310
443
  }
311
444
 
312
- .btn.em:disabled, .btn.em.disabled {
313
- 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;
314
449
  }
315
450
 
316
451
  /* Opaque preset */
317
452
 
318
- .btn.subtle, .btn.cl_err {
319
- 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);
320
479
  }
321
480
 
322
- .btn.subtle:disabled, .btn.subtle.disabled {
323
- color: var(--color-text-medium);
481
+ .btn.subtle:not(:disabled):not(.disabled):hover {
482
+ background-color: rgba(0, 0, 0, 0.2);
324
483
  }
325
484
 
326
- .btn.subtle:not(:disabled):not(.disabled):hover, .btn.cl_err:not(:disabled):not(.disabled):hover {
327
- background-color: rgba(0,0,0,.2);
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, .btn.cl_err:not(:disabled):not(.disabled):active {
331
- background-color: rgba(0,0,0,.25);
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
- border: solid 2px var(--color-darker-light);
338
- background-color: rgb(var(--color-bg-alt));
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
- background-color: rgb(var(--color-bg));
505
+ background-color: rgb(var(--color-bg));
343
506
  }
344
507
 
345
508
  .btn.outline:not(:disabled):not(.disabled):hover {
346
- background-color: rgb(var(--color-bg-active));
509
+ background-color: rgb(var(--color-bg-active));
347
510
  }
348
511
 
349
512
  .btn.outline:not(:disabled):not(.disabled):active {
350
- background-color: rgb(var(--color-bg-medium));
513
+ background-color: rgb(var(--color-bg-medium));
351
514
  }
352
515
 
353
516
  /* Subtle outline */
354
517
 
355
518
  .btn.outline_subtle {
356
- box-shadow: inset 0 0 0 2px var(--color-darker-light);
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
- background-color: var(--color-darker-soft);
523
+ background-color: var(--color-darker-soft);
361
524
  }
362
525
 
363
526
  /* Inline button */
364
527
 
365
528
  .btn.il {
366
- position: relative;
367
- padding: .35rem .5rem;
368
- border-radius: 4px;
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
- min-width: 52px;
375
- padding: .35rem .45rem;
376
- border-radius: var(--radius-small);
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
- min-width: 58px;
381
- padding: .5rem .64rem;
382
- border-radius: var(--radius-small);
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
- padding: .7rem 1.05rem .7rem;
387
- border-radius: var(--radius-small-wrap);
549
+ padding: 0.7rem 1.05rem 0.7rem;
550
+ border-radius: var(--radius-small-wrap);
388
551
  }
389
552
 
390
553
  .btn.lg {
391
- padding: .9rem 1.2rem .9rem;
392
- border-radius: var(--radius-small-wrap);
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
- align-self: stretch;
399
- padding: 0 .25rem;
400
- margin-left: .25rem;
401
- margin-right: .25rem;
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
- margin-right: -.5rem;
568
+ margin-right: -0.5rem;
406
569
  }
407
570
 
408
571
  /* Alert count */
409
572
 
410
573
  .alert_ct {
411
- min-width: 18px; height: 18px;
412
- padding: 0 4px;
574
+ min-width: 18px;
575
+ height: 18px;
576
+ padding: 0 4px;
413
577
  }
414
578
 
415
579
  .form_input_btn .alert_ct {
416
- position: absolute;
417
- top: -2px; right: -4px;
580
+ position: absolute;
581
+ top: -2px;
582
+ right: -4px;
418
583
  }
419
584
 
420
585
  .form_el .alert_ct {
421
- position: absolute;
422
- top: -4px; right: -4px;
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
- position: relative;
429
- padding: 0 5px;
430
- margin: 0 2px 0 3px;
431
- line-height: 1;
432
- white-space: nowrap;
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
- font-size: 1rem;
437
- margin: -4px -2px;
602
+ font-size: 1rem;
603
+ margin: -4px -2px;
438
604
  }
439
605
 
440
606
  .ib_label .indicator {
441
- display: block;
442
- margin-left: 2px;
443
- margin-right: 5px;
607
+ display: block;
608
+ margin-left: 2px;
609
+ margin-right: 5px;
444
610
  }
445
611
 
446
612
  .ib_label:first-child {
447
- margin-left: 0;
613
+ margin-left: 0;
448
614
  }
449
615
 
450
616
  .ib_label:last-child {
451
- margin-right: 0;
617
+ margin-right: 0;
452
618
  }
453
619
 
454
- .ib_label:before, .btn.il:before {
455
- content: ' ';
456
- position: absolute;
457
- top: 50%; left: 0; right: 0;
458
- height: 1.6rem;
459
- transform: translateY(-.85rem);
460
- 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;
461
630
  }
462
631
 
463
632
  .ib_label.outline:before {
464
- border: solid 1px var(--color-darker-light);
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, .color_indicator {
470
- width: 10px;
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
- height: 14px;
476
- border-radius: 3px;
649
+ height: 14px;
650
+ border-radius: 3px;
477
651
  }