@stackoverflow/stacks 2.0.8 → 2.0.9
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/dist/css/stacks.css +41 -8
- package/dist/css/stacks.min.css +1 -1
- package/lib/atomic/misc.less +1 -1
- package/lib/components/activity-indicator/activity-indicator.less +5 -5
- package/lib/components/progress-bar/progress-bar.less +1 -1
- package/lib/exports/__snapshots__/color-mixins.less.test.ts.snap +10 -0
- package/lib/exports/__snapshots__/color.less.test.ts.snap +33 -0
- package/lib/exports/color-mixins.less +2 -0
- package/lib/exports/color-sets.less +27 -0
- package/lib/tsconfig.json +3 -3
- package/package.json +11 -11
package/dist/css/stacks.css
CHANGED
|
@@ -411,11 +411,11 @@ fieldset {
|
|
|
411
411
|
position: relative;
|
|
412
412
|
}
|
|
413
413
|
.s-activity-indicator {
|
|
414
|
-
--_ai-
|
|
414
|
+
--_ai-translucent: var(--translucent-secondary);
|
|
415
415
|
--_ai-bg: var(--theme-secondary-400);
|
|
416
416
|
--_ai-fc: var(--white);
|
|
417
417
|
background-color: var(--_ai-bg);
|
|
418
|
-
box-shadow: 0 0 0 var(--su-static4) var(--_ai-
|
|
418
|
+
box-shadow: 0 0 0 var(--su-static4) var(--_ai-translucent);
|
|
419
419
|
color: var(--_ai-fc);
|
|
420
420
|
border-radius: 1000px;
|
|
421
421
|
display: inline-block;
|
|
@@ -432,14 +432,14 @@ body.theme-highcontrast .s-activity-indicator {
|
|
|
432
432
|
}
|
|
433
433
|
.s-activity-indicator.s-activity-indicator__danger {
|
|
434
434
|
--_ai-bg: var(--red-400);
|
|
435
|
-
--_ai-
|
|
435
|
+
--_ai-translucent: var(--translucent-error);
|
|
436
436
|
}
|
|
437
437
|
body.theme-highcontrast .s-activity-indicator.s-activity-indicator__danger {
|
|
438
438
|
--_ai-bg: var(--red-500);
|
|
439
439
|
}
|
|
440
440
|
.s-activity-indicator.s-activity-indicator__success {
|
|
441
441
|
--_ai-bg: var(--green-400);
|
|
442
|
-
--_ai-
|
|
442
|
+
--_ai-translucent: var(--translucent-success);
|
|
443
443
|
}
|
|
444
444
|
body.theme-highcontrast .s-activity-indicator.s-activity-indicator__success {
|
|
445
445
|
--_ai-bg: var(--green-500);
|
|
@@ -447,7 +447,7 @@ body.theme-highcontrast .s-activity-indicator.s-activity-indicator__success {
|
|
|
447
447
|
.s-activity-indicator.s-activity-indicator__warning {
|
|
448
448
|
--_ai-bg: var(--yellow-400);
|
|
449
449
|
--_ai-fc: var(--_black-static);
|
|
450
|
-
--_ai-
|
|
450
|
+
--_ai-translucent: var(--translucent-warning);
|
|
451
451
|
}
|
|
452
452
|
body.theme-highcontrast .s-activity-indicator.s-activity-indicator__warning {
|
|
453
453
|
--_ai-bg: var(--yellow-500);
|
|
@@ -4148,7 +4148,7 @@ body.theme-highcontrast .s-progress.s-progress__privilege {
|
|
|
4148
4148
|
}
|
|
4149
4149
|
.s-progress.s-progress__stepped .s-progress--step.is-active .s-progress--stop {
|
|
4150
4150
|
background: var(--theme-secondary-400);
|
|
4151
|
-
box-shadow: 0 0 0 var(--su-static6) var(--
|
|
4151
|
+
box-shadow: 0 0 0 var(--su-static6) var(--translucent-secondary);
|
|
4152
4152
|
}
|
|
4153
4153
|
.s-progress.s-progress__stepped .s-progress--step.is-complete .s-progress--bar,
|
|
4154
4154
|
.s-progress.s-progress__stepped .s-progress--step.is-complete .s-progress--stop {
|
|
@@ -7561,6 +7561,11 @@ body:not(.theme-highcontrast).theme-system .theme-light__forced .themed {
|
|
|
7561
7561
|
--bs-md: 0 1px 3px hsla(0, 0%, 0%, 0.06), 0 2px 6px hsla(0, 0%, 0%, 0.06), 0 3px 8px hsla(0, 0%, 0%, 0.09);
|
|
7562
7562
|
--bs-lg: 0 1px 4px hsla(0, 0%, 0%, 0.09), 0 3px 8px hsla(0, 0%, 0%, 0.09), 0 4px 13px hsla(0, 0%, 0%, 0.13);
|
|
7563
7563
|
--bs-xl: 0 10px 24px hsla(0, 0%, 0%, 0.05), 0 20px 48px hsla(0, 0%, 0%, 0.05), 0 1px 4px hsla(0, 0%, 0%, 0.1);
|
|
7564
|
+
--translucent-secondary: var(--theme-secondary-custom-translucent, hsla(206, 100%, 40%, 0.15));
|
|
7565
|
+
--translucent-success: hsla(140, 40%, 75%, 0.4);
|
|
7566
|
+
--translucent-warning: hsla(47, 79%, 58%, 0.4);
|
|
7567
|
+
--translucent-error: hsla(358, 62%, 47%, 0.15);
|
|
7568
|
+
--translucent-muted: hsla(210, 8%, 15%, 0.1);
|
|
7564
7569
|
--focus-ring: var(--theme-secondary-custom-focus-ring, hsla(206, 100%, 40%, 0.15));
|
|
7565
7570
|
--focus-ring-success: hsla(140, 40%, 75%, 0.4);
|
|
7566
7571
|
--focus-ring-warning: hsla(47, 79%, 58%, 0.4);
|
|
@@ -7608,6 +7613,7 @@ body:not(.theme-highcontrast).theme-system .theme-light__forced .themed {
|
|
|
7608
7613
|
--theme-secondary-custom-600: hsl(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), calc(var(--theme-base-secondary-color-l) + (var(--theme-base-secondary-color-l) * -.6)));
|
|
7609
7614
|
--theme-secondary-custom: var(--theme-secondary-custom-400);
|
|
7610
7615
|
--theme-secondary-custom-focus-ring: hsla(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), var(--theme-base-secondary-color-l), 0.15);
|
|
7616
|
+
--theme-secondary-custom-translucent: hsla(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), var(--theme-base-secondary-color-l), 0.15);
|
|
7611
7617
|
color: var(--theme-body-font-color, var(--black-600));
|
|
7612
7618
|
}
|
|
7613
7619
|
body:not(.theme-highcontrast).theme-dark,
|
|
@@ -7687,6 +7693,11 @@ body:not(.theme-highcontrast):not(.theme-dark) .theme-dark__forced .themed {
|
|
|
7687
7693
|
--bs-md: 0 1px 3px hsla(0, 0%, 0%, 0.11), 0 2px 6px hsla(0, 0%, 0%, 0.11), 0 3px 8px hsla(0, 0%, 0%, 0.14);
|
|
7688
7694
|
--bs-lg: 0 1px 4px hsla(0, 0%, 0%, 0.14), 0 3px 8px hsla(0, 0%, 0%, 0.14), 0 4px 13px hsla(0, 0%, 0%, 0.18);
|
|
7689
7695
|
--bs-xl: 0 10px 24px hsla(0, 0%, 0%, 0.1), 0 20px 48px hsla(0, 0%, 0%, 0.1), 0 1px 4px hsla(0, 0%, 0%, 0.15);
|
|
7696
|
+
--translucent-secondary: var(--theme-dark-secondary-custom-translucent, hsla(206, 100%, 40%, 0.25));
|
|
7697
|
+
--translucent-success: hsla(140, 40%, 75%, 0.4);
|
|
7698
|
+
--translucent-warning: hsla(47, 79%, 58%, 0.4);
|
|
7699
|
+
--translucent-error: hsla(358, 62%, 47%, 0.15);
|
|
7700
|
+
--translucent-muted: hsla(210, 8%, 15%, 0.1);
|
|
7690
7701
|
--focus-ring: var(--theme-dark-secondary-custom-focus-ring, hsla(206, 100%, 40%, 0.25));
|
|
7691
7702
|
--focus-ring-success: hsla(140, 40%, 75%, 0.4);
|
|
7692
7703
|
--focus-ring-warning: hsla(47, 79%, 58%, 0.4);
|
|
@@ -7734,6 +7745,7 @@ body:not(.theme-highcontrast):not(.theme-dark) .theme-dark__forced .themed {
|
|
|
7734
7745
|
--theme-dark-secondary-custom-600: hsl(var(--theme-dark-secondary-color-h), var(--theme-dark-secondary-color-s), calc(var(--theme-dark-secondary-color-l) + ((100% - var(--theme-dark-secondary-color-l)) * .8)));
|
|
7735
7746
|
--theme-dark-secondary-custom: var(--theme-dark-secondary-custom-400);
|
|
7736
7747
|
--theme-dark-secondary-custom-focus-ring: hsla(var(--theme-dark-secondary-color-h), var(--theme-dark-secondary-color-s), var(--theme-dark-secondary-color-l), 0.25);
|
|
7748
|
+
--theme-dark-secondary-custom-translucent: hsla(var(--theme-dark-secondary-color-h), var(--theme-dark-secondary-color-s), var(--theme-dark-secondary-color-l), 0.25);
|
|
7737
7749
|
color: var(--theme-body-font-color, var(--black-600));
|
|
7738
7750
|
}
|
|
7739
7751
|
@media (prefers-color-scheme: dark) {
|
|
@@ -7811,6 +7823,11 @@ body:not(.theme-highcontrast):not(.theme-dark) .theme-dark__forced .themed {
|
|
|
7811
7823
|
--bs-md: 0 1px 3px hsla(0, 0%, 0%, 0.11), 0 2px 6px hsla(0, 0%, 0%, 0.11), 0 3px 8px hsla(0, 0%, 0%, 0.14);
|
|
7812
7824
|
--bs-lg: 0 1px 4px hsla(0, 0%, 0%, 0.14), 0 3px 8px hsla(0, 0%, 0%, 0.14), 0 4px 13px hsla(0, 0%, 0%, 0.18);
|
|
7813
7825
|
--bs-xl: 0 10px 24px hsla(0, 0%, 0%, 0.1), 0 20px 48px hsla(0, 0%, 0%, 0.1), 0 1px 4px hsla(0, 0%, 0%, 0.15);
|
|
7826
|
+
--translucent-secondary: var(--theme-dark-secondary-custom-translucent, hsla(206, 100%, 40%, 0.25));
|
|
7827
|
+
--translucent-success: hsla(140, 40%, 75%, 0.4);
|
|
7828
|
+
--translucent-warning: hsla(47, 79%, 58%, 0.4);
|
|
7829
|
+
--translucent-error: hsla(358, 62%, 47%, 0.15);
|
|
7830
|
+
--translucent-muted: hsla(210, 8%, 15%, 0.1);
|
|
7814
7831
|
--focus-ring: var(--theme-dark-secondary-custom-focus-ring, hsla(206, 100%, 40%, 0.25));
|
|
7815
7832
|
--focus-ring-success: hsla(140, 40%, 75%, 0.4);
|
|
7816
7833
|
--focus-ring-warning: hsla(47, 79%, 58%, 0.4);
|
|
@@ -7858,6 +7875,7 @@ body:not(.theme-highcontrast):not(.theme-dark) .theme-dark__forced .themed {
|
|
|
7858
7875
|
--theme-dark-secondary-custom-600: hsl(var(--theme-dark-secondary-color-h), var(--theme-dark-secondary-color-s), calc(var(--theme-dark-secondary-color-l) + ((100% - var(--theme-dark-secondary-color-l)) * .8)));
|
|
7859
7876
|
--theme-dark-secondary-custom: var(--theme-dark-secondary-custom-400);
|
|
7860
7877
|
--theme-dark-secondary-custom-focus-ring: hsla(var(--theme-dark-secondary-color-h), var(--theme-dark-secondary-color-s), var(--theme-dark-secondary-color-l), 0.25);
|
|
7878
|
+
--theme-dark-secondary-custom-translucent: hsla(var(--theme-dark-secondary-color-h), var(--theme-dark-secondary-color-s), var(--theme-dark-secondary-color-l), 0.25);
|
|
7861
7879
|
color: var(--theme-body-font-color, var(--black-600));
|
|
7862
7880
|
}
|
|
7863
7881
|
}
|
|
@@ -7935,6 +7953,11 @@ body.theme-highcontrast.theme-system .theme-light__forced {
|
|
|
7935
7953
|
--bs-md: none;
|
|
7936
7954
|
--bs-lg: none;
|
|
7937
7955
|
--bs-xl: none;
|
|
7956
|
+
--translucent-secondary: hsla(206, 100%, 40%, 0.9);
|
|
7957
|
+
--translucent-success: hsla(140, 40%, 40%, 0.9);
|
|
7958
|
+
--translucent-warning: hsla(47, 76%, 46%, 0.9);
|
|
7959
|
+
--translucent-error: hsla(358, 62%, 47%, 0.9);
|
|
7960
|
+
--translucent-muted: hsla(210, 8%, 55%, 0.95);
|
|
7938
7961
|
--focus-ring: hsla(206, 100%, 40%, 0.9);
|
|
7939
7962
|
--focus-ring-success: hsla(140, 40%, 40%, 0.9);
|
|
7940
7963
|
--focus-ring-warning: hsla(47, 76%, 46%, 0.9);
|
|
@@ -8042,6 +8065,11 @@ body.theme-highcontrast:not(.theme-dark) .theme-dark__forced {
|
|
|
8042
8065
|
--bs-md: none;
|
|
8043
8066
|
--bs-lg: none;
|
|
8044
8067
|
--bs-xl: none;
|
|
8068
|
+
--translucent-secondary: hsla(206, 100%, 40%, 0.9);
|
|
8069
|
+
--translucent-success: hsla(140, 40%, 40%, 0.9);
|
|
8070
|
+
--translucent-warning: hsla(47, 76%, 46%, 0.9);
|
|
8071
|
+
--translucent-error: hsla(358, 62%, 47%, 0.9);
|
|
8072
|
+
--translucent-muted: hsla(210, 8%, 55%, 0.95);
|
|
8045
8073
|
--focus-ring: hsla(206, 100%, 40%, 0.9);
|
|
8046
8074
|
--focus-ring-success: hsla(140, 40%, 40%, 0.9);
|
|
8047
8075
|
--focus-ring-warning: hsla(47, 76%, 46%, 0.9);
|
|
@@ -8149,6 +8177,11 @@ body.theme-highcontrast:not(.theme-dark) .theme-dark__forced {
|
|
|
8149
8177
|
--bs-md: none;
|
|
8150
8178
|
--bs-lg: none;
|
|
8151
8179
|
--bs-xl: none;
|
|
8180
|
+
--translucent-secondary: hsla(206, 100%, 40%, 0.9);
|
|
8181
|
+
--translucent-success: hsla(140, 40%, 40%, 0.9);
|
|
8182
|
+
--translucent-warning: hsla(47, 76%, 46%, 0.9);
|
|
8183
|
+
--translucent-error: hsla(358, 62%, 47%, 0.9);
|
|
8184
|
+
--translucent-muted: hsla(210, 8%, 55%, 0.95);
|
|
8152
8185
|
--focus-ring: hsla(206, 100%, 40%, 0.9);
|
|
8153
8186
|
--focus-ring-success: hsla(140, 40%, 40%, 0.9);
|
|
8154
8187
|
--focus-ring-warning: hsla(47, 76%, 46%, 0.9);
|
|
@@ -20722,11 +20755,11 @@ ol {
|
|
|
20722
20755
|
outline: 0 !important;
|
|
20723
20756
|
}
|
|
20724
20757
|
.outline-ring {
|
|
20725
|
-
outline: solid var(--su-static4) var(--
|
|
20758
|
+
outline: solid var(--su-static4) var(--translucent-secondary);
|
|
20726
20759
|
}
|
|
20727
20760
|
.f\:outline-ring:focus,
|
|
20728
20761
|
.f\:outline-ring:focus-within {
|
|
20729
|
-
outline: solid var(--su-static4) var(--
|
|
20762
|
+
outline: solid var(--su-static4) var(--translucent-secondary);
|
|
20730
20763
|
}
|
|
20731
20764
|
.fill-current {
|
|
20732
20765
|
fill: currentColor !important;
|