@geoffcox/sterling-svelte 1.0.10 → 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 (83) hide show
  1. package/dist/Callout.svelte +15 -7
  2. package/dist/ColorPicker.svelte +27 -10
  3. package/dist/ColorPicker.svelte.d.ts +2 -0
  4. package/dist/Dialog.svelte +8 -11
  5. package/dist/Dropdown.svelte +4 -1
  6. package/dist/HslColorSliders.svelte +3 -3
  7. package/dist/List.svelte +0 -1
  8. package/dist/MenuButton.svelte +4 -12
  9. package/dist/MenuButton.svelte.d.ts +2 -2
  10. package/dist/MenuItem.types.d.ts +1 -1
  11. package/dist/Popover.svelte +1 -1
  12. package/dist/TextArea.svelte +20 -2
  13. package/dist/Tooltip.svelte +1 -1
  14. package/dist/css/Button.base.css +4 -24
  15. package/dist/css/Button.css +1 -0
  16. package/dist/css/Button.disabled.css +22 -0
  17. package/dist/css/Callout.base.css +12 -0
  18. package/dist/css/Checkbox.base.css +7 -31
  19. package/dist/css/Checkbox.css +1 -0
  20. package/dist/css/Checkbox.disabled.css +28 -0
  21. package/dist/css/Dropdown.base.css +4 -46
  22. package/dist/css/Dropdown.composed.css +11 -0
  23. package/dist/css/Dropdown.css +2 -0
  24. package/dist/css/Dropdown.disabled.css +32 -0
  25. package/dist/css/HexColorSliders.base.css +6 -25
  26. package/dist/css/HslColorSliders.base.css +7 -26
  27. package/dist/css/Input.base.css +4 -32
  28. package/dist/css/Input.composed.css +4 -0
  29. package/dist/css/Input.css +1 -0
  30. package/dist/css/Input.disabled.css +24 -0
  31. package/dist/css/Label.base.css +8 -12
  32. package/dist/css/Label.css +1 -0
  33. package/dist/css/Label.disabled.css +9 -0
  34. package/dist/css/Link.base.css +5 -14
  35. package/dist/css/Link.css +5 -0
  36. package/dist/css/Link.disabled.css +10 -0
  37. package/dist/css/Link.text-underline.css +8 -0
  38. package/dist/css/Link.text-underline.ghost.css +13 -0
  39. package/dist/css/Link.undecorated.colorful.css +2 -0
  40. package/dist/css/Link.undecorated.css +2 -0
  41. package/dist/css/Link.undecorated.ghost.css +8 -0
  42. package/dist/css/Link.undecorated.underline.css +8 -0
  43. package/dist/css/List.base.css +4 -18
  44. package/dist/css/List.composed.css +8 -0
  45. package/dist/css/List.css +2 -0
  46. package/dist/css/List.disabled.css +7 -0
  47. package/dist/css/ListItem.base.css +4 -30
  48. package/dist/css/ListItem.css +1 -0
  49. package/dist/css/ListItem.disabled.css +28 -0
  50. package/dist/css/MenuItemDisplay.base.css +5 -30
  51. package/dist/css/MenuItemDisplay.css +1 -0
  52. package/dist/css/MenuItemDisplay.disabled.css +28 -0
  53. package/dist/css/Progress.base.css +8 -22
  54. package/dist/css/Progress.css +1 -0
  55. package/dist/css/Progress.disabled.css +17 -0
  56. package/dist/css/Radio.base.css +4 -30
  57. package/dist/css/Radio.css +1 -0
  58. package/dist/css/Radio.disabled.css +28 -0
  59. package/dist/css/Select.base.css +4 -30
  60. package/dist/css/Select.css +1 -0
  61. package/dist/css/Select.disabled.css +28 -0
  62. package/dist/css/Slider.base.css +16 -46
  63. package/dist/css/Slider.css +1 -0
  64. package/dist/css/Slider.disabled.css +30 -0
  65. package/dist/css/Switch.base.css +15 -33
  66. package/dist/css/Switch.colorful.css +6 -0
  67. package/dist/css/Switch.css +1 -0
  68. package/dist/css/Switch.disabled.css +30 -0
  69. package/dist/css/Tab.base.css +4 -40
  70. package/dist/css/Tab.css +1 -0
  71. package/dist/css/Tab.disabled.css +36 -0
  72. package/dist/css/TextArea.base.css +8 -31
  73. package/dist/css/TextArea.composed.css +1 -1
  74. package/dist/css/TextArea.css +1 -0
  75. package/dist/css/TextArea.disabled.css +28 -0
  76. package/dist/css/Tree.base.css +4 -29
  77. package/dist/css/Tree.css +1 -0
  78. package/dist/css/Tree.disabled.css +27 -0
  79. package/dist/css/TreeItemDisplay.base.css +4 -30
  80. package/dist/css/TreeItemDisplay.css +2 -0
  81. package/dist/css/TreeItemDisplay.disabled.css +28 -0
  82. package/dist/package.json +108 -0
  83. package/package.json +3 -4
@@ -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
+ }
@@ -4,7 +4,10 @@
4
4
  padding: 0;
5
5
  overflow: visible;
6
6
  display: grid;
7
- transition: background-color 250ms, color 250ms, border-color 250ms;
7
+ transition:
8
+ background-color 250ms,
9
+ color 250ms,
10
+ border-color 250ms;
8
11
  }
9
12
 
10
13
  .sterling-slider.horizontal {
@@ -16,15 +19,6 @@
16
19
  width: 2em;
17
20
  }
18
21
 
19
- .sterling-slider.composed,
20
- .sterling-slider.composed:hover,
21
- .sterling-slider.composed.focus,
22
- .sterling-slider.composed.disabled {
23
- background: none;
24
- border: none;
25
- outline: none;
26
- }
27
-
28
22
  /* ----- container ----- */
29
23
 
30
24
  .sterling-slider .container {
@@ -44,7 +38,10 @@
44
38
  .sterling-slider .track {
45
39
  position: absolute;
46
40
  background: var(--stsv-common__background-color--secondary);
47
- transition: background-color 250ms, color 250ms, border-color 250ms;
41
+ transition:
42
+ background-color 250ms,
43
+ color 250ms,
44
+ border-color 250ms;
48
45
  }
49
46
 
50
47
  .sterling-slider.horizontal .track {
@@ -75,7 +72,10 @@
75
72
  .sterling-slider .fill {
76
73
  background: var(--stsv-common__color);
77
74
  position: absolute;
78
- transition: background-color 250ms, color 250ms, border-color 250ms;
75
+ transition:
76
+ background-color 250ms,
77
+ color 250ms,
78
+ border-color 250ms;
79
79
  }
80
80
 
81
81
  .sterling-slider.horizontal .fill {
@@ -107,9 +107,11 @@
107
107
  height: 1.5em;
108
108
  overflow: hidden;
109
109
  padding: 0;
110
- position: relative;
111
110
  text-decoration: none;
112
- transition: background-color 250ms, color 250ms, border-color 250ms;
111
+ transition:
112
+ background-color 250ms,
113
+ color 250ms,
114
+ border-color 250ms;
113
115
  white-space: nowrap;
114
116
  position: absolute;
115
117
  width: 1.5em;
@@ -137,38 +139,6 @@
137
139
  color: var(--stsv-button__color--active);
138
140
  }
139
141
 
140
- /* ----- thumb disabled ----- */
141
-
142
- .sterling-slider.disabled .thumb {
143
- cursor: not-allowed;
144
- position: relative;
145
- outline: none;
146
- }
147
-
148
- .sterling-slider .thumb::after {
149
- background: repeating-linear-gradient(
150
- var(--stsv-common--disabled__stripe-angle),
151
- var(--stsv-common--disabled__stripe-color),
152
- var(--stsv-common--disabled__stripe-color) var(--stsv-common--disabled__stripe-width),
153
- var(--stsv-common--disabled__stripe-color--alt) var(--stsv-common--disabled__stripe-width),
154
- var(--stsv-common--disabled__stripe-color--alt)
155
- calc(2 * var(--stsv-common--disabled__stripe-width))
156
- );
157
- bottom: 0;
158
- content: '';
159
- left: 0;
160
- opacity: 0;
161
- position: absolute;
162
- right: 0;
163
- top: 0;
164
- pointer-events: none;
165
- transition: opacity 250ms;
166
- }
167
-
168
- .sterling-slider.disabled .thumb::after {
169
- opacity: 1;
170
- }
171
-
172
142
  /* ----- reduced motion ----- */
173
143
 
174
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;
@@ -67,7 +63,10 @@
67
63
  font: inherit;
68
64
  pointer-events: none;
69
65
  position: relative;
70
- transition: background-color 250ms, color 250ms, border-color 250ms;
66
+ transition:
67
+ background-color 250ms,
68
+ color 250ms,
69
+ border-color 250ms;
71
70
  user-select: none;
72
71
  }
73
72
 
@@ -87,6 +86,12 @@ input:focus-visible ~ .switch {
87
86
  outline-width: 2px;
88
87
  }
89
88
 
89
+ input:checked ~ .switch,
90
+ input:checked:hover ~ .switch,
91
+ input:checked:focus-visible ~ .switch {
92
+ background-color: var(--stsv-input__border-color--hover);
93
+ }
94
+
90
95
  /* ----- switch vertical ----- */
91
96
 
92
97
  .sterling-switch:not(.vertical) .switch {
@@ -126,7 +131,11 @@ input:focus-visible ~ .switch {
126
131
  font: inherit;
127
132
  height: 1.25em;
128
133
  position: absolute;
129
- transition: background-color 250ms, color 250ms, border-color 250ms, transform 250ms;
134
+ transition:
135
+ background-color 250ms,
136
+ color 250ms,
137
+ border-color 250ms,
138
+ transform 250ms;
130
139
  width: 1.25em;
131
140
  }
132
141
 
@@ -142,33 +151,6 @@ input:focus-visible ~ .switch {
142
151
  color: var(--stsv-button__color--hover);
143
152
  }
144
153
 
145
- /* ----- thumb disabled ----- */
146
-
147
- .sterling-switch .thumb::after {
148
- background: repeating-linear-gradient(
149
- var(--stsv-common--disabled__stripe-angle),
150
- var(--stsv-common--disabled__stripe-color),
151
- var(--stsv-common--disabled__stripe-color) var(--stsv-common--disabled__stripe-width),
152
- var(--stsv-common--disabled__stripe-color--alt) var(--stsv-common--disabled__stripe-width),
153
- var(--stsv-common--disabled__stripe-color--alt)
154
- calc(2 * var(--stsv-common--disabled__stripe-width))
155
- );
156
- bottom: 0;
157
- border-radius: 10000px;
158
- content: '';
159
- left: 0;
160
- opacity: 0;
161
- position: absolute;
162
- right: 0;
163
- top: 0;
164
- pointer-events: none;
165
- transition: opacity 250ms;
166
- }
167
-
168
- .sterling-switch.disabled .thumb::after {
169
- opacity: 1;
170
- }
171
-
172
154
  /* ----- thumb vertical ----- */
173
155
 
174
156
  .sterling-switch:not(.vertical) .thumb {
@@ -18,6 +18,12 @@
18
18
  color: var(--stsv-input--colorful__color--focus);
19
19
  }
20
20
 
21
+ .sterling-switch.colorful input:checked ~ .switch,
22
+ .sterling-switch.colorful input:checked:hover ~ .switch,
23
+ .sterling-switch.colorful input:checked:focus-visible ~ .switch {
24
+ background-color: var(--stsv-input--colorful__border-color--hover);
25
+ }
26
+
21
27
  /* ----- thumb colorful ----- */
22
28
 
23
29
  .sterling-switch.colorful .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
+ }
@@ -22,7 +22,10 @@
22
22
  min-height: 3em;
23
23
  overflow: hidden;
24
24
  resize: var(--TextArea__resize, none);
25
- transition: background-color 250ms, color 250ms, border-color 250ms;
25
+ transition:
26
+ background-color 250ms,
27
+ color 250ms,
28
+ border-color 250ms;
26
29
  width: 100%;
27
30
  }
28
31
 
@@ -42,38 +45,12 @@
42
45
  outline-width: 2px;
43
46
  }
44
47
 
45
- .sterling-text-area:disabled {
46
- cursor: not-allowed;
47
- outline: none;
48
- }
49
-
50
- .sterling-text-area::after {
51
- background: repeating-linear-gradient(
52
- var(--stsv-common--disabled__stripe-angle),
53
- var(--stsv-common--disabled__stripe-color),
54
- var(--stsv-common--disabled__stripe-color) var(--stsv-common--disabled__stripe-width),
55
- var(--stsv-common--disabled__stripe-color--alt) var(--stsv-common--disabled__stripe-width),
56
- var(--stsv-common--disabled__stripe-color--alt)
57
- calc(2 * var(--stsv-common--disabled__stripe-width))
58
- );
59
- bottom: 0;
60
- content: '';
61
- left: 0;
62
- opacity: 0;
63
- position: absolute;
64
- right: 0;
65
- top: 0;
66
- pointer-events: none;
67
- transition: opacity 250ms;
68
- }
69
-
70
- .sterling-text-area.disabled::after {
71
- opacity: 1;
72
- }
73
-
74
48
  .sterling-text-area textarea::placeholder {
75
49
  color: var(--stsv-common__color--subtle);
76
- transition: background-color 250ms, color 250ms, border-color 250ms;
50
+ transition:
51
+ background-color 250ms,
52
+ color 250ms,
53
+ border-color 250ms;
77
54
  }
78
55
 
79
56
  @media (prefers-reduced-motion) {
@@ -1,5 +1,5 @@
1
1
  .sterling-text-area.composed textarea,
2
- .sterling-text-area.composed:hover textarea:not(:disabled),
2
+ .sterling-text-area.composed:hover textarea,
3
3
  .sterling-text-area.composed textarea:focus,
4
4
  .sterling-text-area.composed:hover textarea:focus {
5
5
  background-color: transparent;
@@ -1,3 +1,4 @@
1
1
  @import url('./TextArea.base.css');
2
2
  @import url('./TextArea.colorful.css');
3
+ @import url('./TextArea.disabled.css');
3
4
  @import url('./TextArea.composed.css');