@jsb188/css 1.1.11 → 1.1.12
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/_global.css +290 -122
- package/css/_responsive.css +954 -109
- package/css/_responsive.generated.css +1705 -225
- package/css/_sizing.css +118 -27
- package/css/alert.css +22 -13
- package/css/animate.css +83 -0
- package/css/form.css +99 -22
- package/css/layout.css +34 -8
- package/css/loading.css +1 -1
- package/css/misc.css +0 -73
- package/css/modal.css +0 -37
- package/css/popover.css +4 -9
- package/package.json +3 -2
package/css/_sizing.css
CHANGED
|
@@ -6,6 +6,12 @@
|
|
|
6
6
|
left: 0;
|
|
7
7
|
right: 0;
|
|
8
8
|
}
|
|
9
|
+
.sticky_toolbar {
|
|
10
|
+
position: sticky;
|
|
11
|
+
top: var(--toolbar-ht);
|
|
12
|
+
left: 0;
|
|
13
|
+
right: 0;
|
|
14
|
+
}
|
|
9
15
|
.sticky_bottom {
|
|
10
16
|
position: sticky;
|
|
11
17
|
bottom: 0;
|
|
@@ -173,7 +179,7 @@ h6 {
|
|
|
173
179
|
font-weight: normal;
|
|
174
180
|
font-size: 2em; /* This is em (not rem) on purpose */
|
|
175
181
|
line-height: 1.3;
|
|
176
|
-
|
|
182
|
+
box-sizing: border-box;
|
|
177
183
|
padding: 0.5em 0 0.25em;
|
|
178
184
|
margin: 0;
|
|
179
185
|
word-wrap: break-word;
|
|
@@ -264,13 +270,12 @@ p {
|
|
|
264
270
|
word-wrap: break-word;
|
|
265
271
|
}
|
|
266
272
|
|
|
267
|
-
h1.
|
|
268
|
-
h2.
|
|
269
|
-
h3.
|
|
270
|
-
h4.
|
|
271
|
-
h5.
|
|
272
|
-
h6.
|
|
273
|
-
.ft_heading_tn {
|
|
273
|
+
h1.ft_xxs,
|
|
274
|
+
h2.ft_xxs,
|
|
275
|
+
h3.ft_xxs,
|
|
276
|
+
h4.ft_xxs,
|
|
277
|
+
h5.ft_xxs,
|
|
278
|
+
h6.ft_xxs {
|
|
274
279
|
font-size: var(--heading-xxsmall);
|
|
275
280
|
}
|
|
276
281
|
h1.ft_xs,
|
|
@@ -278,8 +283,7 @@ h2.ft_xs,
|
|
|
278
283
|
h3.ft_xs,
|
|
279
284
|
h4.ft_xs,
|
|
280
285
|
h5.ft_xs,
|
|
281
|
-
h6.ft_xs
|
|
282
|
-
.ft_heading_xs {
|
|
286
|
+
h6.ft_xs {
|
|
283
287
|
font-size: var(--heading-xsmall);
|
|
284
288
|
}
|
|
285
289
|
h1.ft_sm,
|
|
@@ -287,8 +291,7 @@ h2.ft_sm,
|
|
|
287
291
|
h3.ft_sm,
|
|
288
292
|
h4.ft_sm,
|
|
289
293
|
h5.ft_sm,
|
|
290
|
-
h6.ft_sm
|
|
291
|
-
.ft_heading_sm {
|
|
294
|
+
h6.ft_sm {
|
|
292
295
|
font-size: var(--heading-small);
|
|
293
296
|
}
|
|
294
297
|
h1.ft_df,
|
|
@@ -296,8 +299,7 @@ h2.ft_df,
|
|
|
296
299
|
h3.ft_df,
|
|
297
300
|
h4.ft_df,
|
|
298
301
|
h5.ft_df,
|
|
299
|
-
h6.ft_df
|
|
300
|
-
.ft_heading_df {
|
|
302
|
+
h6.ft_df {
|
|
301
303
|
font-size: var(--heading-default);
|
|
302
304
|
}
|
|
303
305
|
h1.ft_md,
|
|
@@ -305,8 +307,7 @@ h2.ft_md,
|
|
|
305
307
|
h3.ft_md,
|
|
306
308
|
h4.ft_md,
|
|
307
309
|
h5.ft_md,
|
|
308
|
-
h6.ft_md
|
|
309
|
-
.ft_heading_md {
|
|
310
|
+
h6.ft_md {
|
|
310
311
|
font-size: var(--heading-medium);
|
|
311
312
|
}
|
|
312
313
|
h1.ft_lg,
|
|
@@ -314,8 +315,7 @@ h2.ft_lg,
|
|
|
314
315
|
h3.ft_lg,
|
|
315
316
|
h4.ft_lg,
|
|
316
317
|
h5.ft_lg,
|
|
317
|
-
h6.ft_lg
|
|
318
|
-
.ft_heading_lg {
|
|
318
|
+
h6.ft_lg {
|
|
319
319
|
font-size: var(--heading-large);
|
|
320
320
|
}
|
|
321
321
|
h1.ft_xl,
|
|
@@ -323,8 +323,7 @@ h2.ft_xl,
|
|
|
323
323
|
h3.ft_xl,
|
|
324
324
|
h4.ft_xl,
|
|
325
325
|
h5.ft_xl,
|
|
326
|
-
h6.ft_xl
|
|
327
|
-
.ft_heading_xl {
|
|
326
|
+
h6.ft_xl {
|
|
328
327
|
font-size: var(--heading-xlarge);
|
|
329
328
|
}
|
|
330
329
|
h1.ft_xxl,
|
|
@@ -332,11 +331,97 @@ h2.ft_xxl,
|
|
|
332
331
|
h3.ft_xxl,
|
|
333
332
|
h4.ft_xxl,
|
|
334
333
|
h5.ft_xxl,
|
|
335
|
-
h6.ft_xxl
|
|
336
|
-
.ft_heading_xxl {
|
|
334
|
+
h6.ft_xxl {
|
|
337
335
|
font-size: var(--heading-xxlarge);
|
|
338
336
|
}
|
|
339
337
|
|
|
338
|
+
/*
|
|
339
|
+
Responsive headings: full size from 1100px wide, then shrinking steadily with the screen width.
|
|
340
|
+
Smaller headings shrink less (to about 85% for ft_xxs, down to about 60% for ft_lg), so every size
|
|
341
|
+
stays larger than the one below it.
|
|
342
|
+
*/
|
|
343
|
+
|
|
344
|
+
h1.responsive.ft_xxs,
|
|
345
|
+
h2.responsive.ft_xxs,
|
|
346
|
+
h3.responsive.ft_xxs,
|
|
347
|
+
h4.responsive.ft_xxs,
|
|
348
|
+
h5.responsive.ft_xxs,
|
|
349
|
+
h6.responsive.ft_xxs {
|
|
350
|
+
font-size: clamp(
|
|
351
|
+
calc(var(--heading-xxsmall) * 0.9),
|
|
352
|
+
calc(var(--heading-xxsmall) - (1100px - 100vw) * 0.005),
|
|
353
|
+
var(--heading-xxsmall)
|
|
354
|
+
);
|
|
355
|
+
}
|
|
356
|
+
h1.responsive.ft_xs,
|
|
357
|
+
h2.responsive.ft_xs,
|
|
358
|
+
h3.responsive.ft_xs,
|
|
359
|
+
h4.responsive.ft_xs,
|
|
360
|
+
h5.responsive.ft_xs,
|
|
361
|
+
h6.responsive.ft_xs {
|
|
362
|
+
font-size: clamp(calc(var(--heading-xsmall) * 0.825), calc(var(--heading-xsmall) - (1100px - 100vw) * 0.0075), var(--heading-xsmall));
|
|
363
|
+
}
|
|
364
|
+
h1.responsive.ft_sm,
|
|
365
|
+
h2.responsive.ft_sm,
|
|
366
|
+
h3.responsive.ft_sm,
|
|
367
|
+
h4.responsive.ft_sm,
|
|
368
|
+
h5.responsive.ft_sm,
|
|
369
|
+
h6.responsive.ft_sm {
|
|
370
|
+
font-size: clamp(calc(var(--heading-small) * 0.75), calc(var(--heading-small) - (1100px - 100vw) * 0.0116), var(--heading-small));
|
|
371
|
+
}
|
|
372
|
+
h1.responsive.ft_df,
|
|
373
|
+
h2.responsive.ft_df,
|
|
374
|
+
h3.responsive.ft_df,
|
|
375
|
+
h4.responsive.ft_df,
|
|
376
|
+
h5.responsive.ft_df,
|
|
377
|
+
h6.responsive.ft_df {
|
|
378
|
+
font-size: clamp(
|
|
379
|
+
calc(var(--heading-default) * 0.7),
|
|
380
|
+
calc(var(--heading-default) - (1100px - 100vw) * 0.016),
|
|
381
|
+
var(--heading-default)
|
|
382
|
+
);
|
|
383
|
+
}
|
|
384
|
+
h1.responsive.ft_md,
|
|
385
|
+
h2.responsive.ft_md,
|
|
386
|
+
h3.responsive.ft_md,
|
|
387
|
+
h4.responsive.ft_md,
|
|
388
|
+
h5.responsive.ft_md,
|
|
389
|
+
h6.responsive.ft_md {
|
|
390
|
+
font-size: clamp(calc(var(--heading-medium) * 0.62), calc(var(--heading-medium) - (1100px - 100vw) * 0.02), var(--heading-medium));
|
|
391
|
+
}
|
|
392
|
+
h1.responsive.ft_lg,
|
|
393
|
+
h2.responsive.ft_lg,
|
|
394
|
+
h3.responsive.ft_lg,
|
|
395
|
+
h4.responsive.ft_lg,
|
|
396
|
+
h5.responsive.ft_lg,
|
|
397
|
+
h6.responsive.ft_lg {
|
|
398
|
+
font-size: clamp(calc(var(--heading-large) * 0.6), calc(var(--heading-large) - (1100px - 100vw) * 0.024), var(--heading-large));
|
|
399
|
+
}
|
|
400
|
+
h1.responsive.ft_xl,
|
|
401
|
+
h2.responsive.ft_xl,
|
|
402
|
+
h3.responsive.ft_xl,
|
|
403
|
+
h4.responsive.ft_xl,
|
|
404
|
+
h5.responsive.ft_xl,
|
|
405
|
+
h6.responsive.ft_xl {
|
|
406
|
+
font-size: clamp(calc(var(--heading-xlarge) * 0.62), calc(var(--heading-xlarge) - (1100px - 100vw) * 0.026), var(--heading-xlarge));
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/*
|
|
410
|
+
Responsive text (not headings, which the rules above override): the same start at 1100px wide,
|
|
411
|
+
but shrinking far less, to a floor of about 85-90% (never below the default text size), so
|
|
412
|
+
body copy stays readable on phones.
|
|
413
|
+
*/
|
|
414
|
+
|
|
415
|
+
.responsive.ft_md {
|
|
416
|
+
font-size: clamp(calc(var(--text-medium) * 0.9), calc(var(--text-medium) - (1100px - 100vw) * 0.0026), var(--text-medium));
|
|
417
|
+
}
|
|
418
|
+
.responsive.ft_lg {
|
|
419
|
+
font-size: clamp(calc(var(--text-large) * 0.88), calc(var(--text-large) - (1100px - 100vw) * 0.0033), var(--text-large));
|
|
420
|
+
}
|
|
421
|
+
.responsive.ft_xl {
|
|
422
|
+
font-size: clamp(calc(var(--text-xlarge) * 0.85), calc(var(--text-xlarge) - (1100px - 100vw) * 0.0045), var(--text-xlarge));
|
|
423
|
+
}
|
|
424
|
+
|
|
340
425
|
/* Icon */
|
|
341
426
|
|
|
342
427
|
.icon_cnt {
|
|
@@ -488,6 +573,9 @@ h6.ft_xxl,
|
|
|
488
573
|
transform: translateX(4px);
|
|
489
574
|
}
|
|
490
575
|
|
|
576
|
+
.tf_rotate_0 {
|
|
577
|
+
transform: rotate(0deg);
|
|
578
|
+
}
|
|
491
579
|
.tf_rotate_15 {
|
|
492
580
|
transform: rotate(15deg);
|
|
493
581
|
}
|
|
@@ -1058,13 +1146,13 @@ h6.ft_xxl,
|
|
|
1058
1146
|
}
|
|
1059
1147
|
|
|
1060
1148
|
.av_xxxs {
|
|
1061
|
-
width: 1.25rem;
|
|
1062
|
-
height: 1.25rem;
|
|
1063
|
-
}
|
|
1064
|
-
.av_xxs {
|
|
1065
1149
|
width: 1.5rem;
|
|
1066
1150
|
height: 1.5rem;
|
|
1067
1151
|
}
|
|
1152
|
+
.av_xxs {
|
|
1153
|
+
width: 1.75rem;
|
|
1154
|
+
height: 1.75rem;
|
|
1155
|
+
}
|
|
1068
1156
|
.av_xs {
|
|
1069
1157
|
width: var(--av-xsmall);
|
|
1070
1158
|
height: var(--av-xsmall);
|
|
@@ -1251,7 +1339,10 @@ h6.ft_xxl,
|
|
|
1251
1339
|
|
|
1252
1340
|
/* Font size overrides; keep this at bottom for priority */
|
|
1253
1341
|
|
|
1254
|
-
.
|
|
1342
|
+
.ft_xxxs {
|
|
1343
|
+
font-size: 12px;
|
|
1344
|
+
}
|
|
1345
|
+
.ft_xxs {
|
|
1255
1346
|
font-size: var(--text-xxsmall);
|
|
1256
1347
|
}
|
|
1257
1348
|
.ft_xs {
|
package/css/alert.css
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
/* Modal cover for alerts & screens */
|
|
2
2
|
|
|
3
3
|
.gr_modal {
|
|
4
|
-
background: linear-gradient(
|
|
5
|
-
360deg,
|
|
6
|
-
rgba(var(--color-modal), 1) 0%,
|
|
7
|
-
rgba(var(--color-modal), 0.58) 50%
|
|
8
|
-
);
|
|
4
|
+
background: linear-gradient(360deg, rgba(var(--color-modal), 1) 0%, rgba(var(--color-modal), 0.58) 50%);
|
|
9
5
|
backdrop-filter: saturate(125%) blur(1px);
|
|
10
6
|
}
|
|
11
7
|
|
|
@@ -19,26 +15,39 @@
|
|
|
19
15
|
backdrop-filter: saturate(125%) blur(1px);
|
|
20
16
|
}
|
|
21
17
|
|
|
18
|
+
.gr_modal_solid {
|
|
19
|
+
background: linear-gradient(to bottom, rgba(var(--color-bg), 1) 0%, rgba(var(--color-bg), 0.87) 50%, rgba(var(--color-bg), 1) 100%);
|
|
20
|
+
backdrop-filter: saturate(125%) blur(1px);
|
|
21
|
+
|
|
22
|
+
--color-modal: 210, 210, 210;
|
|
23
|
+
}
|
|
24
|
+
|
|
22
25
|
.gr_modal_content {
|
|
23
|
-
background-image:
|
|
26
|
+
background-image: linear-gradient(to bottom, #CCF0FF 0px, transparent 250px);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.gr_cta_popup {
|
|
30
|
+
background-image: url("https://assets.chiefhappiness.co/marketday/static/modal-cta-popup.jpg?v=20260906");
|
|
31
|
+
/*background-image: url('/img/modal-cta-popup.jpg');*/
|
|
24
32
|
background-position: top center;
|
|
25
33
|
background-repeat: no-repeat;
|
|
26
|
-
background-size: 100% auto;
|
|
27
34
|
}
|
|
28
35
|
|
|
29
36
|
.gr_contrast {
|
|
30
|
-
background-color:
|
|
31
|
-
|
|
32
|
-
ellipse at center,
|
|
33
|
-
var(--color-contrast-hover) 0%,
|
|
34
|
-
transparent 70%
|
|
35
|
-
);
|
|
37
|
+
background-color: rgba(10, 10, 10, 0.93);
|
|
38
|
+
backdrop-filter: saturate(125%) blur(1px);
|
|
36
39
|
}
|
|
37
40
|
|
|
38
41
|
.modal_main_content {
|
|
39
42
|
cursor: auto;
|
|
40
43
|
}
|
|
41
44
|
|
|
45
|
+
.modal_pattern_fade_out:before {
|
|
46
|
+
/* Let modal controls receive clicks through the decorative pattern. */
|
|
47
|
+
pointer-events: none;
|
|
48
|
+
background: linear-gradient(to bottom, rgba(var(--color-assist), 0.25) 0px, rgba(var(--color-assist), 0) 350px);
|
|
49
|
+
}
|
|
50
|
+
|
|
42
51
|
/* Gradient and color helpers for modals */
|
|
43
52
|
|
|
44
53
|
.fade_modal_down {
|
package/css/animate.css
CHANGED
|
@@ -25,6 +25,23 @@
|
|
|
25
25
|
animation-fill-mode: both;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
/* Restart the animation on dismissal even after the entrance has finished. */
|
|
29
|
+
.anim_dropdown_top.reverse {
|
|
30
|
+
animation-name: keyframes_dropdown_top_exit;
|
|
31
|
+
animation-direction: normal;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@keyframes keyframes_dropdown_top_exit {
|
|
35
|
+
from {
|
|
36
|
+
transform: translate(0, 0) scale(1);
|
|
37
|
+
opacity: 1;
|
|
38
|
+
}
|
|
39
|
+
to {
|
|
40
|
+
transform: translate(0, -10px) scale(0.97);
|
|
41
|
+
opacity: 0;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
28
45
|
@keyframes keyframes_dropdown_top {
|
|
29
46
|
from {
|
|
30
47
|
transform: translate(0, -10px) scale(0.97);
|
|
@@ -62,6 +79,23 @@
|
|
|
62
79
|
animation-fill-mode: both;
|
|
63
80
|
}
|
|
64
81
|
|
|
82
|
+
/* Restart the animation on dismissal even after the entrance has finished. */
|
|
83
|
+
.anim_dropdown_top_left.reverse {
|
|
84
|
+
animation-name: keyframes_dropdown_top_left_exit;
|
|
85
|
+
animation-direction: normal;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@keyframes keyframes_dropdown_top_left_exit {
|
|
89
|
+
from {
|
|
90
|
+
transform: translate(0, 0) scale(1);
|
|
91
|
+
opacity: 1;
|
|
92
|
+
}
|
|
93
|
+
to {
|
|
94
|
+
transform: translate(-2px, -10px) scale(0.95);
|
|
95
|
+
opacity: 0;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
65
99
|
@keyframes keyframes_dropdown_top_left {
|
|
66
100
|
from {
|
|
67
101
|
transform: translate(-2px, -10px) scale(0.95);
|
|
@@ -99,6 +133,23 @@
|
|
|
99
133
|
animation-fill-mode: both;
|
|
100
134
|
}
|
|
101
135
|
|
|
136
|
+
/* Use a distinct animation name so dismissing restarts a completed entrance animation. */
|
|
137
|
+
.anim_dropdown_top_right.reverse {
|
|
138
|
+
animation-name: keyframes_dropdown_top_right_exit;
|
|
139
|
+
animation-direction: normal;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
@keyframes keyframes_dropdown_top_right_exit {
|
|
143
|
+
from {
|
|
144
|
+
transform: translate(0, 0) scale(1);
|
|
145
|
+
opacity: 1;
|
|
146
|
+
}
|
|
147
|
+
to {
|
|
148
|
+
transform: translate(2px, -10px) scale(0.95);
|
|
149
|
+
opacity: 0;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
102
153
|
@keyframes keyframes_dropdown_top_right {
|
|
103
154
|
from {
|
|
104
155
|
transform: translate(2px, -10px) scale(0.95);
|
|
@@ -646,6 +697,38 @@
|
|
|
646
697
|
}
|
|
647
698
|
}
|
|
648
699
|
|
|
700
|
+
/* Background size movement */
|
|
701
|
+
|
|
702
|
+
.anim_bg_move_1 {
|
|
703
|
+
animation: keyframes_bg_move_1 20s ease-in-out infinite;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
@keyframes keyframes_bg_move_1 {
|
|
707
|
+
0%,
|
|
708
|
+
100% {
|
|
709
|
+
background-size: 200% 200%;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
50% {
|
|
713
|
+
background-size: 100% 100%;
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
.anim_bg_move_2 {
|
|
718
|
+
animation: keyframes_bg_move_2 10s ease-in-out infinite;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
@keyframes keyframes_bg_move_2 {
|
|
722
|
+
0%,
|
|
723
|
+
100% {
|
|
724
|
+
background-size: 150% 150%;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
50% {
|
|
728
|
+
background-size: 100% 100%;
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
|
|
649
732
|
.reverse {
|
|
650
733
|
animation-direction: reverse;
|
|
651
734
|
}
|
package/css/form.css
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
.form_cnt,
|
|
15
15
|
.form_el input,
|
|
16
|
+
.form_el .form_select,
|
|
16
17
|
.form_el textarea,
|
|
17
18
|
.form_el .tx_virtualizer {
|
|
18
19
|
padding: 0.58rem;
|
|
@@ -24,22 +25,37 @@ fieldset.form_cnt {
|
|
|
24
25
|
|
|
25
26
|
.form_cnt.smaller,
|
|
26
27
|
.form_el.smaller input,
|
|
28
|
+
.form_el.smaller .form_select,
|
|
27
29
|
.form_el.smaller textarea,
|
|
28
30
|
.form_el.smaller .tx_virtualizer {
|
|
29
31
|
/* If less is needed, use .lh_1 .lh_2 to further flatten the height */
|
|
30
32
|
padding: 0.32rem 6px;
|
|
31
33
|
}
|
|
32
34
|
|
|
35
|
+
.form_cnt.tiny,
|
|
36
|
+
.form_el.tiny input,
|
|
37
|
+
.form_el.tiny .form_select,
|
|
38
|
+
.form_el.tiny textarea,
|
|
39
|
+
.form_el.tiny .tx_virtualizer {
|
|
40
|
+
padding: var(--form-tiny-padding-top, var(--form-tiny-padding-y, 2px)) var(--form-tiny-padding-x, 5px)
|
|
41
|
+
var(--form-tiny-padding-y, 2px);
|
|
42
|
+
}
|
|
43
|
+
|
|
33
44
|
/* Input */
|
|
34
45
|
|
|
35
46
|
.form_cnt.outline,
|
|
36
47
|
.form_el input,
|
|
48
|
+
.form_el .form_select,
|
|
37
49
|
.form_el textarea,
|
|
38
50
|
.form_el .tx_virtualizer {
|
|
39
51
|
border: solid 1px var(--color-darker-light);
|
|
40
52
|
background-color: transparent;
|
|
41
53
|
}
|
|
42
54
|
|
|
55
|
+
.form_el .form_select {
|
|
56
|
+
outline: 2px solid transparent;
|
|
57
|
+
}
|
|
58
|
+
|
|
43
59
|
/* Invisible input (use this to make inputs clickable with separate render component) */
|
|
44
60
|
|
|
45
61
|
.invis_input {
|
|
@@ -72,6 +88,35 @@ input.invis_input::-webkit-inner-spin-button {
|
|
|
72
88
|
margin: 0;
|
|
73
89
|
}
|
|
74
90
|
|
|
91
|
+
/* Number input with native increment and decrement controls hidden */
|
|
92
|
+
|
|
93
|
+
input.no_number_spinner[type="number"] {
|
|
94
|
+
appearance: textfield;
|
|
95
|
+
-moz-appearance: textfield;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
input.no_number_spinner::-webkit-outer-spin-button,
|
|
99
|
+
input.no_number_spinner::-webkit-inner-spin-button {
|
|
100
|
+
-webkit-appearance: none;
|
|
101
|
+
margin: 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* Input width follows its current value within the available container width */
|
|
105
|
+
|
|
106
|
+
.input_field_sizing {
|
|
107
|
+
field-sizing: content;
|
|
108
|
+
min-width: 1ch;
|
|
109
|
+
max-width: 100%;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* Outlined input container shrink-wraps its field and trailing content */
|
|
113
|
+
|
|
114
|
+
.input_with_postfix {
|
|
115
|
+
display: inline-flex;
|
|
116
|
+
width: fit-content;
|
|
117
|
+
max-width: 100%;
|
|
118
|
+
}
|
|
119
|
+
|
|
75
120
|
/* Native checkbox rendered as a toggle switch */
|
|
76
121
|
|
|
77
122
|
input.toggle_switch {
|
|
@@ -88,6 +133,9 @@ input.toggle_switch {
|
|
|
88
133
|
outline-color 0.125s ease-in-out;
|
|
89
134
|
}
|
|
90
135
|
|
|
136
|
+
input.toggle_switch.av_xxxs {
|
|
137
|
+
--toggle-switch-height: calc(1.5rem * 0.7142857);
|
|
138
|
+
}
|
|
91
139
|
input.toggle_switch.av_xs {
|
|
92
140
|
--toggle-switch-height: calc(var(--av-xsmall) * 0.7142857);
|
|
93
141
|
}
|
|
@@ -157,11 +205,14 @@ textarea.error:focus,
|
|
|
157
205
|
}
|
|
158
206
|
|
|
159
207
|
input:not(.stock):not(.toggle_switch):focus,
|
|
208
|
+
.form_select:focus,
|
|
209
|
+
.form_select.active,
|
|
160
210
|
textarea:not(.stock):focus,
|
|
161
211
|
[contenteditable="true"]:not(.stock):focus,
|
|
162
212
|
.form_el input.focus:not(.toggle_switch),
|
|
163
213
|
.form_el.focused textarea.form_el,
|
|
164
214
|
.form_el.focused input:not(.toggle_switch),
|
|
215
|
+
.form_el.focused .form_select,
|
|
165
216
|
.form_el.focused textarea,
|
|
166
217
|
.form_el.error.focused .form_input,
|
|
167
218
|
.form_el.focused .form_input.error {
|
|
@@ -171,6 +222,11 @@ textarea:not(.stock):focus,
|
|
|
171
222
|
box-shadow: 0 0 40px rgba(var(--color-main), 0.1);
|
|
172
223
|
}
|
|
173
224
|
|
|
225
|
+
input:is([type="checkbox"], [type="radio"]):focus:not(:focus-visible) {
|
|
226
|
+
outline: none;
|
|
227
|
+
box-shadow: none;
|
|
228
|
+
}
|
|
229
|
+
|
|
174
230
|
.form_input:not(.disabled):not(.error):hover,
|
|
175
231
|
.form_el:hover .form_input:not(.disabled):not(.error),
|
|
176
232
|
.form_el_hv:hover {
|
|
@@ -178,6 +234,8 @@ textarea:not(.stock):focus,
|
|
|
178
234
|
}
|
|
179
235
|
|
|
180
236
|
input:not(.error):not(.disabled):not(.stock):not(.toggle_switch):focus,
|
|
237
|
+
.form_select:not(.error):not(.disabled):focus,
|
|
238
|
+
.form_select.active:not(.error):not(.disabled),
|
|
181
239
|
textarea:not(.error):not(.disabled):not(.stock):focus,
|
|
182
240
|
[contenteditable="true"]:not(.error):not(.disabled):not(.stock):focus,
|
|
183
241
|
.form_input:not(.disabled):not(.error):focus:hover,
|
|
@@ -200,11 +258,7 @@ textarea.focus_bg:focus,
|
|
|
200
258
|
|
|
201
259
|
.form_el:not(.disabled):hover .form_el_r,
|
|
202
260
|
.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;
|
|
261
|
+
background: linear-gradient(to left, var(--color-main-bg) 50%, rgba(var(--color-main), 0)) !important;
|
|
208
262
|
}
|
|
209
263
|
|
|
210
264
|
[contenteditable="true"]:empty:before {
|
|
@@ -212,7 +266,8 @@ textarea.focus_bg:focus,
|
|
|
212
266
|
color: var(--color-text-light);
|
|
213
267
|
}
|
|
214
268
|
|
|
215
|
-
.form_el.c input
|
|
269
|
+
.form_el.c input,
|
|
270
|
+
.form_el.c .form_select {
|
|
216
271
|
text-align: center;
|
|
217
272
|
}
|
|
218
273
|
|
|
@@ -225,7 +280,8 @@ textarea.focus_bg:focus,
|
|
|
225
280
|
|
|
226
281
|
/* Input preset: subtle */
|
|
227
282
|
|
|
228
|
-
.form_el.subtle input
|
|
283
|
+
.form_el.subtle input,
|
|
284
|
+
.form_el.subtle .form_select {
|
|
229
285
|
width: 120px;
|
|
230
286
|
padding: 0.35rem;
|
|
231
287
|
}
|
|
@@ -259,11 +315,14 @@ textarea.focus_bg:focus,
|
|
|
259
315
|
left: 0;
|
|
260
316
|
right: 0;
|
|
261
317
|
visibility: hidden;
|
|
318
|
+
/* Match native textarea wrapping, including indentation and unbroken URLs. */
|
|
319
|
+
white-space: pre-wrap;
|
|
320
|
+
overflow-wrap: break-word;
|
|
262
321
|
}
|
|
263
322
|
|
|
264
323
|
.form_el .tx_virtualizer:after {
|
|
265
324
|
/* This allows trailing empty line breaks to be calculated */
|
|
266
|
-
content: "
|
|
325
|
+
content: " ";
|
|
267
326
|
}
|
|
268
327
|
|
|
269
328
|
/* Label */
|
|
@@ -273,7 +332,10 @@ label.form_el {
|
|
|
273
332
|
color: var(--color-text-medium);
|
|
274
333
|
}
|
|
275
334
|
|
|
276
|
-
.form_el
|
|
335
|
+
.form_el.focused label,
|
|
336
|
+
.form_el:has(input:focus) label,
|
|
337
|
+
.form_el:has(.form_select:focus) label,
|
|
338
|
+
.form_el:has(.form_select.active) label {
|
|
277
339
|
color: var(--color-text-bold);
|
|
278
340
|
}
|
|
279
341
|
|
|
@@ -307,11 +369,12 @@ fieldset input[type="radio"] {
|
|
|
307
369
|
bottom: 1px;
|
|
308
370
|
width: 3.5rem;
|
|
309
371
|
padding-left: 1.5rem;
|
|
310
|
-
background: linear-gradient(
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
372
|
+
background: linear-gradient(to left, rgba(var(--color-bg), 1) 50%, rgba(var(--color-bg), 0));
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.form_el.tiny.has_r .form_el_r {
|
|
376
|
+
width: 2.25rem;
|
|
377
|
+
padding-left: 0.15rem;
|
|
315
378
|
}
|
|
316
379
|
|
|
317
380
|
/* .active is for <PopOverButton /> active state, not ::active */
|
|
@@ -324,12 +387,15 @@ fieldset input[type="radio"] {
|
|
|
324
387
|
/* Preset; none */
|
|
325
388
|
|
|
326
389
|
.form_el.none input,
|
|
390
|
+
.form_el.none .form_select,
|
|
327
391
|
.form_el.none textarea {
|
|
328
392
|
border: none;
|
|
329
393
|
background-color: transparent;
|
|
330
394
|
}
|
|
331
395
|
|
|
332
396
|
.form_el.none input:focus,
|
|
397
|
+
.form_el.none .form_select:focus,
|
|
398
|
+
.form_el.none .form_select.active,
|
|
333
399
|
.form_el.none textarea:focus {
|
|
334
400
|
box-shadow: none;
|
|
335
401
|
}
|
|
@@ -337,6 +403,7 @@ fieldset input[type="radio"] {
|
|
|
337
403
|
/* Preset: fill */
|
|
338
404
|
|
|
339
405
|
.form_el.fill input,
|
|
406
|
+
.form_el.fill .form_select,
|
|
340
407
|
.form_el.fill textarea {
|
|
341
408
|
border: none;
|
|
342
409
|
background-color: rgb(var(--color-bg-alt));
|
|
@@ -350,12 +417,8 @@ fieldset input[type="radio"] {
|
|
|
350
417
|
padding: 0 0.42rem;
|
|
351
418
|
}
|
|
352
419
|
|
|
353
|
-
.
|
|
354
|
-
|
|
355
|
-
border-bottom: solid 1px var(--color-darker-light);
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
.form_el.inside_outline input {
|
|
420
|
+
.form_el.inside_outline input,
|
|
421
|
+
.form_el.inside_outline .form_select {
|
|
359
422
|
border: none;
|
|
360
423
|
border-radius: 0;
|
|
361
424
|
border-bottom: solid 1px var(--color-darker-light);
|
|
@@ -367,12 +430,15 @@ fieldset input[type="radio"] {
|
|
|
367
430
|
transform: translateY(-0.1rem);
|
|
368
431
|
}
|
|
369
432
|
|
|
370
|
-
.form_el.inside_outline input:focus
|
|
433
|
+
.form_el.inside_outline input:focus,
|
|
434
|
+
.form_el.inside_outline .form_select:focus,
|
|
435
|
+
.form_el.inside_outline .form_select.active {
|
|
371
436
|
box-shadow: none;
|
|
372
437
|
border-bottom-color: var(--color-text-bold);
|
|
373
438
|
}
|
|
374
439
|
|
|
375
|
-
.form_el.inside_outline.error input
|
|
440
|
+
.form_el.inside_outline.error input,
|
|
441
|
+
.form_el.inside_outline.error .form_select {
|
|
376
442
|
border-bottom-color: rgb(var(--color-error-active));
|
|
377
443
|
}
|
|
378
444
|
|
|
@@ -533,6 +599,12 @@ a.btn.outline {
|
|
|
533
599
|
|
|
534
600
|
/* Button sizes */
|
|
535
601
|
|
|
602
|
+
.btn.xs {
|
|
603
|
+
min-width: 48px;
|
|
604
|
+
padding: 0.3rem 0.4rem;
|
|
605
|
+
border-radius: var(--radius-small);
|
|
606
|
+
}
|
|
607
|
+
|
|
536
608
|
.btn.sm {
|
|
537
609
|
min-width: 52px;
|
|
538
610
|
padding: 0.35rem 0.45rem;
|
|
@@ -550,6 +622,11 @@ a.btn.outline {
|
|
|
550
622
|
border-radius: var(--radius-small-wrap);
|
|
551
623
|
}
|
|
552
624
|
|
|
625
|
+
.btn.md.ft_md,
|
|
626
|
+
.btn.md.ft_lg {
|
|
627
|
+
padding-bottom: 0.8rem;
|
|
628
|
+
}
|
|
629
|
+
|
|
553
630
|
.btn.lg {
|
|
554
631
|
padding: 0.9rem 1.2rem 0.9rem;
|
|
555
632
|
border-radius: var(--radius-small-wrap);
|