@geoffcox/sterling-svelte 1.0.11 → 1.0.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.
Files changed (65) hide show
  1. package/dist/Callout.svelte +14 -6
  2. package/dist/Dropdown.svelte +4 -1
  3. package/dist/css/Button.base.css +4 -24
  4. package/dist/css/Button.css +1 -0
  5. package/dist/css/Button.disabled.css +22 -0
  6. package/dist/css/Callout.base.css +12 -0
  7. package/dist/css/Checkbox.base.css +7 -31
  8. package/dist/css/Checkbox.css +1 -0
  9. package/dist/css/Checkbox.disabled.css +28 -0
  10. package/dist/css/Dropdown.base.css +4 -46
  11. package/dist/css/Dropdown.composed.css +11 -0
  12. package/dist/css/Dropdown.css +2 -0
  13. package/dist/css/Dropdown.disabled.css +32 -0
  14. package/dist/css/HexColorSliders.base.css +6 -25
  15. package/dist/css/HslColorSliders.base.css +7 -26
  16. package/dist/css/Input.base.css +0 -31
  17. package/dist/css/Input.composed.css +4 -0
  18. package/dist/css/Input.css +1 -0
  19. package/dist/css/Input.disabled.css +24 -0
  20. package/dist/css/Label.base.css +8 -12
  21. package/dist/css/Label.css +1 -0
  22. package/dist/css/Label.disabled.css +9 -0
  23. package/dist/css/Link.base.css +0 -11
  24. package/dist/css/Link.css +1 -0
  25. package/dist/css/Link.disabled.css +10 -0
  26. package/dist/css/List.base.css +4 -18
  27. package/dist/css/List.composed.css +8 -0
  28. package/dist/css/List.css +2 -0
  29. package/dist/css/List.disabled.css +7 -0
  30. package/dist/css/ListItem.base.css +4 -30
  31. package/dist/css/ListItem.css +1 -0
  32. package/dist/css/ListItem.disabled.css +28 -0
  33. package/dist/css/MenuItemDisplay.base.css +0 -29
  34. package/dist/css/MenuItemDisplay.css +1 -0
  35. package/dist/css/MenuItemDisplay.disabled.css +28 -0
  36. package/dist/css/Progress.base.css +8 -22
  37. package/dist/css/Progress.css +1 -0
  38. package/dist/css/Progress.disabled.css +17 -0
  39. package/dist/css/Radio.base.css +4 -30
  40. package/dist/css/Radio.css +1 -0
  41. package/dist/css/Radio.disabled.css +28 -0
  42. package/dist/css/Select.base.css +4 -30
  43. package/dist/css/Select.css +1 -0
  44. package/dist/css/Select.disabled.css +28 -0
  45. package/dist/css/Slider.base.css +0 -40
  46. package/dist/css/Slider.css +1 -0
  47. package/dist/css/Slider.disabled.css +30 -0
  48. package/dist/css/Switch.base.css +0 -31
  49. package/dist/css/Switch.css +1 -0
  50. package/dist/css/Switch.disabled.css +30 -0
  51. package/dist/css/Tab.base.css +4 -40
  52. package/dist/css/Tab.css +1 -0
  53. package/dist/css/Tab.disabled.css +36 -0
  54. package/dist/css/TextArea.base.css +8 -31
  55. package/dist/css/TextArea.composed.css +1 -1
  56. package/dist/css/TextArea.css +1 -0
  57. package/dist/css/TextArea.disabled.css +28 -0
  58. package/dist/css/Tree.base.css +4 -29
  59. package/dist/css/Tree.css +1 -0
  60. package/dist/css/Tree.disabled.css +27 -0
  61. package/dist/css/TreeItemDisplay.base.css +4 -30
  62. package/dist/css/TreeItemDisplay.css +2 -0
  63. package/dist/css/TreeItemDisplay.disabled.css +28 -0
  64. package/dist/package.json +1 -1
  65. package/package.json +1 -1
@@ -0,0 +1,7 @@
1
+ .sterling-list.disabled * {
2
+ cursor: not-allowed;
3
+ }
4
+
5
+ .sterling-list.disabled .container::after {
6
+ opacity: 1;
7
+ }
@@ -8,7 +8,10 @@
8
8
  position: relative;
9
9
  outline: none;
10
10
  text-overflow: ellipsis;
11
- transition: background-color 250ms, color 250ms, border-color 250ms;
11
+ transition:
12
+ background-color 250ms,
13
+ color 250ms,
14
+ border-color 250ms;
12
15
  white-space: nowrap;
13
16
  }
14
17
 
@@ -22,35 +25,6 @@
22
25
  color: var(--stsv-button__color--active);
23
26
  }
24
27
 
25
- .sterling-list-item.disabled {
26
- cursor: not-allowed;
27
- outline: none;
28
- }
29
-
30
- .sterling-list-item::after {
31
- background: repeating-linear-gradient(
32
- var(--stsv-common--disabled__stripe-angle),
33
- var(--stsv-common--disabled__stripe-color),
34
- var(--stsv-common--disabled__stripe-color) var(--stsv-common--disabled__stripe-width),
35
- var(--stsv-common--disabled__stripe-color--alt) var(--stsv-common--disabled__stripe-width),
36
- var(--stsv-common--disabled__stripe-color--alt)
37
- calc(2 * var(--stsv-common--disabled__stripe-width))
38
- );
39
- bottom: 0;
40
- content: '';
41
- left: 0;
42
- opacity: 0;
43
- position: absolute;
44
- right: 0;
45
- top: 0;
46
- pointer-events: none;
47
- transition: opacity 250ms;
48
- }
49
-
50
- .sterling-list-item.item-disabled:not(.list-disabled)::after {
51
- opacity: 1;
52
- }
53
-
54
28
  @media (prefers-reduced-motion) {
55
29
  .sterling-list-item,
56
30
  .sterling-list-item::after {
@@ -1 +1,2 @@
1
1
  @import url('./ListItem.base.css');
2
+ @import url('./ListItem.disabled.css');
@@ -0,0 +1,28 @@
1
+ .sterling-list-item.disabled {
2
+ cursor: not-allowed;
3
+ outline: none;
4
+ }
5
+
6
+ .sterling-list-item::after {
7
+ background: repeating-linear-gradient(
8
+ var(--stsv-common--disabled__stripe-angle),
9
+ var(--stsv-common--disabled__stripe-color),
10
+ var(--stsv-common--disabled__stripe-color) var(--stsv-common--disabled__stripe-width),
11
+ var(--stsv-common--disabled__stripe-color--alt) var(--stsv-common--disabled__stripe-width),
12
+ var(--stsv-common--disabled__stripe-color--alt)
13
+ calc(2 * var(--stsv-common--disabled__stripe-width))
14
+ );
15
+ bottom: 0;
16
+ content: '';
17
+ left: 0;
18
+ opacity: 0;
19
+ position: absolute;
20
+ right: 0;
21
+ top: 0;
22
+ pointer-events: none;
23
+ transition: opacity 250ms;
24
+ }
25
+
26
+ .sterling-list-item.item-disabled:not(.list-disabled)::after {
27
+ opacity: 1;
28
+ }
@@ -70,35 +70,6 @@
70
70
  transform: translate(-50%, -50%) rotate(45deg);
71
71
  }
72
72
 
73
- .sterling-menu-item-display.disabled {
74
- cursor: not-allowed;
75
- outline: none;
76
- }
77
-
78
- .sterling-menu-item-display::after {
79
- background: repeating-linear-gradient(
80
- var(--stsv-common--disabled__stripe-angle),
81
- var(--stsv-common--disabled__stripe-color),
82
- var(--stsv-common--disabled__stripe-color) var(--stsv-common--disabled__stripe-width),
83
- var(--stsv-common--disabled__stripe-color--alt) var(--stsv-common--disabled__stripe-width),
84
- var(--stsv-common--disabled__stripe-color--alt)
85
- calc(2 * var(--stsv-common--disabled__stripe-width))
86
- );
87
- bottom: 0;
88
- content: '';
89
- left: 0;
90
- opacity: 0;
91
- position: absolute;
92
- right: 0;
93
- top: 0;
94
- pointer-events: none;
95
- transition: opacity 250ms;
96
- }
97
-
98
- .sterling-menu-item-display.disabled::after {
99
- opacity: 1;
100
- }
101
-
102
73
  @media (prefers-reduced-motion) {
103
74
  .sterling-menu-item-display::after,
104
75
  .sterling-menu-item-display .check,
@@ -1 +1,2 @@
1
1
  @import url('./MenuItemDisplay.base.css');
2
+ @import url('./MenuItemDisplay.disabled.css');
@@ -0,0 +1,28 @@
1
+ .sterling-menu-item-display.disabled {
2
+ cursor: not-allowed;
3
+ outline: none;
4
+ }
5
+
6
+ .sterling-menu-item-display::after {
7
+ background: repeating-linear-gradient(
8
+ var(--stsv-common--disabled__stripe-angle),
9
+ var(--stsv-common--disabled__stripe-color),
10
+ var(--stsv-common--disabled__stripe-color) var(--stsv-common--disabled__stripe-width),
11
+ var(--stsv-common--disabled__stripe-color--alt) var(--stsv-common--disabled__stripe-width),
12
+ var(--stsv-common--disabled__stripe-color--alt)
13
+ calc(2 * var(--stsv-common--disabled__stripe-width))
14
+ );
15
+ bottom: 0;
16
+ content: '';
17
+ left: 0;
18
+ opacity: 0;
19
+ position: absolute;
20
+ right: 0;
21
+ top: 0;
22
+ pointer-events: none;
23
+ transition: opacity 250ms;
24
+ }
25
+
26
+ .sterling-menu-item-display.disabled::after {
27
+ opacity: 1;
28
+ }
@@ -11,7 +11,10 @@
11
11
  height: 1em;
12
12
  padding: 0.25em;
13
13
  position: relative;
14
- transition: background-color 250ms, color 250ms, border-color 250ms;
14
+ transition:
15
+ background-color 250ms,
16
+ color 250ms,
17
+ border-color 250ms;
15
18
  }
16
19
 
17
20
  .sterling-progress .container {
@@ -26,7 +29,10 @@
26
29
  box-sizing: border-box;
27
30
  height: 100%;
28
31
  min-height: 1px;
29
- transition: background-color 250ms, color 250ms, border-color 250ms;
32
+ transition:
33
+ background-color 250ms,
34
+ color 250ms,
35
+ border-color 250ms;
30
36
  }
31
37
 
32
38
  /* ----- vertical ----- */
@@ -69,26 +75,6 @@
69
75
  background-color: var(--stsv-status--danger__border-color);
70
76
  }
71
77
 
72
- /* ----- disabled ----- */
73
-
74
- .sterling-progress.disabled::after {
75
- content: '';
76
- position: absolute;
77
- left: 0;
78
- right: 0;
79
- top: 0;
80
- bottom: 0;
81
- background: repeating-linear-gradient(
82
- var(--stsv-common--disabled__stripe-angle),
83
- var(--stsv-common--disabled__stripe-color),
84
- var(--stsv-common--disabled__stripe-color) var(--stsv-common--disabled__stripe-width),
85
- var(--stsv-common--disabled__stripe-color--alt) var(--stsv-common--disabled__stripe-width),
86
- var(--stsv-common--disabled__stripe-color--alt)
87
- calc(2 * var(--stsv-common--disabled__stripe-width))
88
- );
89
- pointer-events: none;
90
- }
91
-
92
78
  /* ----- prefers-reduced-motion ----- */
93
79
 
94
80
  @media (prefers-reduced-motion) {
@@ -1 +1,2 @@
1
1
  @import url('./Progress.base.css');
2
+ @import url('./Progress.disabled.css');
@@ -0,0 +1,17 @@
1
+ .sterling-progress.disabled::after {
2
+ content: '';
3
+ position: absolute;
4
+ left: 0;
5
+ right: 0;
6
+ top: 0;
7
+ bottom: 0;
8
+ background: repeating-linear-gradient(
9
+ var(--stsv-common--disabled__stripe-angle),
10
+ var(--stsv-common--disabled__stripe-color),
11
+ var(--stsv-common--disabled__stripe-color) var(--stsv-common--disabled__stripe-width),
12
+ var(--stsv-common--disabled__stripe-color--alt) var(--stsv-common--disabled__stripe-width),
13
+ var(--stsv-common--disabled__stripe-color--alt)
14
+ calc(2 * var(--stsv-common--disabled__stripe-width))
15
+ );
16
+ pointer-events: none;
17
+ }
@@ -52,7 +52,10 @@
52
52
  height: 21px;
53
53
  position: relative;
54
54
  pointer-events: none;
55
- transition: background-color 250ms, color 250ms, border-color 250ms;
55
+ transition:
56
+ background-color 250ms,
57
+ color 250ms,
58
+ border-color 250ms;
56
59
  width: 21px;
57
60
  }
58
61
 
@@ -90,41 +93,12 @@
90
93
  background-color: var(--stsv-input__color);
91
94
  }
92
95
 
93
- .sterling-radio.disabled * {
94
- cursor: not-allowed;
95
- }
96
-
97
- .sterling-radio .container::after {
98
- background: repeating-linear-gradient(
99
- var(--stsv-common--disabled__stripe-angle),
100
- var(--stsv-common--disabled__stripe-color),
101
- var(--stsv-common--disabled__stripe-color) var(--stsv-common--disabled__stripe-width),
102
- var(--stsv-common--disabled__stripe-color--alt) var(--stsv-common--disabled__stripe-width),
103
- var(--stsv-common--disabled__stripe-color--alt)
104
- calc(2 * var(--stsv-common--disabled__stripe-width))
105
- );
106
- border-radius: 10000px;
107
- bottom: 0;
108
- content: '';
109
- left: 0;
110
- opacity: 0;
111
- position: absolute;
112
- right: 0;
113
- top: 0;
114
- pointer-events: none;
115
- transition: opacity 250ms;
116
- }
117
-
118
96
  .sterling-radio label {
119
97
  color: var(--stsv-common__color);
120
98
  transition: color 250ms;
121
99
  font: inherit;
122
100
  }
123
101
 
124
- .sterling-radio.disabled .container::after {
125
- opacity: 1;
126
- }
127
-
128
102
  @media (prefers-reduced-motion) {
129
103
  .sterling-radio .indicator,
130
104
  .sterling-radio .indicator::after,
@@ -1,2 +1,3 @@
1
1
  @import url('./Radio.base.css');
2
2
  @import url('./Radio.colorful.css');
3
+ @import url('./Radio.disabled.css');
@@ -0,0 +1,28 @@
1
+ .sterling-radio.disabled * {
2
+ cursor: not-allowed;
3
+ }
4
+
5
+ .sterling-radio .container::after {
6
+ background: repeating-linear-gradient(
7
+ var(--stsv-common--disabled__stripe-angle),
8
+ var(--stsv-common--disabled__stripe-color),
9
+ var(--stsv-common--disabled__stripe-color) var(--stsv-common--disabled__stripe-width),
10
+ var(--stsv-common--disabled__stripe-color--alt) var(--stsv-common--disabled__stripe-width),
11
+ var(--stsv-common--disabled__stripe-color--alt)
12
+ calc(2 * var(--stsv-common--disabled__stripe-width))
13
+ );
14
+ border-radius: 10000px;
15
+ bottom: 0;
16
+ content: '';
17
+ left: 0;
18
+ opacity: 0;
19
+ position: absolute;
20
+ right: 0;
21
+ top: 0;
22
+ pointer-events: none;
23
+ transition: opacity 250ms;
24
+ }
25
+
26
+ .sterling-radio.disabled .container::after {
27
+ opacity: 1;
28
+ }
@@ -14,7 +14,10 @@
14
14
  outline: none;
15
15
  padding: 0;
16
16
  position: relative;
17
- transition: background-color 250ms, color 250ms, border-color 250ms;
17
+ transition:
18
+ background-color 250ms,
19
+ color 250ms,
20
+ border-color 250ms;
18
21
  }
19
22
 
20
23
  .sterling-select:hover {
@@ -33,35 +36,6 @@
33
36
  outline-width: 2px;
34
37
  }
35
38
 
36
- .sterling-select.disabled {
37
- cursor: not-allowed;
38
- outline: none;
39
- }
40
-
41
- .sterling-select::after {
42
- background: repeating-linear-gradient(
43
- var(--stsv-common--disabled__stripe-angle),
44
- var(--stsv-common--disabled__stripe-color),
45
- var(--stsv-common--disabled__stripe-color) var(--stsv-common--disabled__stripe-width),
46
- var(--stsv-common--disabled__stripe-color--alt) var(--stsv-common--disabled__stripe-width),
47
- var(--stsv-common--disabled__stripe-color--alt)
48
- calc(2 * var(--stsv-common--disabled__stripe-width))
49
- );
50
- bottom: 0;
51
- content: '';
52
- left: 0;
53
- opacity: 0;
54
- position: absolute;
55
- right: 0;
56
- top: 0;
57
- pointer-events: none;
58
- transition: opacity 250ms;
59
- }
60
-
61
- .sterling-select.disabled::after {
62
- opacity: 1;
63
- }
64
-
65
39
  .sterling-select .value {
66
40
  padding: 0.5em;
67
41
  display: flex;
@@ -1,3 +1,4 @@
1
1
  @import url('./Select.base.css');
2
2
  @import url('./Select.colorful.css');
3
3
  @import url('./Select.composed.css');
4
+ @import url('./Select.disabled.css');
@@ -0,0 +1,28 @@
1
+ .sterling-select.disabled {
2
+ cursor: not-allowed;
3
+ outline: none;
4
+ }
5
+
6
+ .sterling-select::after {
7
+ background: repeating-linear-gradient(
8
+ var(--stsv-common--disabled__stripe-angle),
9
+ var(--stsv-common--disabled__stripe-color),
10
+ var(--stsv-common--disabled__stripe-color) var(--stsv-common--disabled__stripe-width),
11
+ var(--stsv-common--disabled__stripe-color--alt) var(--stsv-common--disabled__stripe-width),
12
+ var(--stsv-common--disabled__stripe-color--alt)
13
+ calc(2 * var(--stsv-common--disabled__stripe-width))
14
+ );
15
+ bottom: 0;
16
+ content: '';
17
+ left: 0;
18
+ opacity: 0;
19
+ position: absolute;
20
+ right: 0;
21
+ top: 0;
22
+ pointer-events: none;
23
+ transition: opacity 250ms;
24
+ }
25
+
26
+ .sterling-select.disabled::after {
27
+ opacity: 1;
28
+ }
@@ -19,15 +19,6 @@
19
19
  width: 2em;
20
20
  }
21
21
 
22
- .sterling-slider.composed,
23
- .sterling-slider.composed:hover,
24
- .sterling-slider.composed.focus,
25
- .sterling-slider.composed.disabled {
26
- background: none;
27
- border: none;
28
- outline: none;
29
- }
30
-
31
22
  /* ----- container ----- */
32
23
 
33
24
  .sterling-slider .container {
@@ -148,37 +139,6 @@
148
139
  color: var(--stsv-button__color--active);
149
140
  }
150
141
 
151
- /* ----- thumb disabled ----- */
152
-
153
- .sterling-slider.disabled .thumb {
154
- cursor: not-allowed;
155
- outline: none;
156
- }
157
-
158
- .sterling-slider .thumb::after {
159
- background: repeating-linear-gradient(
160
- var(--stsv-common--disabled__stripe-angle),
161
- var(--stsv-common--disabled__stripe-color),
162
- var(--stsv-common--disabled__stripe-color) var(--stsv-common--disabled__stripe-width),
163
- var(--stsv-common--disabled__stripe-color--alt) var(--stsv-common--disabled__stripe-width),
164
- var(--stsv-common--disabled__stripe-color--alt)
165
- calc(2 * var(--stsv-common--disabled__stripe-width))
166
- );
167
- bottom: 0;
168
- content: '';
169
- left: 0;
170
- opacity: 0;
171
- position: absolute;
172
- right: 0;
173
- top: 0;
174
- pointer-events: none;
175
- transition: opacity 250ms;
176
- }
177
-
178
- .sterling-slider.disabled .thumb::after {
179
- opacity: 1;
180
- }
181
-
182
142
  /* ----- reduced motion ----- */
183
143
 
184
144
  @media (prefers-reduced-motion) {
@@ -1,3 +1,4 @@
1
1
  @import url('./Slider.base.css');
2
2
  @import url('./Slider.colorful.css');
3
+ @import url('./Slider.disabled.css');
3
4
  @import url('./Slider.composed.css');
@@ -0,0 +1,30 @@
1
+ /* ----- thumb disabled ----- */
2
+
3
+ .sterling-slider.disabled .thumb {
4
+ cursor: not-allowed;
5
+ outline: none;
6
+ }
7
+
8
+ .sterling-slider .thumb::after {
9
+ background: repeating-linear-gradient(
10
+ var(--stsv-common--disabled__stripe-angle),
11
+ var(--stsv-common--disabled__stripe-color),
12
+ var(--stsv-common--disabled__stripe-color) var(--stsv-common--disabled__stripe-width),
13
+ var(--stsv-common--disabled__stripe-color--alt) var(--stsv-common--disabled__stripe-width),
14
+ var(--stsv-common--disabled__stripe-color--alt)
15
+ calc(2 * var(--stsv-common--disabled__stripe-width))
16
+ );
17
+ bottom: 0;
18
+ content: '';
19
+ left: 0;
20
+ opacity: 0;
21
+ position: absolute;
22
+ right: 0;
23
+ top: 0;
24
+ pointer-events: none;
25
+ transition: opacity 250ms;
26
+ }
27
+
28
+ .sterling-slider.disabled .thumb::after {
29
+ opacity: 1;
30
+ }
@@ -8,10 +8,6 @@
8
8
  cursor: pointer;
9
9
  }
10
10
 
11
- .sterling-switch.disabled input {
12
- cursor: not-allowed;
13
- }
14
-
15
11
  .sterling-switch:not(.vertical) {
16
12
  align-content: center;
17
13
  align-items: center;
@@ -155,33 +151,6 @@ input:checked:focus-visible ~ .switch {
155
151
  color: var(--stsv-button__color--hover);
156
152
  }
157
153
 
158
- /* ----- thumb disabled ----- */
159
-
160
- .sterling-switch .thumb::after {
161
- background: repeating-linear-gradient(
162
- var(--stsv-common--disabled__stripe-angle),
163
- var(--stsv-common--disabled__stripe-color),
164
- var(--stsv-common--disabled__stripe-color) var(--stsv-common--disabled__stripe-width),
165
- var(--stsv-common--disabled__stripe-color--alt) var(--stsv-common--disabled__stripe-width),
166
- var(--stsv-common--disabled__stripe-color--alt)
167
- calc(2 * var(--stsv-common--disabled__stripe-width))
168
- );
169
- bottom: 0;
170
- border-radius: 10000px;
171
- content: '';
172
- left: 0;
173
- opacity: 0;
174
- position: absolute;
175
- right: 0;
176
- top: 0;
177
- pointer-events: none;
178
- transition: opacity 250ms;
179
- }
180
-
181
- .sterling-switch.disabled .thumb::after {
182
- opacity: 1;
183
- }
184
-
185
154
  /* ----- thumb vertical ----- */
186
155
 
187
156
  .sterling-switch:not(.vertical) .thumb {
@@ -1,2 +1,3 @@
1
1
  @import url('./Switch.base.css');
2
2
  @import url('./Switch.colorful.css');
3
+ @import url('./Switch.disabled.css');
@@ -0,0 +1,30 @@
1
+ .sterling-switch.disabled input {
2
+ cursor: not-allowed;
3
+ }
4
+
5
+ /* ----- thumb disabled ----- */
6
+
7
+ .sterling-switch .thumb::after {
8
+ background: repeating-linear-gradient(
9
+ var(--stsv-common--disabled__stripe-angle),
10
+ var(--stsv-common--disabled__stripe-color),
11
+ var(--stsv-common--disabled__stripe-color) var(--stsv-common--disabled__stripe-width),
12
+ var(--stsv-common--disabled__stripe-color--alt) var(--stsv-common--disabled__stripe-width),
13
+ var(--stsv-common--disabled__stripe-color--alt)
14
+ calc(2 * var(--stsv-common--disabled__stripe-width))
15
+ );
16
+ bottom: 0;
17
+ border-radius: 10000px;
18
+ content: '';
19
+ left: 0;
20
+ opacity: 0;
21
+ position: absolute;
22
+ right: 0;
23
+ top: 0;
24
+ pointer-events: none;
25
+ transition: opacity 250ms;
26
+ }
27
+
28
+ .sterling-switch.disabled .thumb::after {
29
+ opacity: 1;
30
+ }
@@ -16,7 +16,10 @@
16
16
  position: relative;
17
17
  text-decoration: none;
18
18
  text-overflow: ellipsis;
19
- transition: background-color 250ms, color 250ms, border-color 250ms;
19
+ transition:
20
+ background-color 250ms,
21
+ color 250ms,
22
+ border-color 250ms;
20
23
  white-space: nowrap;
21
24
  }
22
25
 
@@ -46,37 +49,6 @@
46
49
  outline-width: 2px;
47
50
  }
48
51
 
49
- /* ----- disabled -----*/
50
-
51
- .sterling-tab:disabled {
52
- cursor: not-allowed;
53
- outline: none;
54
- }
55
-
56
- .sterling-tab::after {
57
- background: repeating-linear-gradient(
58
- var(--stsv-common--disabled__stripe-angle),
59
- var(--stsv-common--disabled__stripe-color),
60
- var(--stsv-common--disabled__stripe-color) var(--stsv-common--disabled__stripe-width),
61
- var(--stsv-common--disabled__stripe-color--alt) var(--stsv-common--disabled__stripe-width),
62
- var(--stsv-common--disabled__stripe-color--alt)
63
- calc(2 * var(--stsv-common--disabled__stripe-width))
64
- );
65
- bottom: 0;
66
- content: '';
67
- left: 0;
68
- opacity: 0;
69
- position: absolute;
70
- right: 0;
71
- top: 0;
72
- pointer-events: none;
73
- transition: opacity 250ms;
74
- }
75
-
76
- .sterling-tab:disabled::after {
77
- opacity: 1;
78
- }
79
-
80
52
  /* ----- content -----*/
81
53
 
82
54
  .sterling-tab .content {
@@ -113,14 +85,6 @@
113
85
  background-color: var(--stsv-input__border-color--selected);
114
86
  }
115
87
 
116
- /* ----- indicator disabled -----*/
117
-
118
- .sterling-tab:disabled:not(.selected) .indicator,
119
- .sterling-tab:disabled:not(.selected):hover .indicator,
120
- .sterling-tab:disabled:not(.selected):active .indicator {
121
- background-color: transparent;
122
- }
123
-
124
88
  /* ----- reduced motion -----*/
125
89
 
126
90
  @media (prefers-reduced-motion) {
package/dist/css/Tab.css CHANGED
@@ -1,2 +1,3 @@
1
1
  @import url('./Tab.base.css');
2
2
  @import url('./Tab.colorful.css');
3
+ @import url('./Tab.disabled.css');
@@ -0,0 +1,36 @@
1
+ .sterling-tab:disabled {
2
+ cursor: not-allowed;
3
+ outline: none;
4
+ }
5
+
6
+ .sterling-tab::after {
7
+ background: repeating-linear-gradient(
8
+ var(--stsv-common--disabled__stripe-angle),
9
+ var(--stsv-common--disabled__stripe-color),
10
+ var(--stsv-common--disabled__stripe-color) var(--stsv-common--disabled__stripe-width),
11
+ var(--stsv-common--disabled__stripe-color--alt) var(--stsv-common--disabled__stripe-width),
12
+ var(--stsv-common--disabled__stripe-color--alt)
13
+ calc(2 * var(--stsv-common--disabled__stripe-width))
14
+ );
15
+ bottom: 0;
16
+ content: '';
17
+ left: 0;
18
+ opacity: 0;
19
+ position: absolute;
20
+ right: 0;
21
+ top: 0;
22
+ pointer-events: none;
23
+ transition: opacity 250ms;
24
+ }
25
+
26
+ .sterling-tab:disabled::after {
27
+ opacity: 1;
28
+ }
29
+
30
+ /* ----- indicator disabled -----*/
31
+
32
+ .sterling-tab:disabled:not(.selected) .indicator,
33
+ .sterling-tab:disabled:not(.selected):hover .indicator,
34
+ .sterling-tab:disabled:not(.selected):active .indicator {
35
+ background-color: transparent;
36
+ }