@stackoverflow/stacks 2.7.3 → 2.7.5

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.
Files changed (85) hide show
  1. package/LICENSE.MD +9 -9
  2. package/README.md +158 -180
  3. package/dist/css/stacks.css +20 -13
  4. package/dist/css/stacks.min.css +1 -1
  5. package/dist/js/stacks.min.js +1 -1
  6. package/lib/atomic/border.less +139 -139
  7. package/lib/atomic/color.less +36 -36
  8. package/lib/atomic/flex.less +426 -426
  9. package/lib/atomic/gap.less +44 -44
  10. package/lib/atomic/grid.less +139 -139
  11. package/lib/atomic/misc.less +374 -374
  12. package/lib/atomic/spacing.less +98 -98
  13. package/lib/atomic/typography.less +266 -264
  14. package/lib/atomic/width-height.less +194 -194
  15. package/lib/base/body.less +44 -44
  16. package/lib/base/configuration-static.less +61 -61
  17. package/lib/base/fieldset.less +5 -5
  18. package/lib/base/icon.less +11 -11
  19. package/lib/base/internal.less +220 -220
  20. package/lib/base/reset-meyer.less +64 -64
  21. package/lib/base/reset-normalize.less +449 -449
  22. package/lib/base/reset.less +20 -20
  23. package/lib/components/activity-indicator/activity-indicator.less +53 -53
  24. package/lib/components/avatar/avatar.less +108 -108
  25. package/lib/components/award-bling/award-bling.less +31 -31
  26. package/lib/components/banner/banner.less +44 -44
  27. package/lib/components/banner/banner.ts +149 -149
  28. package/lib/components/block-link/block-link.less +82 -82
  29. package/lib/components/breadcrumbs/breadcrumbs.less +41 -41
  30. package/lib/components/button-group/button-group.less +82 -82
  31. package/lib/components/card/card.less +37 -37
  32. package/lib/components/check-control/check-control.less +17 -17
  33. package/lib/components/check-group/check-group.less +19 -19
  34. package/lib/components/checkbox_radio/checkbox_radio.less +159 -159
  35. package/lib/components/code-block/code-block.fixtures.ts +88 -88
  36. package/lib/components/code-block/code-block.less +116 -116
  37. package/lib/components/description/description.less +9 -9
  38. package/lib/components/empty-state/empty-state.less +16 -16
  39. package/lib/components/expandable/expandable.less +118 -118
  40. package/lib/components/input-fill/input-fill.less +35 -35
  41. package/lib/components/input-icon/input-icon.less +45 -45
  42. package/lib/components/input-message/input-message.less +49 -49
  43. package/lib/components/input_textarea/input_textarea.less +2 -7
  44. package/lib/components/label/label.less +116 -110
  45. package/lib/components/link-preview/link-preview.less +148 -148
  46. package/lib/components/menu/menu.less +41 -41
  47. package/lib/components/modal/modal.less +118 -118
  48. package/lib/components/modal/modal.ts +383 -383
  49. package/lib/components/navigation/navigation.less +136 -136
  50. package/lib/components/navigation/navigation.ts +128 -128
  51. package/lib/components/page-title/page-title.less +51 -51
  52. package/lib/components/popover/popover.less +159 -159
  53. package/lib/components/popover/popover.ts +651 -651
  54. package/lib/components/post-summary/post-summary.less +457 -457
  55. package/lib/components/progress-bar/progress-bar.less +291 -291
  56. package/lib/components/prose/prose.less +452 -452
  57. package/lib/components/select/select.less +138 -138
  58. package/lib/components/spinner/spinner.less +103 -103
  59. package/lib/components/table/table.ts +296 -296
  60. package/lib/components/table-container/table-container.less +4 -4
  61. package/lib/components/tag/tag.less +186 -186
  62. package/lib/components/toast/toast.less +35 -35
  63. package/lib/components/toast/toast.ts +357 -357
  64. package/lib/components/toggle-switch/toggle-switch.less +104 -104
  65. package/lib/components/topbar/topbar.less +553 -553
  66. package/lib/components/uploader/uploader.less +205 -205
  67. package/lib/components/user-card/user-card.less +129 -129
  68. package/lib/controllers.ts +33 -33
  69. package/lib/exports/color-mixins.less +283 -283
  70. package/lib/exports/constants-helpers.less +108 -108
  71. package/lib/exports/constants-type.less +155 -155
  72. package/lib/exports/exports.less +15 -15
  73. package/lib/exports/mixins.less +334 -333
  74. package/lib/exports/spacing-mixins.less +67 -67
  75. package/lib/index.ts +32 -32
  76. package/lib/input-utils.less +41 -41
  77. package/lib/stacks-dynamic.less +24 -24
  78. package/lib/stacks-static.less +93 -93
  79. package/lib/stacks.less +13 -13
  80. package/lib/test/assertions.ts +36 -36
  81. package/lib/test/less-test-utils.ts +28 -28
  82. package/lib/test/open-wc-testing-patch.d.ts +26 -26
  83. package/lib/tsconfig.build.json +4 -4
  84. package/lib/tsconfig.json +17 -17
  85. package/package.json +27 -23
@@ -1,119 +1,119 @@
1
- .s-expandable { // [1]
2
- // COMPONENT-SPECIFIC CONSTANTS
3
- @ex-clip-path: polygon(-1000000px -1000000px, 1000000px -1000000px, 1000000px 1000000px, -1000000px 1000000px);
4
- @ex-min-expected-height: 10px;
5
- @ex-transition-duration: 100ms;
6
- // COMPONENT-SPECIFIC CUSTOM PROPERTIES
7
- --_ex-after-h: 10px;
8
- --_ex-after-hmx: 0;
9
- --_ex-after-transition:
10
- height @ex-transition-duration linear,
11
- max-height 0s @ex-transition-duration linear;
12
- --_ex-content-hmx: 1000000px;
13
- --_ex-content-mb: 0;
14
- --_ex-content-o: unset;
15
- --_ex-content-transform: unset;
16
- --_ex-content-transition:
17
- margin-bottom @ex-transition-duration cubic-bezier(0, 0, 0, 1),
18
- transform @ex-transition-duration cubic-bezier(1, 0, 1, 1),
19
- opacity @ex-transition-duration cubic-bezier(1, 0, 1, 1);
20
- --_ex-content-v: unset;
21
-
22
- &:not(.is-expanded) {
23
- --_ex-after-h: 0;
24
- --_ex-after-hmx: @ex-min-expected-height;
25
- --_ex-after-transition: height @ex-min-expected-height linear;
26
- --_ex-content-hmx: 0;
27
- --_ex-content-mb: -1500px;
28
- --_ex-content-o: 0;
29
- --_ex-content-transform: scaleY(0);
30
- --_ex-content-transition:
31
- margin-bottom @ex-transition-duration cubic-bezier(1, 0, 1, 1),
32
- visibility 0s @ex-transition-duration,
33
- max-height 0s @ex-transition-duration,
34
- transform @ex-transition-duration cubic-bezier(0, 1, 1, 1),
35
- opacity @ex-transition-duration cubic-bezier(0, 1, 1, 1);
36
- --_ex-content-v: hidden;
37
-
38
- & .s-expandable--content {
39
- @supports ((-webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)) or (clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%))) {
40
- --_ex-content-o: 0;
41
- --_ex-content-transform: none;
42
- }
43
- }
44
-
45
- -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
46
- clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
47
- overflow: hidden;
48
- transition: none;
49
- }
50
-
51
- &:after {
52
- height: var(--_ex-after-h);
53
- max-height: var(--_ex-after-hmx);
54
- transition: var(--_ex-after-transition);
55
-
56
- -ms-flex-preferred-size: 0;
57
- content: '';
58
- flex-basis: 0;
59
- }
60
-
61
- & &--content {
62
- max-height: var(--_ex-content-hmx);
63
- margin-bottom: var(--_ex-content-mb);
64
- opacity: var(--_ex-content-o);
65
- -webkit-transform: var(--_ex-content-transform);
66
- transform: var(--_ex-content-transform);
67
- visibility: var(--_ex-content-v);
68
-
69
- -ms-flex-preferred-size: 100%;
70
- flex-basis: 100%;
71
- -webkit-transform-origin: 0 0;
72
- transform-origin: 0 0;
73
- transition: var(--_ex-content-transition);
74
- }
75
-
76
- align-items: flex-start; // see comment above
77
- display: flex;
78
- -webkit-clip-path: @ex-clip-path;
79
- clip-path: @ex-clip-path;
80
- transition: clip-path 0s var(--_ex-transition-duration), -webkit-clip-path 0s var(--_ex-transition-duration);
81
- }
82
-
83
- // [1] see http://stackoverflow.com/a/43965099 for how this works:
84
-
85
- // Notes on the clip-path stuff: What we would really like is overflow: hidden during the transition,
86
- // but not when the element is expanded. Unfortunately, although the CSS spec provides for it, there's
87
- // no browser support yet for transitioning non-interpolatable properties, and therefore we cannot say
88
- // "change overflow to visible *after* the transition".
89
- //
90
- // So we use clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%), which is essentially the same
91
- // as overflow: hidden, but unlike overflow, clip-path is interpolatable -- but only if the opposite state
92
- // is also a polygon, and has the same vertice count. So our version of overflow: visible is a rectangle
93
- // of 2x2 million pixels, which should be enough for everybody (TM).
94
- //
95
- // At the time of writing, clip-path works in Chrome, Firefox Beta, and Safari (with vendor prefix).
96
- //
97
- // In browsers that do not support this yet, we have to have another way to prevent the expandable content
98
- // from being visible below the bottom edge during the transition, and the best I could come up with is
99
- // transitioning to scaleY(0) with a timing function that's faster than the height-reducing transitions.
100
- // This does kinda look like a deliberate effect, even more so if we also transition to transparency
101
- // (which we therefore do), so I feel it's an okay fallback.
102
- //
103
- // We still set overflow to hidden in the collapsed state (which also applies to the collapsing transition),
104
- // we just can't do that for the expanding transition.
105
- //
106
- // A major drawback of clip-path is that even though the content is clipped (not visible), it will still
107
- // contribute to the document height. This caused a jumping around of the scrollbar (and possibly even
108
- // of the viewport) when the expandable was at the bottom of the page, because once the negative bottom
109
- // margin of the -expandable-group exceeds the actual height, any additional pixels were added on to the
110
- // bottom. The fix is to set the -expandable-group's flex alignment to flex-start, which forces the
111
- // (no longer visible) element itself to remain at the top, thereby forcing the excess pixels to be added
112
- // above the top, not below the bottom. And because extending content above the document top will not do
113
- // anything to the document height, there is no jumping during the transition.
114
- // see "@ex-transition-duration"
115
-
116
- // Per the answer referenced above, the component can only guarantee smooth transitions if above a minimum
117
- // height and can only guarantee the element will be hidden is below a maximimum height.
118
- // The minimum height has been set at 10px because that's below the height of a single line of text in an s-description.
1
+ .s-expandable { // [1]
2
+ // COMPONENT-SPECIFIC CONSTANTS
3
+ @ex-clip-path: polygon(-1000000px -1000000px, 1000000px -1000000px, 1000000px 1000000px, -1000000px 1000000px);
4
+ @ex-min-expected-height: 10px;
5
+ @ex-transition-duration: 100ms;
6
+ // COMPONENT-SPECIFIC CUSTOM PROPERTIES
7
+ --_ex-after-h: 10px;
8
+ --_ex-after-hmx: 0;
9
+ --_ex-after-transition:
10
+ height @ex-transition-duration linear,
11
+ max-height 0s @ex-transition-duration linear;
12
+ --_ex-content-hmx: 1000000px;
13
+ --_ex-content-mb: 0;
14
+ --_ex-content-o: unset;
15
+ --_ex-content-transform: unset;
16
+ --_ex-content-transition:
17
+ margin-bottom @ex-transition-duration cubic-bezier(0, 0, 0, 1),
18
+ transform @ex-transition-duration cubic-bezier(1, 0, 1, 1),
19
+ opacity @ex-transition-duration cubic-bezier(1, 0, 1, 1);
20
+ --_ex-content-v: unset;
21
+
22
+ &:not(.is-expanded) {
23
+ --_ex-after-h: 0;
24
+ --_ex-after-hmx: @ex-min-expected-height;
25
+ --_ex-after-transition: height @ex-min-expected-height linear;
26
+ --_ex-content-hmx: 0;
27
+ --_ex-content-mb: -1500px;
28
+ --_ex-content-o: 0;
29
+ --_ex-content-transform: scaleY(0);
30
+ --_ex-content-transition:
31
+ margin-bottom @ex-transition-duration cubic-bezier(1, 0, 1, 1),
32
+ visibility 0s @ex-transition-duration,
33
+ max-height 0s @ex-transition-duration,
34
+ transform @ex-transition-duration cubic-bezier(0, 1, 1, 1),
35
+ opacity @ex-transition-duration cubic-bezier(0, 1, 1, 1);
36
+ --_ex-content-v: hidden;
37
+
38
+ & .s-expandable--content {
39
+ @supports ((-webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)) or (clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%))) {
40
+ --_ex-content-o: 0;
41
+ --_ex-content-transform: none;
42
+ }
43
+ }
44
+
45
+ -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
46
+ clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
47
+ overflow: hidden;
48
+ transition: none;
49
+ }
50
+
51
+ &:after {
52
+ height: var(--_ex-after-h);
53
+ max-height: var(--_ex-after-hmx);
54
+ transition: var(--_ex-after-transition);
55
+
56
+ -ms-flex-preferred-size: 0;
57
+ content: '';
58
+ flex-basis: 0;
59
+ }
60
+
61
+ & &--content {
62
+ max-height: var(--_ex-content-hmx);
63
+ margin-bottom: var(--_ex-content-mb);
64
+ opacity: var(--_ex-content-o);
65
+ -webkit-transform: var(--_ex-content-transform);
66
+ transform: var(--_ex-content-transform);
67
+ visibility: var(--_ex-content-v);
68
+
69
+ -ms-flex-preferred-size: 100%;
70
+ flex-basis: 100%;
71
+ -webkit-transform-origin: 0 0;
72
+ transform-origin: 0 0;
73
+ transition: var(--_ex-content-transition);
74
+ }
75
+
76
+ align-items: flex-start; // see comment above
77
+ display: flex;
78
+ -webkit-clip-path: @ex-clip-path;
79
+ clip-path: @ex-clip-path;
80
+ transition: clip-path 0s var(--_ex-transition-duration), -webkit-clip-path 0s var(--_ex-transition-duration);
81
+ }
82
+
83
+ // [1] see http://stackoverflow.com/a/43965099 for how this works:
84
+
85
+ // Notes on the clip-path stuff: What we would really like is overflow: hidden during the transition,
86
+ // but not when the element is expanded. Unfortunately, although the CSS spec provides for it, there's
87
+ // no browser support yet for transitioning non-interpolatable properties, and therefore we cannot say
88
+ // "change overflow to visible *after* the transition".
89
+ //
90
+ // So we use clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%), which is essentially the same
91
+ // as overflow: hidden, but unlike overflow, clip-path is interpolatable -- but only if the opposite state
92
+ // is also a polygon, and has the same vertice count. So our version of overflow: visible is a rectangle
93
+ // of 2x2 million pixels, which should be enough for everybody (TM).
94
+ //
95
+ // At the time of writing, clip-path works in Chrome, Firefox Beta, and Safari (with vendor prefix).
96
+ //
97
+ // In browsers that do not support this yet, we have to have another way to prevent the expandable content
98
+ // from being visible below the bottom edge during the transition, and the best I could come up with is
99
+ // transitioning to scaleY(0) with a timing function that's faster than the height-reducing transitions.
100
+ // This does kinda look like a deliberate effect, even more so if we also transition to transparency
101
+ // (which we therefore do), so I feel it's an okay fallback.
102
+ //
103
+ // We still set overflow to hidden in the collapsed state (which also applies to the collapsing transition),
104
+ // we just can't do that for the expanding transition.
105
+ //
106
+ // A major drawback of clip-path is that even though the content is clipped (not visible), it will still
107
+ // contribute to the document height. This caused a jumping around of the scrollbar (and possibly even
108
+ // of the viewport) when the expandable was at the bottom of the page, because once the negative bottom
109
+ // margin of the -expandable-group exceeds the actual height, any additional pixels were added on to the
110
+ // bottom. The fix is to set the -expandable-group's flex alignment to flex-start, which forces the
111
+ // (no longer visible) element itself to remain at the top, thereby forcing the excess pixels to be added
112
+ // above the top, not below the bottom. And because extending content above the document top will not do
113
+ // anything to the document height, there is no jumping during the transition.
114
+ // see "@ex-transition-duration"
115
+
116
+ // Per the answer referenced above, the component can only guarantee smooth transitions if above a minimum
117
+ // height and can only guarantee the element will be hidden is below a maximimum height.
118
+ // The minimum height has been set at 10px because that's below the height of a single line of text in an s-description.
119
119
  // see "@ex-min-expected-height" and "--_ex-content-mb"
@@ -1,35 +1,35 @@
1
- .s-input-fill {
2
- --_if-bc: var(--bc-dark);
3
- --_if-bg: var(--black-150);
4
- --_if-blw: 0;
5
- --_if-blr: 0;
6
- --_if-brr: 0;
7
- --_if-brw: 0;
8
-
9
- &&__clear {
10
- --_if-bc: transparent;
11
- --_if-bg: transparent;
12
- }
13
-
14
- &.order-first {
15
- --_if-blw: var(--su-static1);
16
- --_if-blr: var(--br-md);
17
- }
18
-
19
- &.order-last {
20
- --_if-brw: var(--su-static1);
21
- --_if-brr: var(--br-md);
22
- }
23
-
24
- background-color: var(--_if-bg);
25
- border: var(--su-static1) solid var(--_if-bc);
26
- border-left-width: var(--_if-blw);
27
- border-right-width: var(--_if-brw);
28
- border-radius: var(--_if-blr) var(--_if-brr) var(--_if-brr) var(--_if-blr);
29
-
30
- color: var(--fc-medium);
31
- font-family: inherit;
32
- line-height: var(--lh-sm);
33
- padding: 0.6em 0.7em;
34
- white-space: nowrap;
35
- }
1
+ .s-input-fill {
2
+ --_if-bc: var(--bc-dark);
3
+ --_if-bg: var(--black-150);
4
+ --_if-blw: 0;
5
+ --_if-blr: 0;
6
+ --_if-brr: 0;
7
+ --_if-brw: 0;
8
+
9
+ &&__clear {
10
+ --_if-bc: transparent;
11
+ --_if-bg: transparent;
12
+ }
13
+
14
+ &.order-first {
15
+ --_if-blw: var(--su-static1);
16
+ --_if-blr: var(--br-md);
17
+ }
18
+
19
+ &.order-last {
20
+ --_if-brw: var(--su-static1);
21
+ --_if-brr: var(--br-md);
22
+ }
23
+
24
+ background-color: var(--_if-bg);
25
+ border: var(--su-static1) solid var(--_if-bc);
26
+ border-left-width: var(--_if-blw);
27
+ border-right-width: var(--_if-brw);
28
+ border-radius: var(--_if-blr) var(--_if-brr) var(--_if-brr) var(--_if-blr);
29
+
30
+ color: var(--fc-medium);
31
+ font-family: inherit;
32
+ line-height: var(--lh-sm);
33
+ padding: 0.6em 0.7em;
34
+ white-space: nowrap;
35
+ }
@@ -1,45 +1,45 @@
1
- .s-input-icon {
2
- --_ii-fc: unset;
3
- --_ii-r: 0.7em;
4
-
5
- // MODIFIERS
6
- .has-error & {
7
- --_ii-fc: var(--red-400);
8
- }
9
-
10
- .has-success & {
11
- --_ii-fc: var(--green-400);
12
- }
13
-
14
- .has-warning & {
15
- --_ii-fc: var(--yellow-400);
16
- }
17
-
18
- .is-disabled & {
19
- --_ii-fc: var(--black-400);
20
- }
21
-
22
- .is-readonly & {
23
- --_ii-fc: var(--black-300);
24
-
25
- .highcontrast-mode({
26
- --_ii-fc: var(--fc-light);
27
- });
28
- }
29
-
30
- &&__creditcard,
31
- &&__search {
32
- --_ii-r: auto;
33
-
34
- color: var(--black-400);
35
- left: 0.7em;
36
- }
37
-
38
- color: var(--_ii-fc);
39
- right: var(--_ii-r);
40
-
41
- margin-top: calc((var(--su-static8) + var(--su-static1)) * -1); // -9px - Half the icon's height at 18px for centering;
42
- pointer-events: none;
43
- position: absolute;
44
- top: 50%;
45
- }
1
+ .s-input-icon {
2
+ --_ii-fc: unset;
3
+ --_ii-r: 0.7em;
4
+
5
+ // MODIFIERS
6
+ .has-error & {
7
+ --_ii-fc: var(--red-400);
8
+ }
9
+
10
+ .has-success & {
11
+ --_ii-fc: var(--green-400);
12
+ }
13
+
14
+ .has-warning & {
15
+ --_ii-fc: var(--yellow-400);
16
+ }
17
+
18
+ .is-disabled & {
19
+ --_ii-fc: var(--black-400);
20
+ }
21
+
22
+ .is-readonly & {
23
+ --_ii-fc: var(--black-300);
24
+
25
+ .highcontrast-mode({
26
+ --_ii-fc: var(--fc-light);
27
+ });
28
+ }
29
+
30
+ &&__creditcard,
31
+ &&__search {
32
+ --_ii-r: auto;
33
+
34
+ color: var(--black-400);
35
+ left: 0.7em;
36
+ }
37
+
38
+ color: var(--_ii-fc);
39
+ right: var(--_ii-r);
40
+
41
+ margin-top: calc((var(--su-static8) + var(--su-static1)) * -1); // -9px - Half the icon's height at 18px for centering;
42
+ pointer-events: none;
43
+ position: absolute;
44
+ top: 50%;
45
+ }
@@ -1,49 +1,49 @@
1
- .s-input-message {
2
- --_im-fc: unset;
3
- --_im-a-fc: unset;
4
- --_im-a-fc-hover: unset;
5
-
6
- .input-states({
7
- a {
8
- text-decoration: underline;
9
- }
10
- });
11
-
12
- fieldset[disabled] & {
13
- cursor: not-allowed;
14
- opacity: var(--_o-disabled-static);
15
- }
16
-
17
- // MODIFIERS
18
- .has-error & {
19
- --_im-fc: var(--red-400);
20
- --_im-a-fc: var(--red-600);
21
- --_im-a-fc-hover: var(--red-500);
22
- }
23
-
24
- .has-success & {
25
- --_im-fc: var(--green-400);
26
- --_im-a-fc: var(--green-600);
27
- --_im-a-fc-hover: var(--green-500);
28
- }
29
-
30
- .has-warning & {
31
- --_im-fc: var(--yellow-500);
32
- --_im-a-fc: var(--yellow-600);
33
- --_im-a-fc-hover: var(--yellow-500);
34
- }
35
-
36
- // CHILD ELEMENTS
37
- a {
38
- &:hover {
39
- color: var(--_im-a-fc-hover) !important;
40
- }
41
-
42
- color: var(--_im-a-fc) !important;
43
- }
44
-
45
- color: var(--_im-fc);
46
-
47
- font-size: var(--fs-caption);
48
- padding: var(--su2);
49
- }
1
+ .s-input-message {
2
+ --_im-fc: unset;
3
+ --_im-a-fc: unset;
4
+ --_im-a-fc-hover: unset;
5
+
6
+ .input-states({
7
+ a {
8
+ text-decoration: underline;
9
+ }
10
+ });
11
+
12
+ fieldset[disabled] & {
13
+ cursor: not-allowed;
14
+ opacity: var(--_o-disabled-static);
15
+ }
16
+
17
+ // MODIFIERS
18
+ .has-error & {
19
+ --_im-fc: var(--red-400);
20
+ --_im-a-fc: var(--red-600);
21
+ --_im-a-fc-hover: var(--red-500);
22
+ }
23
+
24
+ .has-success & {
25
+ --_im-fc: var(--green-400);
26
+ --_im-a-fc: var(--green-600);
27
+ --_im-a-fc-hover: var(--green-500);
28
+ }
29
+
30
+ .has-warning & {
31
+ --_im-fc: var(--yellow-500);
32
+ --_im-a-fc: var(--yellow-600);
33
+ --_im-a-fc-hover: var(--yellow-500);
34
+ }
35
+
36
+ // CHILD ELEMENTS
37
+ a {
38
+ &:hover {
39
+ color: var(--_im-a-fc-hover) !important;
40
+ }
41
+
42
+ color: var(--_im-a-fc) !important;
43
+ }
44
+
45
+ color: var(--_im-fc);
46
+
47
+ font-size: var(--fs-caption);
48
+ padding: var(--su2);
49
+ }
@@ -28,15 +28,9 @@
28
28
  });
29
29
 
30
30
  // MODIFIERS
31
- fieldset[disabled] &,
32
- &[disabled],
33
- &[readonly],
34
- .is-readonly & {
35
- --_in-c: not-allowed;
36
- }
37
-
38
31
  fieldset[disabled] &,
39
32
  &[disabled] {
33
+ --_in-c: not-allowed;
40
34
  --_in-o: var(--_o-disabled-static);
41
35
  }
42
36
 
@@ -48,6 +42,7 @@
48
42
 
49
43
  --_in-bg: var(--black-150);
50
44
  --_in-bc: var(--bc-light);
45
+ --_in-c: default;
51
46
  --_in-fc: var(--black-400);
52
47
  }
53
48