@carbon/styles 1.44.0 → 1.45.0-rc.0
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/styles.css +302 -71
- package/css/styles.min.css +1 -1
- package/package.json +2 -2
- package/scss/components/data-table/_data-table.scss +81 -10
- package/scss/components/data-table/expandable/_data-table-expandable.scss +71 -20
- package/scss/components/data-table/sort/_data-table-sort.scss +6 -0
- package/scss/components/fluid-combo-box/_fluid-combo-box.scss +2 -1
- package/scss/components/fluid-date-picker/_fluid-date-picker.scss +12 -0
- package/scss/components/fluid-list-box/_fluid-list-box.scss +54 -1
- package/scss/components/fluid-number-input/_fluid-number-input.scss +21 -0
- package/scss/components/fluid-select/_fluid-select.scss +14 -1
- package/scss/components/fluid-text-area/_fluid-text-area.scss +12 -1
- package/scss/components/fluid-text-input/_fluid-text-input.scss +24 -3
- package/scss/components/fluid-time-picker/_fluid-time-picker.scss +3 -1
- package/scss/components/list-box/_list-box.scss +23 -3
- package/scss/components/menu/_menu.scss +11 -1
- package/scss/components/notification/_actionable-notification.scss +4 -0
- package/scss/components/number-input/_number-input.scss +2 -1
- package/scss/components/popover/_popover.scss +1 -1
- package/scss/components/slider/_slider.scss +126 -32
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
max-inline-size: 18rem;
|
|
36
36
|
min-inline-size: 10rem;
|
|
37
37
|
opacity: 0;
|
|
38
|
+
overflow-y: auto;
|
|
38
39
|
visibility: hidden;
|
|
39
40
|
}
|
|
40
41
|
|
|
@@ -66,7 +67,7 @@
|
|
|
66
67
|
display: grid;
|
|
67
68
|
align-items: center;
|
|
68
69
|
block-size: 2rem;
|
|
69
|
-
color: $text-
|
|
70
|
+
color: $text-secondary;
|
|
70
71
|
column-gap: $spacing-03;
|
|
71
72
|
cursor: pointer;
|
|
72
73
|
grid-template-columns: 1fr max-content;
|
|
@@ -76,10 +77,19 @@
|
|
|
76
77
|
&:focus {
|
|
77
78
|
@include focus-outline('outline');
|
|
78
79
|
}
|
|
80
|
+
|
|
81
|
+
svg {
|
|
82
|
+
color: $icon-secondary;
|
|
83
|
+
}
|
|
79
84
|
}
|
|
80
85
|
|
|
81
86
|
.#{$prefix}--menu-item:hover {
|
|
82
87
|
background-color: $layer-hover;
|
|
88
|
+
color: $text-primary;
|
|
89
|
+
|
|
90
|
+
svg {
|
|
91
|
+
color: $icon-primary;
|
|
92
|
+
}
|
|
83
93
|
}
|
|
84
94
|
|
|
85
95
|
$supported-sizes: (
|
|
@@ -223,6 +223,10 @@
|
|
|
223
223
|
padding: convert.to-rem(15px) 0;
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
+
.#{$prefix}--actionable-notification__button-wrapper {
|
|
227
|
+
display: flex;
|
|
228
|
+
}
|
|
229
|
+
|
|
226
230
|
.#{$prefix}--actionable-notification--toast
|
|
227
231
|
.#{$prefix}--actionable-notification__text-wrapper {
|
|
228
232
|
padding: convert.to-rem(15px) 0 convert.to-rem(23px) 0;
|
|
@@ -438,7 +438,8 @@
|
|
|
438
438
|
padding-inline-end: convert.to-rem(144px);
|
|
439
439
|
}
|
|
440
440
|
|
|
441
|
-
.#{$prefix}--number__input-wrapper--slug input[type='number']
|
|
441
|
+
.#{$prefix}--number__input-wrapper--slug input[type='number'],
|
|
442
|
+
.#{$prefix}--number__input-wrapper--slug input[type='number']:disabled {
|
|
442
443
|
@include ai-gradient;
|
|
443
444
|
|
|
444
445
|
padding-inline-end: convert.to-rem(112px);
|
|
@@ -172,7 +172,7 @@ $popover-caret-height: custom-property.get-var(
|
|
|
172
172
|
will-change: transform;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
.#{$prefix}--popover--open
|
|
175
|
+
.#{$prefix}--popover--caret.#{$prefix}--popover--open
|
|
176
176
|
> .#{$prefix}--popover
|
|
177
177
|
> .#{$prefix}--popover-caret {
|
|
178
178
|
display: block;
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
@use '../../utilities/skeleton' as *;
|
|
22
22
|
@use '../../utilities/high-contrast-mode' as *;
|
|
23
23
|
@use '../../utilities/convert';
|
|
24
|
+
@use '../../utilities/custom-property';
|
|
24
25
|
|
|
25
26
|
/// Slider styles
|
|
26
27
|
/// @access public
|
|
@@ -85,35 +86,131 @@
|
|
|
85
86
|
transition: background $duration-fast-02 motion(standard, productive);
|
|
86
87
|
}
|
|
87
88
|
|
|
88
|
-
.#{$prefix}--slider__thumb {
|
|
89
|
+
.#{$prefix}--slider__thumb-wrapper {
|
|
89
90
|
position: absolute;
|
|
90
91
|
z-index: 3;
|
|
92
|
+
block-size: convert.to-rem(14px);
|
|
93
|
+
inline-size: convert.to-rem(14px);
|
|
94
|
+
transform: translate(-50%, -50%);
|
|
95
|
+
@include custom-property.declaration('tooltip-padding-inline', $spacing-03);
|
|
96
|
+
@include custom-property.declaration('popover-offset', $spacing-03);
|
|
97
|
+
|
|
98
|
+
.#{$prefix}--slider-container--rtl & {
|
|
99
|
+
transform: translate(50%, -50%);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.#{$prefix}--slider__thumb-wrapper--lower,
|
|
104
|
+
.#{$prefix}--slider__thumb-wrapper--upper {
|
|
105
|
+
block-size: 24px;
|
|
106
|
+
inline-size: 16px;
|
|
107
|
+
@include custom-property.declaration(
|
|
108
|
+
'popover-offset',
|
|
109
|
+
custom-property.get-var('popover-caret-height', $spacing-03)
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.#{$prefix}--slider__thumb-wrapper--lower {
|
|
114
|
+
transform: translate(-100%, -50%);
|
|
115
|
+
|
|
116
|
+
> .#{$prefix}--popover > .#{$prefix}--popover-content {
|
|
117
|
+
transform: translate(
|
|
118
|
+
50%,
|
|
119
|
+
calc(-100% - custom-property.get-var('popover-offset', 0rem))
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
> .#{$prefix}--popover > .#{$prefix}--popover-caret {
|
|
124
|
+
inset-inline-end: 0;
|
|
125
|
+
inset-inline-start: revert;
|
|
126
|
+
transform: translate(
|
|
127
|
+
50%,
|
|
128
|
+
calc(-1 * custom-property.get-var('popover-offset', 0rem))
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.#{$prefix}--slider-container--rtl .#{$prefix}--slider__thumb-wrapper--lower {
|
|
134
|
+
transform: translate(100%, -50%);
|
|
135
|
+
|
|
136
|
+
> .#{$prefix}--popover > .#{$prefix}--popover-content {
|
|
137
|
+
transform: translate(
|
|
138
|
+
0,
|
|
139
|
+
calc(-100% - custom-property.get-var('popover-offset', 0rem))
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
> .#{$prefix}--popover > .#{$prefix}--popover-caret {
|
|
144
|
+
transform: translate(
|
|
145
|
+
-50%,
|
|
146
|
+
calc(-1 * custom-property.get-var('popover-offset', 0rem))
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.#{$prefix}--slider__thumb-wrapper--upper {
|
|
152
|
+
transform: translate(0, -50%);
|
|
153
|
+
|
|
154
|
+
> .#{$prefix}--popover > .#{$prefix}--popover-content {
|
|
155
|
+
transform: translate(
|
|
156
|
+
-50%,
|
|
157
|
+
calc(-100% - custom-property.get-var('popover-offset', 0rem))
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
> .#{$prefix}--popover > .#{$prefix}--popover-caret {
|
|
162
|
+
inset-inline-start: 0;
|
|
163
|
+
transform: translate(
|
|
164
|
+
-50%,
|
|
165
|
+
calc(-1 * custom-property.get-var('popover-offset', 0rem))
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.#{$prefix}--slider-container--rtl .#{$prefix}--slider__thumb-wrapper--upper {
|
|
171
|
+
transform: translate(0, -50%);
|
|
172
|
+
|
|
173
|
+
> .#{$prefix}--popover > .#{$prefix}--popover-content {
|
|
174
|
+
transform: translate(
|
|
175
|
+
0,
|
|
176
|
+
calc(-100% - custom-property.get-var('popover-offset', 0rem))
|
|
177
|
+
);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
> .#{$prefix}--popover > .#{$prefix}--popover-caret {
|
|
181
|
+
transform: translate(
|
|
182
|
+
50%,
|
|
183
|
+
calc(-1 * custom-property.get-var('popover-offset', 0rem))
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.#{$prefix}--slider__thumb {
|
|
189
|
+
position: absolute;
|
|
91
190
|
border-radius: 50%;
|
|
92
191
|
background: $layer-selected-inverse;
|
|
93
|
-
block-size: convert.to-rem(14px);
|
|
94
192
|
box-shadow: inset 0 0 0 1px transparent, inset 0 0 0 2px transparent;
|
|
95
|
-
|
|
193
|
+
inset: 0;
|
|
96
194
|
outline: none;
|
|
97
|
-
transform: translate(-50%, -50%);
|
|
98
195
|
transition: transform $duration-fast-02 motion(standard, productive),
|
|
99
196
|
background $duration-fast-02 motion(standard, productive),
|
|
100
197
|
box-shadow $duration-fast-02 motion(standard, productive);
|
|
101
198
|
|
|
102
199
|
&:hover {
|
|
103
200
|
// 20px / 14px = 1.4286
|
|
104
|
-
transform:
|
|
201
|
+
transform: scale(1.4286);
|
|
105
202
|
}
|
|
106
203
|
|
|
107
204
|
&:focus {
|
|
108
205
|
background-color: $interactive;
|
|
109
206
|
box-shadow: inset 0 0 0 2px $interactive, inset 0 0 0 3px $layer;
|
|
110
207
|
// 20px / 14px = 1.4286
|
|
111
|
-
transform:
|
|
208
|
+
transform: scale(1.4286);
|
|
112
209
|
}
|
|
113
210
|
|
|
114
211
|
&:active {
|
|
115
212
|
box-shadow: inset 0 0 0 2px $interactive;
|
|
116
|
-
transform:
|
|
213
|
+
transform: scale(1.4286);
|
|
117
214
|
}
|
|
118
215
|
}
|
|
119
216
|
|
|
@@ -128,14 +225,12 @@
|
|
|
128
225
|
|
|
129
226
|
.#{$prefix}--slider__thumb--lower,
|
|
130
227
|
.#{$prefix}--slider__thumb--upper {
|
|
131
|
-
|
|
228
|
+
position: absolute;
|
|
132
229
|
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|
|
133
230
|
border-radius: unset;
|
|
134
231
|
background-color: transparent;
|
|
135
|
-
block-size: 24px;
|
|
136
232
|
box-shadow: none;
|
|
137
|
-
|
|
138
|
-
transform: translate(-100%, -50%);
|
|
233
|
+
inset: 0;
|
|
139
234
|
transition: none;
|
|
140
235
|
|
|
141
236
|
&::before {
|
|
@@ -151,7 +246,7 @@
|
|
|
151
246
|
}
|
|
152
247
|
|
|
153
248
|
&:hover {
|
|
154
|
-
transform:
|
|
249
|
+
transform: none;
|
|
155
250
|
|
|
156
251
|
.#{$prefix}--slider__thumb-icon {
|
|
157
252
|
fill: $text-secondary;
|
|
@@ -160,13 +255,13 @@
|
|
|
160
255
|
|
|
161
256
|
&:active {
|
|
162
257
|
box-shadow: none;
|
|
163
|
-
transform:
|
|
258
|
+
transform: none;
|
|
164
259
|
}
|
|
165
260
|
|
|
166
261
|
&:focus {
|
|
167
262
|
background-color: transparent;
|
|
168
263
|
box-shadow: none;
|
|
169
|
-
transform:
|
|
264
|
+
transform: none;
|
|
170
265
|
|
|
171
266
|
.#{$prefix}--slider__thumb-icon {
|
|
172
267
|
display: none;
|
|
@@ -185,23 +280,17 @@
|
|
|
185
280
|
}
|
|
186
281
|
|
|
187
282
|
.#{$prefix}--slider__thumb--upper {
|
|
188
|
-
transform:
|
|
283
|
+
transform: none;
|
|
189
284
|
|
|
190
285
|
&::before {
|
|
191
286
|
inset-inline-end: auto;
|
|
192
287
|
inset-inline-start: 0;
|
|
193
288
|
}
|
|
194
289
|
|
|
195
|
-
&:hover
|
|
196
|
-
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
&:active {
|
|
200
|
-
transform: translate(0, -50%);
|
|
201
|
-
}
|
|
202
|
-
|
|
290
|
+
&:hover,
|
|
291
|
+
&:active,
|
|
203
292
|
&:focus {
|
|
204
|
-
transform:
|
|
293
|
+
transform: none;
|
|
205
294
|
}
|
|
206
295
|
}
|
|
207
296
|
|
|
@@ -213,6 +302,10 @@
|
|
|
213
302
|
position: relative;
|
|
214
303
|
}
|
|
215
304
|
|
|
305
|
+
.#{$prefix}--slider-text-input-wrapper--hidden {
|
|
306
|
+
display: none;
|
|
307
|
+
}
|
|
308
|
+
|
|
216
309
|
.#{$prefix}--slider-text-input,
|
|
217
310
|
.#{$prefix}-slider-text-input {
|
|
218
311
|
-moz-appearance: textfield;
|
|
@@ -226,11 +319,9 @@
|
|
|
226
319
|
}
|
|
227
320
|
}
|
|
228
321
|
|
|
229
|
-
.#{$prefix}--
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
.#{$prefix}--slider__thumb:focus ~ .#{$prefix}--slider__filled-track {
|
|
322
|
+
.#{$prefix}--slider__thumb:focus ~ .#{$prefix}--slider__filled-track,
|
|
323
|
+
.#{$prefix}--slider__thumb-wrapper:focus-within
|
|
324
|
+
~ .#{$prefix}--slider__filled-track {
|
|
234
325
|
background-color: $border-interactive;
|
|
235
326
|
}
|
|
236
327
|
|
|
@@ -368,17 +459,20 @@
|
|
|
368
459
|
}
|
|
369
460
|
|
|
370
461
|
.#{$prefix}--slider-container.#{$prefix}--skeleton {
|
|
462
|
+
.#{$prefix}--slider__thumb-wrapper {
|
|
463
|
+
inset-inline-start: 50%;
|
|
464
|
+
}
|
|
465
|
+
|
|
371
466
|
.#{$prefix}--slider__thumb {
|
|
372
467
|
cursor: default;
|
|
373
|
-
inset-inline-start: 50%;
|
|
374
468
|
pointer-events: none;
|
|
375
469
|
}
|
|
376
470
|
|
|
377
|
-
.#{$prefix}--slider__thumb--lower {
|
|
471
|
+
.#{$prefix}--slider__thumb-wrapper--lower {
|
|
378
472
|
inset-inline-start: 0;
|
|
379
473
|
}
|
|
380
474
|
|
|
381
|
-
.#{$prefix}--slider__thumb--upper {
|
|
475
|
+
.#{$prefix}--slider__thumb-wrapper--upper {
|
|
382
476
|
inset-inline-start: 100%;
|
|
383
477
|
}
|
|
384
478
|
}
|