@carbon/styles 1.68.0-rc.0 → 1.69.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 +93 -14
- package/css/styles.min.css +1 -1
- package/package.json +10 -10
- package/scss/components/accordion/_accordion.scss +6 -3
- package/scss/components/button/_button.scss +3 -2
- package/scss/components/button/_mixins.scss +7 -4
- package/scss/components/content-switcher/_content-switcher.scss +3 -1
- package/scss/components/data-table/_data-table.scss +11 -1
- package/scss/components/data-table/action/_data-table-action.scss +8 -8
- package/scss/components/data-table/expandable/_data-table-expandable.scss +19 -7
- package/scss/components/data-table/sort/_data-table-sort.scss +2 -1
- package/scss/components/date-picker/_flatpickr.scss +8 -4
- package/scss/components/dialog/_dialog.scss +8 -5
- package/scss/components/dropdown/_dropdown.scss +3 -2
- package/scss/components/fluid-date-picker/_fluid-date-picker.scss +2 -1
- package/scss/components/fluid-list-box/_fluid-list-box.scss +6 -11
- package/scss/components/fluid-number-input/_fluid-number-input.scss +3 -1
- package/scss/components/fluid-select/_fluid-select.scss +2 -1
- package/scss/components/fluid-text-input/_fluid-text-input.scss +2 -1
- package/scss/components/list-box/_list-box.scss +2 -1
- package/scss/components/loading/_animation.scss +2 -1
- package/scss/components/modal/_modal.scss +8 -4
- package/scss/components/notification/_actionable-notification.scss +4 -2
- package/scss/components/notification/_inline-notification.scss +2 -1
- package/scss/components/notification/_toast-notification.scss +3 -1
- package/scss/components/number-input/_number-input.scss +27 -2
- package/scss/components/overflow-menu/_overflow-menu.scss +4 -2
- package/scss/components/pagination/_pagination.scss +2 -1
- package/scss/components/pagination/_unstable_pagination.scss +2 -1
- package/scss/components/pagination-nav/_pagination-nav.scss +2 -1
- package/scss/components/popover/_popover.scss +4 -5
- package/scss/components/progress-indicator/_progress-indicator.scss +2 -1
- package/scss/components/search/_search.scss +6 -3
- package/scss/components/slider/_slider.scss +8 -3
- package/scss/components/slug/_slug.scss +12 -5
- package/scss/components/tabs/_tabs.scss +4 -2
- package/scss/components/tag/_tag.scss +2 -1
- package/scss/components/text-area/_text-area.scss +2 -1
- package/scss/components/text-input/_text-input.scss +4 -2
- package/scss/components/tile/_tile.scss +10 -5
- package/scss/components/time-picker/_time-picker.scss +2 -1
- package/scss/components/toggle/_toggle.scss +3 -1
- package/scss/components/ui-shell/header/_header.scss +9 -4
- package/scss/components/ui-shell/side-nav/_side-nav.scss +12 -5
- package/scss/utilities/_ai-gradient.scss +6 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/styles",
|
|
3
3
|
"description": "Styles for the Carbon Design System",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.69.0-rc.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -40,18 +40,18 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@carbon/colors": "^11.28.0
|
|
44
|
-
"@carbon/feature-flags": "^0.24.0
|
|
45
|
-
"@carbon/grid": "^11.29.0
|
|
46
|
-
"@carbon/layout": "^11.28.0
|
|
47
|
-
"@carbon/motion": "^11.24.0
|
|
48
|
-
"@carbon/themes": "^11.43.0
|
|
49
|
-
"@carbon/type": "^11.33.0
|
|
43
|
+
"@carbon/colors": "^11.28.0",
|
|
44
|
+
"@carbon/feature-flags": "^0.24.0",
|
|
45
|
+
"@carbon/grid": "^11.29.0",
|
|
46
|
+
"@carbon/layout": "^11.28.0",
|
|
47
|
+
"@carbon/motion": "^11.24.0",
|
|
48
|
+
"@carbon/themes": "^11.43.0",
|
|
49
|
+
"@carbon/type": "^11.33.0",
|
|
50
50
|
"@ibm/plex": "6.0.0-next.6",
|
|
51
51
|
"@ibm/telemetry-js": "^1.5.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@carbon/test-utils": "^10.
|
|
54
|
+
"@carbon/test-utils": "^10.34.0",
|
|
55
55
|
"autoprefixer": "^10.4.7",
|
|
56
56
|
"browserslist-config-carbon": "^11.2.0",
|
|
57
57
|
"css": "^3.0.0",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"scss/**/*.css",
|
|
68
68
|
"css/**/*.css"
|
|
69
69
|
],
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "8708f6dfd38bea7d5bd6d14ce34293c014cba87c"
|
|
71
71
|
}
|
|
@@ -109,9 +109,12 @@ $content-padding: 0 0 0 $spacing-05 !default;
|
|
|
109
109
|
position: relative;
|
|
110
110
|
z-index: 2;
|
|
111
111
|
box-shadow:
|
|
112
|
-
/* Border top */
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
/* Border top */
|
|
113
|
+
0 -1px 0 0 $focus,
|
|
114
|
+
inset 0 1px 0 0 $focus,
|
|
115
|
+
/* Border right */ inset 2px 0 0 0 $focus,
|
|
116
|
+
/* Border bottom */ 0 1px 0 0 $focus,
|
|
117
|
+
inset 0 -1px 0 0 $focus,
|
|
115
118
|
/* Border left */ inset -2px 0 0 0 $focus;
|
|
116
119
|
outline: none;
|
|
117
120
|
}
|
|
@@ -322,8 +322,9 @@
|
|
|
322
322
|
|
|
323
323
|
padding-block: min(
|
|
324
324
|
calc(
|
|
325
|
-
(layout.size('height') - var(--temp-expressive-1lh)) / 2 -
|
|
326
|
-
|
|
325
|
+
(layout.size('height') - var(--temp-expressive-1lh)) / 2 - convert.to-rem(
|
|
326
|
+
1px
|
|
327
|
+
)
|
|
327
328
|
),
|
|
328
329
|
var(--temp-padding-block-max)
|
|
329
330
|
);
|
|
@@ -63,12 +63,14 @@ $button-focus-color: custom-property.get-var('button-focus-color', $focus);
|
|
|
63
63
|
);
|
|
64
64
|
padding-inline: calc(layout.density('padding-inline') - convert.to-rem(1px))
|
|
65
65
|
calc(
|
|
66
|
-
layout.density('padding-inline') * 3 + convert.to-rem(16px) -
|
|
67
|
-
|
|
66
|
+
layout.density('padding-inline') * 3 + convert.to-rem(16px) - convert.to-rem(
|
|
67
|
+
1px
|
|
68
|
+
)
|
|
68
69
|
);
|
|
69
70
|
text-align: start;
|
|
70
71
|
text-decoration: none;
|
|
71
|
-
transition:
|
|
72
|
+
transition:
|
|
73
|
+
background $duration-fast-01 motion(entrance, productive),
|
|
72
74
|
box-shadow $duration-fast-01 motion(entrance, productive),
|
|
73
75
|
border-color $duration-fast-01 motion(entrance, productive),
|
|
74
76
|
outline $duration-fast-01 motion(entrance, productive);
|
|
@@ -127,7 +129,8 @@ $button-focus-color: custom-property.get-var('button-focus-color', $focus);
|
|
|
127
129
|
|
|
128
130
|
&:focus {
|
|
129
131
|
border-color: $button-focus-color;
|
|
130
|
-
box-shadow:
|
|
132
|
+
box-shadow:
|
|
133
|
+
inset 0 0 0 $button-outline-width $button-focus-color,
|
|
131
134
|
inset 0 0 0 $button-border-width $background;
|
|
132
135
|
}
|
|
133
136
|
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
|
|
206
206
|
.#{$prefix}--data-table td,
|
|
207
207
|
.#{$prefix}--data-table tbody th {
|
|
208
|
-
border-block-end: 1px solid $border-subtle;
|
|
208
|
+
border-block-end: 1px solid $border-subtle-01;
|
|
209
209
|
border-block-start: 1px solid $layer;
|
|
210
210
|
color: $text-secondary;
|
|
211
211
|
padding-inline: $spacing-05 $spacing-05;
|
|
@@ -215,6 +215,16 @@
|
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
+
.#{$prefix}--layer-two .#{$prefix}--data-table td,
|
|
219
|
+
.#{$prefix}--layer-two .#{$prefix}--data-table tbody th {
|
|
220
|
+
border-block-end: 1px solid $border-subtle-02;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.#{$prefix}--layer-three .#{$prefix}--data-table td,
|
|
224
|
+
.#{$prefix}--layer-three .#{$prefix}--data-table tbody th {
|
|
225
|
+
border-block-end: 1px solid $border-subtle-03;
|
|
226
|
+
}
|
|
227
|
+
|
|
218
228
|
@supports (-moz-appearance: none) {
|
|
219
229
|
.#{$prefix}--data-table td {
|
|
220
230
|
// Fix to show borders in ff
|
|
@@ -40,14 +40,11 @@
|
|
|
40
40
|
block-size: $spacing-09;
|
|
41
41
|
inline-size: 100%;
|
|
42
42
|
transform: translate3d(0, 0, 0);
|
|
43
|
-
transition:
|
|
43
|
+
transition:
|
|
44
|
+
transform $duration-fast-02 motion(standard, productive),
|
|
44
45
|
clip-path $duration-fast-02 motion(standard, productive);
|
|
45
46
|
}
|
|
46
47
|
|
|
47
|
-
.#{$prefix}--batch-actions ~ .#{$prefix}--toolbar-content {
|
|
48
|
-
clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
48
|
.#{$prefix}--toolbar-content .#{$prefix}--search .#{$prefix}--search-input {
|
|
52
49
|
padding: 0 3rem;
|
|
53
50
|
// For toolbar animation with (esp.) persistent search box
|
|
@@ -79,7 +76,8 @@
|
|
|
79
76
|
box-shadow: none;
|
|
80
77
|
cursor: pointer;
|
|
81
78
|
inline-size: $spacing-09;
|
|
82
|
-
transition:
|
|
79
|
+
transition:
|
|
80
|
+
width $transition-expansion $standard-easing,
|
|
83
81
|
background-color $duration-fast-02 motion(entrance, productive);
|
|
84
82
|
|
|
85
83
|
&:hover {
|
|
@@ -381,7 +379,8 @@
|
|
|
381
379
|
.#{$prefix}--batch-actions--active ~ .#{$prefix}--toolbar-content {
|
|
382
380
|
clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
|
|
383
381
|
transform: translate3d(0, 48px, 0);
|
|
384
|
-
transition:
|
|
382
|
+
transition:
|
|
383
|
+
transform $duration-fast-02 motion(standard, productive),
|
|
385
384
|
clip-path $duration-fast-02 motion(standard, productive);
|
|
386
385
|
}
|
|
387
386
|
|
|
@@ -400,7 +399,8 @@
|
|
|
400
399
|
opacity: 0;
|
|
401
400
|
pointer-events: none;
|
|
402
401
|
transform: translate3d(0, 48px, 0);
|
|
403
|
-
transition:
|
|
402
|
+
transition:
|
|
403
|
+
transform $duration-fast-02 motion(standard, productive),
|
|
404
404
|
clip-path $duration-fast-02 motion(standard, productive),
|
|
405
405
|
opacity $duration-fast-02 motion(standard, productive);
|
|
406
406
|
will-change: transform;
|
|
@@ -50,7 +50,8 @@
|
|
|
50
50
|
border: 0;
|
|
51
51
|
background-color: $layer-hover;
|
|
52
52
|
padding-block: 0;
|
|
53
|
-
transition:
|
|
53
|
+
transition:
|
|
54
|
+
padding $duration-moderate-01 motion(standard, productive),
|
|
54
55
|
background-color $duration-fast-01 motion(standard, productive);
|
|
55
56
|
}
|
|
56
57
|
|
|
@@ -64,15 +65,16 @@
|
|
|
64
65
|
|
|
65
66
|
//child row visible
|
|
66
67
|
tr.#{$prefix}--parent-row.#{$prefix}--expandable-row + tr[data-child-row] {
|
|
67
|
-
transition:
|
|
68
|
+
transition:
|
|
69
|
+
height $duration-moderate-01 motion(standard, productive),
|
|
68
70
|
background-color $duration-fast-01 motion(standard, productive);
|
|
69
71
|
}
|
|
70
72
|
|
|
71
73
|
tr.#{$prefix}--parent-row.#{$prefix}--expandable-row + tr[data-child-row] td {
|
|
72
74
|
border-block-end: 1px solid $border-subtle;
|
|
73
75
|
padding-inline-start: 3.5rem;
|
|
74
|
-
transition:
|
|
75
|
-
|
|
76
|
+
transition:
|
|
77
|
+
padding-bottom $duration-moderate-01 motion(standard, productive),
|
|
76
78
|
transform $duration-moderate-01 motion(standard, productive);
|
|
77
79
|
}
|
|
78
80
|
|
|
@@ -128,7 +130,8 @@
|
|
|
128
130
|
tr.#{$prefix}--parent-row:not(.#{$prefix}--expandable-row) td,
|
|
129
131
|
tr.#{$prefix}--parent-row.#{$prefix}--expandable-row td,
|
|
130
132
|
tr.#{$prefix}--parent-row.#{$prefix}--expandable-row {
|
|
131
|
-
transition:
|
|
133
|
+
transition:
|
|
134
|
+
height $duration-moderate-01 motion(standard, productive),
|
|
132
135
|
background-color $duration-fast-01 motion(standard, productive),
|
|
133
136
|
border-color $duration-fast-01 motion(standard, productive);
|
|
134
137
|
}
|
|
@@ -189,7 +192,15 @@
|
|
|
189
192
|
// Expand icon column
|
|
190
193
|
//----------------------------------------------------------------------------
|
|
191
194
|
.#{$prefix}--data-table td.#{$prefix}--table-expand {
|
|
192
|
-
border-block-end: 1px solid $border-subtle;
|
|
195
|
+
border-block-end: 1px solid $border-subtle-01;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.#{$prefix}--layer-two .#{$prefix}--data-table td.#{$prefix}--table-expand {
|
|
199
|
+
border-block-end: 1px solid $border-subtle-02;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.#{$prefix}--layer-three .#{$prefix}--data-table td.#{$prefix}--table-expand {
|
|
203
|
+
border-block-end: 1px solid $border-subtle-03;
|
|
193
204
|
}
|
|
194
205
|
|
|
195
206
|
.#{$prefix}--data-table
|
|
@@ -344,7 +355,8 @@
|
|
|
344
355
|
tr.#{$prefix}--parent-row.#{$prefix}--expandable-row
|
|
345
356
|
+ tr[data-child-row]
|
|
346
357
|
td {
|
|
347
|
-
transition:
|
|
358
|
+
transition:
|
|
359
|
+
transform $duration-moderate-01 motion(standard, productive),
|
|
348
360
|
border-bottom $duration-fast-01 motion(standard, productive),
|
|
349
361
|
border-top $duration-fast-01 motion(standard, productive);
|
|
350
362
|
}
|
|
@@ -51,7 +51,8 @@
|
|
|
51
51
|
min-block-size: 100%;
|
|
52
52
|
padding-inline-start: $spacing-05;
|
|
53
53
|
text-align: start;
|
|
54
|
-
transition:
|
|
54
|
+
transition:
|
|
55
|
+
background-color $duration-fast-01 motion(entrance, productive),
|
|
55
56
|
outline $duration-fast-01 motion(entrance, productive);
|
|
56
57
|
}
|
|
57
58
|
|
|
@@ -406,7 +406,8 @@
|
|
|
406
406
|
}
|
|
407
407
|
|
|
408
408
|
.flatpickr-calendar.animate .dayContainer.slideLeft {
|
|
409
|
-
animation:
|
|
409
|
+
animation:
|
|
410
|
+
fp-fade-out 400ms cubic-bezier(0.23, 1, 0.32, 1),
|
|
410
411
|
fp-slide-left 400ms cubic-bezier(0.23, 1, 0.32, 1);
|
|
411
412
|
}
|
|
412
413
|
|
|
@@ -416,18 +417,21 @@
|
|
|
416
417
|
}
|
|
417
418
|
|
|
418
419
|
.flatpickr-calendar.animate .dayContainer.slideLeftNew {
|
|
419
|
-
animation:
|
|
420
|
+
animation:
|
|
421
|
+
fp-fade-in 400ms cubic-bezier(0.23, 1, 0.32, 1),
|
|
420
422
|
fp-slide-left 400ms cubic-bezier(0.23, 1, 0.32, 1);
|
|
421
423
|
}
|
|
422
424
|
|
|
423
425
|
.flatpickr-calendar.animate .dayContainer.slideRight {
|
|
424
|
-
animation:
|
|
426
|
+
animation:
|
|
427
|
+
fp-fade-out 400ms cubic-bezier(0.23, 1, 0.32, 1),
|
|
425
428
|
fp-slide-right 400ms cubic-bezier(0.23, 1, 0.32, 1);
|
|
426
429
|
transform: translate3d(100%, 0, 0);
|
|
427
430
|
}
|
|
428
431
|
|
|
429
432
|
.flatpickr-calendar.animate .dayContainer.slideRightNew {
|
|
430
|
-
animation:
|
|
433
|
+
animation:
|
|
434
|
+
fp-fade-in 400ms cubic-bezier(0.23, 1, 0.32, 1),
|
|
431
435
|
fp-slide-right-new 400ms cubic-bezier(0.23, 1, 0.32, 1);
|
|
432
436
|
}
|
|
433
437
|
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
/** opening and closing is used in as allow-discrete is not currently supported wide enough
|
|
40
40
|
* https://caniuse.com/mdn-css_properties_display_is_transitionable
|
|
41
41
|
*/
|
|
42
|
-
transition:
|
|
42
|
+
transition:
|
|
43
|
+
opacity $duration-moderate-02 motion(exit, expressive),
|
|
43
44
|
transform $duration-moderate-02 motion(exit, expressive),
|
|
44
45
|
overlay $duration-moderate-02 motion(exit, expressive) allow-discrete,
|
|
45
46
|
display $duration-moderate-02 motion(exit, expressive) allow-discrete;
|
|
@@ -65,7 +66,8 @@
|
|
|
65
66
|
opacity: 1;
|
|
66
67
|
transform: translateY(0);
|
|
67
68
|
|
|
68
|
-
transition:
|
|
69
|
+
transition:
|
|
70
|
+
opacity $duration-moderate-02 motion(entrance, expressive),
|
|
69
71
|
transform $duration-moderate-02 motion(entrance, expressive),
|
|
70
72
|
overlay $duration-moderate-02 motion(entrance, expressive)
|
|
71
73
|
allow-discrete,
|
|
@@ -115,8 +117,8 @@
|
|
|
115
117
|
/* opening and closing is used in as allow-discrete is not currently supported wide enough
|
|
116
118
|
* https://caniuse.com/mdn-css_properties_display_is_transitionable
|
|
117
119
|
*/
|
|
118
|
-
transition:
|
|
119
|
-
|
|
120
|
+
transition:
|
|
121
|
+
background-color $duration-moderate-02 motion(entrance, expressive),
|
|
120
122
|
opacity $duration-moderate-02 motion(entrance, expressive);
|
|
121
123
|
|
|
122
124
|
@media (prefers-reduced-motion) {
|
|
@@ -127,7 +129,8 @@
|
|
|
127
129
|
.#{$prefix}--dialog[open]::backdrop {
|
|
128
130
|
opacity: 1;
|
|
129
131
|
|
|
130
|
-
transition:
|
|
132
|
+
transition:
|
|
133
|
+
background-color $duration-moderate-02 motion(exit, expressive),
|
|
131
134
|
opacity $duration-moderate-02 motion(exit, expressive);
|
|
132
135
|
|
|
133
136
|
@media (prefers-reduced-motion) {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
display: inline-grid;
|
|
28
28
|
align-items: center;
|
|
29
29
|
grid-gap: 0 convert.to-rem(24px);
|
|
30
|
-
grid-template: auto
|
|
30
|
+
grid-template: auto / auto min-content;
|
|
31
31
|
|
|
32
32
|
.#{$prefix}--label {
|
|
33
33
|
@include type-style('body-compact-01');
|
|
@@ -215,7 +215,8 @@
|
|
|
215
215
|
.#{$prefix}--dropdown-item {
|
|
216
216
|
position: relative;
|
|
217
217
|
opacity: 0;
|
|
218
|
-
transition:
|
|
218
|
+
transition:
|
|
219
|
+
visibility $duration-fast-01 motion(standard, productive),
|
|
219
220
|
opacity $duration-fast-01 motion(standard, productive),
|
|
220
221
|
background-color $duration-fast-01 motion(standard, productive);
|
|
221
222
|
visibility: inherit;
|
|
@@ -27,7 +27,8 @@
|
|
|
27
27
|
position: relative;
|
|
28
28
|
block-size: 100%;
|
|
29
29
|
inline-size: 100%;
|
|
30
|
-
transition:
|
|
30
|
+
transition:
|
|
31
|
+
background-color $duration-fast-01 motion(standard, productive),
|
|
31
32
|
outline $duration-fast-01 motion(standard, productive);
|
|
32
33
|
}
|
|
33
34
|
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
position: relative;
|
|
22
22
|
background: $field;
|
|
23
23
|
block-size: 100%;
|
|
24
|
-
transition:
|
|
24
|
+
transition:
|
|
25
|
+
background-color $duration-fast-01 motion(standard, productive),
|
|
25
26
|
outline $duration-fast-01 motion(standard, productive);
|
|
26
27
|
}
|
|
27
28
|
|
|
@@ -260,6 +261,8 @@
|
|
|
260
261
|
.#{$prefix}--list-box__wrapper--fluid
|
|
261
262
|
.#{$prefix}--skeleton
|
|
262
263
|
.#{$prefix}--list-box__field {
|
|
264
|
+
@include skeleton;
|
|
265
|
+
|
|
263
266
|
position: absolute;
|
|
264
267
|
padding: 0;
|
|
265
268
|
block-size: convert.to-rem(8px);
|
|
@@ -271,6 +274,8 @@
|
|
|
271
274
|
.#{$prefix}--list-box__wrapper--fluid
|
|
272
275
|
.#{$prefix}--skeleton
|
|
273
276
|
.#{$prefix}--list-box__label {
|
|
277
|
+
@include skeleton;
|
|
278
|
+
|
|
274
279
|
position: absolute;
|
|
275
280
|
block-size: convert.to-rem(8px);
|
|
276
281
|
inline-size: 25%;
|
|
@@ -278,16 +283,6 @@
|
|
|
278
283
|
inset-inline-start: $spacing-05;
|
|
279
284
|
}
|
|
280
285
|
|
|
281
|
-
.#{$prefix}--list-box__wrapper--fluid
|
|
282
|
-
.#{$prefix}--skeleton
|
|
283
|
-
.#{$prefix}--list-box__field,
|
|
284
|
-
.#{$prefix}--list-box__wrapper--fluid
|
|
285
|
-
.#{$prefix}--skeleton
|
|
286
|
-
.#{$prefix}--list-box__label {
|
|
287
|
-
animation: 3000ms ease-in-out skeleton infinite;
|
|
288
|
-
background: $skeleton-element;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
286
|
// Slug styles
|
|
292
287
|
.#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper--slug
|
|
293
288
|
.#{$prefix}--slug {
|
|
@@ -84,7 +84,9 @@
|
|
|
84
84
|
input[type='number']:focus
|
|
85
85
|
~ .#{$prefix}--number__controls
|
|
86
86
|
.#{$prefix}--number__control-btn:last-of-type {
|
|
87
|
-
box-shadow:
|
|
87
|
+
box-shadow:
|
|
88
|
+
inset 0 -1px $focus,
|
|
89
|
+
inset -2px 0 $focus;
|
|
88
90
|
}
|
|
89
91
|
|
|
90
92
|
.#{$prefix}--number-input--fluid
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
position: relative;
|
|
22
22
|
background: $field;
|
|
23
23
|
block-size: 100%;
|
|
24
|
-
transition:
|
|
24
|
+
transition:
|
|
25
|
+
background-color $duration-fast-01 motion(standard, productive),
|
|
25
26
|
outline $duration-fast-01 motion(standard, productive);
|
|
26
27
|
}
|
|
27
28
|
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
position: relative;
|
|
22
22
|
background: $field;
|
|
23
23
|
block-size: 100%;
|
|
24
|
-
transition:
|
|
24
|
+
transition:
|
|
25
|
+
background-color $duration-fast-01 motion(standard, productive),
|
|
25
26
|
outline $duration-fast-01 motion(standard, productive);
|
|
26
27
|
}
|
|
27
28
|
|
|
@@ -669,7 +669,8 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
669
669
|
padding-inline-end: $spacing-06;
|
|
670
670
|
text-decoration: none;
|
|
671
671
|
text-overflow: ellipsis;
|
|
672
|
-
transition:
|
|
672
|
+
transition:
|
|
673
|
+
border-color $duration-fast-01 motion(standard, productive),
|
|
673
674
|
color $duration-fast-01 motion(standard, productive);
|
|
674
675
|
white-space: nowrap;
|
|
675
676
|
|
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
|
|
31
31
|
@mixin stop {
|
|
32
32
|
// Animate the container
|
|
33
|
-
animation:
|
|
33
|
+
animation:
|
|
34
|
+
#{$prefix}--rotate-end-p1 700ms motion.$ease-out forwards,
|
|
34
35
|
#{$prefix}--rotate-end-p2 700ms motion.$ease-out 700ms forwards;
|
|
35
36
|
|
|
36
37
|
// Animate the stroke
|
|
@@ -37,13 +37,15 @@
|
|
|
37
37
|
inset-block-start: 0;
|
|
38
38
|
inset-inline-start: 0;
|
|
39
39
|
opacity: 0;
|
|
40
|
-
transition:
|
|
40
|
+
transition:
|
|
41
|
+
opacity $duration-moderate-02 motion(exit, expressive),
|
|
41
42
|
visibility 0ms linear $duration-moderate-02;
|
|
42
43
|
visibility: hidden;
|
|
43
44
|
|
|
44
45
|
&.is-visible {
|
|
45
46
|
opacity: 1;
|
|
46
|
-
transition:
|
|
47
|
+
transition:
|
|
48
|
+
opacity $duration-moderate-02 motion(entrance, expressive),
|
|
47
49
|
visibility 0ms linear;
|
|
48
50
|
visibility: inherit;
|
|
49
51
|
|
|
@@ -370,7 +372,8 @@
|
|
|
370
372
|
|
|
371
373
|
border: 1px solid transparent;
|
|
372
374
|
background-color: $layer;
|
|
373
|
-
box-shadow:
|
|
375
|
+
box-shadow:
|
|
376
|
+
inset 0 -80px 70px -65px $ai-inner-shadow,
|
|
374
377
|
0 24px 40px -24px $ai-drop-shadow;
|
|
375
378
|
}
|
|
376
379
|
|
|
@@ -378,7 +381,8 @@
|
|
|
378
381
|
.#{$prefix}--modal-container:has(.#{$prefix}--modal-footer) {
|
|
379
382
|
@include ai-popover-gradient('default', 64px, 'layer');
|
|
380
383
|
|
|
381
|
-
box-shadow:
|
|
384
|
+
box-shadow:
|
|
385
|
+
inset 0 -80px 0 -16px $layer,
|
|
382
386
|
inset 0 -160px 70px -65px $ai-inner-shadow,
|
|
383
387
|
0 24px 40px -24px $ai-drop-shadow;
|
|
384
388
|
}
|
|
@@ -373,7 +373,8 @@
|
|
|
373
373
|
.#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--tertiary:focus {
|
|
374
374
|
border-color: $focus-inverse;
|
|
375
375
|
background-color: $notification-action-tertiary-inverse;
|
|
376
|
-
box-shadow:
|
|
376
|
+
box-shadow:
|
|
377
|
+
inset 0 0 0 button-vars.$button-outline-width $focus-inverse,
|
|
377
378
|
inset 0 0 0 button-vars.$button-border-width $background-inverse;
|
|
378
379
|
color: $notification-action-tertiary-inverse-text;
|
|
379
380
|
}
|
|
@@ -439,7 +440,8 @@
|
|
|
439
440
|
inset-inline-end: 0;
|
|
440
441
|
max-inline-size: convert.to-rem(48px);
|
|
441
442
|
min-inline-size: convert.to-rem(48px);
|
|
442
|
-
transition:
|
|
443
|
+
transition:
|
|
444
|
+
outline $duration-fast-02 motion(standard, productive),
|
|
443
445
|
background-color $duration-fast-02 motion(standard, productive);
|
|
444
446
|
|
|
445
447
|
&:focus {
|
|
@@ -277,7 +277,8 @@
|
|
|
277
277
|
inset-inline-end: 0;
|
|
278
278
|
max-inline-size: convert.to-rem(48px);
|
|
279
279
|
min-inline-size: convert.to-rem(48px);
|
|
280
|
-
transition:
|
|
280
|
+
transition:
|
|
281
|
+
outline $duration-fast-02 motion(standard, productive),
|
|
281
282
|
background-color $duration-fast-02 motion(standard, productive);
|
|
282
283
|
|
|
283
284
|
&:focus {
|
|
@@ -165,7 +165,9 @@
|
|
|
165
165
|
margin-inline-start: auto;
|
|
166
166
|
min-block-size: convert.to-rem(48px);
|
|
167
167
|
min-inline-size: convert.to-rem(48px);
|
|
168
|
-
transition:
|
|
168
|
+
transition:
|
|
169
|
+
outline $transition-base,
|
|
170
|
+
background-color $transition-base;
|
|
169
171
|
|
|
170
172
|
&:focus {
|
|
171
173
|
outline: 2px solid $focus-inverse;
|
|
@@ -60,7 +60,8 @@
|
|
|
60
60
|
inline-size: 100%;
|
|
61
61
|
min-inline-size: 9.375rem;
|
|
62
62
|
padding-inline: $spacing-05 $spacing-12;
|
|
63
|
-
transition:
|
|
63
|
+
transition:
|
|
64
|
+
background-color $duration-fast-01 motion(standard, productive),
|
|
64
65
|
outline $duration-fast-01 motion(standard, productive);
|
|
65
66
|
|
|
66
67
|
&:focus {
|
|
@@ -444,10 +445,12 @@
|
|
|
444
445
|
content: '';
|
|
445
446
|
inline-size: convert.to-rem(1px);
|
|
446
447
|
}
|
|
448
|
+
|
|
447
449
|
.#{$prefix}--number__input-wrapper--slug .#{$prefix}--slug::before {
|
|
448
450
|
display: none;
|
|
449
451
|
inset-inline-start: convert.to-rem(-16px);
|
|
450
452
|
}
|
|
453
|
+
|
|
451
454
|
.#{$prefix}--number__control-btn::after {
|
|
452
455
|
display: block;
|
|
453
456
|
inset-inline-end: 0;
|
|
@@ -458,19 +461,23 @@
|
|
|
458
461
|
display: block;
|
|
459
462
|
inset-inline-end: $spacing-08;
|
|
460
463
|
}
|
|
464
|
+
|
|
461
465
|
.#{$prefix}--number__input-wrapper--slug
|
|
462
466
|
.#{$prefix}--number__control-btn:focus::before {
|
|
463
467
|
display: none;
|
|
464
468
|
}
|
|
469
|
+
|
|
465
470
|
.#{$prefix}--number__control-btn:hover::after,
|
|
466
471
|
.#{$prefix}--number__control-btn:hover::before {
|
|
467
472
|
display: none;
|
|
468
473
|
inset-inline-end: 0;
|
|
469
474
|
}
|
|
475
|
+
|
|
470
476
|
.#{$prefix}--number__input-wrapper:has(.#{$prefix}--number__control-btn:hover)
|
|
471
477
|
~ .#{$prefix}--number__input-wrapper--slug::after {
|
|
472
478
|
display: none;
|
|
473
479
|
}
|
|
480
|
+
|
|
474
481
|
.#{$prefix}--number__control-btn:has(.up-icon)::after,
|
|
475
482
|
.#{$prefix}--number__control-btn:has(.up-icon)::before {
|
|
476
483
|
display: none;
|
|
@@ -479,10 +486,12 @@
|
|
|
479
486
|
.#{$prefix}--number__input-wrapper--slug .#{$prefix}--number__invalid {
|
|
480
487
|
inset-inline-end: $spacing-13 - $spacing-05;
|
|
481
488
|
}
|
|
489
|
+
|
|
482
490
|
.#{$prefix}--number__input-wrapper--slug:has(.#{$prefix}--number__invalid)
|
|
483
491
|
.#{$prefix}--slug::before {
|
|
484
492
|
display: block;
|
|
485
493
|
}
|
|
494
|
+
|
|
486
495
|
.#{$prefix}--number
|
|
487
496
|
.#{$prefix}--number__input-wrapper--slug
|
|
488
497
|
input[data-invalid],
|
|
@@ -499,17 +508,31 @@
|
|
|
499
508
|
|
|
500
509
|
padding-inline-end: convert.to-rem(145px);
|
|
501
510
|
}
|
|
511
|
+
|
|
502
512
|
// Skeleton State
|
|
513
|
+
|
|
503
514
|
.#{$prefix}--number.#{$prefix}--skeleton {
|
|
504
515
|
@include skeleton;
|
|
505
516
|
|
|
506
|
-
block-size: 2.5rem;
|
|
507
517
|
inline-size: 100%;
|
|
508
518
|
|
|
509
519
|
input[type='number'] {
|
|
510
520
|
display: none;
|
|
511
521
|
}
|
|
512
522
|
}
|
|
523
|
+
|
|
524
|
+
.#{$prefix}--number.#{$prefix}--skeleton.#{$prefix}--number--sm {
|
|
525
|
+
block-size: $spacing-07;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.#{$prefix}--number.#{$prefix}--skeleton.#{$prefix}--number--md {
|
|
529
|
+
block-size: $spacing-08;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
.#{$prefix}--number.#{$prefix}--skeleton.#{$prefix}--number--lg {
|
|
533
|
+
block-size: $spacing-09;
|
|
534
|
+
}
|
|
535
|
+
|
|
513
536
|
// Windows HCM fix
|
|
514
537
|
|
|
515
538
|
.#{$prefix}--number__control-btn:hover,
|
|
@@ -525,6 +548,7 @@
|
|
|
525
548
|
@include high-contrast-mode('icon-fill');
|
|
526
549
|
}
|
|
527
550
|
}
|
|
551
|
+
|
|
528
552
|
.#{$prefix}--number__controls:hover .#{$prefix}--number__control-btn::after {
|
|
529
553
|
display: none;
|
|
530
554
|
}
|
|
@@ -537,6 +561,7 @@
|
|
|
537
561
|
.#{$prefix}--number__control-btn:hover {
|
|
538
562
|
box-shadow: 0 -1px 0 $ai-border-strong inset;
|
|
539
563
|
}
|
|
564
|
+
|
|
540
565
|
//hide dividers on button focus
|
|
541
566
|
.#{$prefix}--number__controls:focus-within
|
|
542
567
|
.#{$prefix}--number__control-btn::after {
|