@jsb188/css 1.1.11 → 1.1.13

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/_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.ft_tn,
268
- h2.ft_tn,
269
- h3.ft_tn,
270
- h4.ft_tn,
271
- h5.ft_tn,
272
- h6.ft_tn,
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,15 @@ h6.ft_xxl,
488
573
  transform: translateX(4px);
489
574
  }
490
575
 
576
+ .tf_scale_95 {
577
+ scale: 0.95;
578
+ }
579
+ .tf_origin_bottom {
580
+ transform-origin: bottom center;
581
+ }
582
+ .tf_rotate_0 {
583
+ transform: rotate(0deg);
584
+ }
491
585
  .tf_rotate_15 {
492
586
  transform: rotate(15deg);
493
587
  }
@@ -557,6 +651,9 @@ h6.ft_xxl,
557
651
  .tf_rotate_345 {
558
652
  transform: rotate(345deg);
559
653
  }
654
+ .tf_rotate_354 {
655
+ transform: rotate(-6deg);
656
+ }
560
657
  .tf_rotate_360 {
561
658
  transform: rotate(360deg);
562
659
  }
@@ -1058,13 +1155,13 @@ h6.ft_xxl,
1058
1155
  }
1059
1156
 
1060
1157
  .av_xxxs {
1061
- width: 1.25rem;
1062
- height: 1.25rem;
1063
- }
1064
- .av_xxs {
1065
1158
  width: 1.5rem;
1066
1159
  height: 1.5rem;
1067
1160
  }
1161
+ .av_xxs {
1162
+ width: 1.75rem;
1163
+ height: 1.75rem;
1164
+ }
1068
1165
  .av_xs {
1069
1166
  width: var(--av-xsmall);
1070
1167
  height: var(--av-xsmall);
@@ -1251,28 +1348,31 @@ h6.ft_xxl,
1251
1348
 
1252
1349
  /* Font size overrides; keep this at bottom for priority */
1253
1350
 
1254
- .ft_tn {
1351
+ .ft_xxxs, ._ft_xxxs {
1352
+ font-size: 12px;
1353
+ }
1354
+ .ft_xxs, ._ft_xxs {
1255
1355
  font-size: var(--text-xxsmall);
1256
1356
  }
1257
- .ft_xs {
1357
+ .ft_xs, ._ft_xs {
1258
1358
  font-size: var(--text-xsmall);
1259
1359
  }
1260
- .ft_sm {
1360
+ .ft_sm, ._ft_sm {
1261
1361
  font-size: var(--text-small);
1262
1362
  }
1263
- .ft_df {
1363
+ .ft_df, ._ft_df {
1264
1364
  font-size: var(--text-default);
1265
1365
  }
1266
- .ft_md {
1366
+ .ft_md, ._ft_md {
1267
1367
  font-size: var(--text-medium);
1268
1368
  }
1269
- .ft_lg {
1369
+ .ft_lg, ._ft_lg {
1270
1370
  font-size: var(--text-large);
1271
1371
  }
1272
- .ft_xl {
1372
+ .ft_xl, ._ft_xl {
1273
1373
  font-size: var(--text-xlarge);
1274
1374
  }
1275
- .ft_xxl {
1375
+ .ft_xxl, ._ft_xxl {
1276
1376
  font-size: var(--text-xxlarge);
1277
1377
  }
1278
1378
 
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,76 @@
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: url("https://assets.chiefhappiness.co/marketday/static/modal-content.jpg");
26
+ --drawer-gradient: linear-gradient(to bottom, #ccf0ff 0px, transparent 250px);
27
+ background-image: var(--drawer-gradient);
28
+ }
29
+
30
+ @keyframes drawer-background-scroll {
31
+ to {
32
+ transform: translateY(-110px);
33
+ }
34
+ }
35
+
36
+ @media (prefers-reduced-motion: no-preference) {
37
+ @supports (timeline-scope: --drawer-scroll) and (animation-timeline: --drawer-scroll) and (animation-range: 0px 200px) {
38
+ .gr_modal_content {
39
+ timeline-scope: --drawer-scroll;
40
+ background-image: none;
41
+ }
42
+
43
+ .gr_modal_content > .scr_area {
44
+ scroll-timeline-name: --drawer-scroll;
45
+ }
46
+
47
+ .gr_modal_content::after {
48
+ content: "";
49
+ position: absolute;
50
+ inset: 0 0 auto;
51
+ height: 250px;
52
+ z-index: -1;
53
+ pointer-events: none;
54
+ background-image: var(--drawer-gradient);
55
+ }
56
+
57
+ .gr_modal_content::before,
58
+ .gr_modal_content::after {
59
+ animation: drawer-background-scroll auto linear both;
60
+ animation-timeline: --drawer-scroll;
61
+ animation-range: 0px 200px;
62
+ }
63
+ }
64
+ }
65
+
66
+ .gr_cta_popup {
67
+ background-image: url("https://assets.chiefhappiness.co/marketday/static/modal-cta-popup.jpg?v=20260906");
68
+ /*background-image: url('/img/modal-cta-popup.jpg');*/
24
69
  background-position: top center;
25
70
  background-repeat: no-repeat;
26
- background-size: 100% auto;
27
71
  }
28
72
 
29
73
  .gr_contrast {
30
- background-color: color-mix(in srgb, var(--color-contrast) 93%, transparent);
31
- background-image: radial-gradient(
32
- ellipse at center,
33
- var(--color-contrast-hover) 0%,
34
- transparent 70%
35
- );
74
+ background-color: rgba(10, 10, 10, 0.93);
75
+ backdrop-filter: saturate(125%) blur(1px);
36
76
  }
37
77
 
38
78
  .modal_main_content {
39
79
  cursor: auto;
40
80
  }
41
81
 
82
+ .modal_pattern_fade_out:before {
83
+ /* Let modal controls receive clicks through the decorative pattern. */
84
+ pointer-events: none;
85
+ background: linear-gradient(to bottom, rgba(var(--color-assist), 0.25) 0px, rgba(var(--color-assist), 0) 350px);
86
+ }
87
+
42
88
  /* Gradient and color helpers for modals */
43
89
 
44
90
  .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
  }