@carbon/styles 1.65.0 → 1.66.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 +101 -195
- package/css/styles.min.css +1 -1
- package/package.json +10 -10
- package/scss/_feature-flags.scss +0 -1
- package/scss/components/accordion/_accordion.scss +1 -2
- package/scss/components/breadcrumb/_breadcrumb.scss +1 -2
- package/scss/components/button/_button.scss +6 -1
- package/scss/components/button/_mixins.scss +6 -9
- package/scss/components/code-snippet/_code-snippet.scss +2 -4
- package/scss/components/contained-list/_contained-list.scss +4 -6
- package/scss/components/content-switcher/_content-switcher.scss +1 -2
- package/scss/components/data-table/_data-table.scss +23 -46
- package/scss/components/data-table/action/_data-table-action.scss +3 -6
- package/scss/components/data-table/expandable/_data-table-expandable.scss +2 -4
- package/scss/components/data-table/sort/_data-table-sort.scss +7 -14
- package/scss/components/date-picker/_flatpickr.scss +1 -2
- package/scss/components/dropdown/_dropdown.scss +4 -7
- package/scss/components/fluid-combo-box/_fluid-combo-box.scss +1 -2
- package/scss/components/fluid-date-picker/_fluid-date-picker.scss +1 -2
- package/scss/components/fluid-list-box/_fluid-list-box.scss +1 -2
- package/scss/components/list-box/_list-box.scss +5 -10
- package/scss/components/modal/_modal.scss +5 -10
- package/scss/components/notification/_actionable-notification.scss +1 -2
- package/scss/components/number-input/_number-input.scss +1 -2
- package/scss/components/overflow-menu/_overflow-menu.scss +2 -4
- package/scss/components/pagination/_pagination.scss +2 -4
- package/scss/components/pagination/_unstable_pagination.scss +1 -2
- package/scss/components/popover/_popover.scss +4 -8
- package/scss/components/radio-button/_radio-button.scss +1 -2
- package/scss/components/select/_select.scss +1 -2
- package/scss/components/slider/_slider.scss +1 -2
- package/scss/components/slug/_slug.scss +1 -2
- package/scss/components/structured-list/_mixins.scss +2 -4
- package/scss/components/structured-list/_structured-list.scss +1 -2
- package/scss/components/tabs/_tabs.scss +3 -6
- package/scss/components/tag/_tag.scss +1 -2
- package/scss/components/treeview/_treeview.scss +3 -6
- package/scss/components/ui-shell/header/_header.scss +1 -2
- package/scss/components/ui-shell/header-panel/_header-panel.scss +1 -2
- package/scss/components/ui-shell/side-nav/_side-nav.scss +3 -6
|
@@ -336,8 +336,7 @@
|
|
|
336
336
|
margin-inline-start: calc(
|
|
337
337
|
#{$spacing-07} + #{convert.to-rem(20px)} - #{convert.to-rem(2px)}
|
|
338
338
|
);
|
|
339
|
-
padding-inline
|
|
340
|
-
padding-inline-start: $spacing-05;
|
|
339
|
+
padding-inline: $spacing-05;
|
|
341
340
|
}
|
|
342
341
|
|
|
343
342
|
// Tertiary button styles by default use mostly "inverse" tokens. Since the non-low-contrast notification
|
|
@@ -59,8 +59,7 @@
|
|
|
59
59
|
font-weight: 400;
|
|
60
60
|
inline-size: 100%;
|
|
61
61
|
min-inline-size: 9.375rem;
|
|
62
|
-
padding-inline
|
|
63
|
-
padding-inline-start: $spacing-05;
|
|
62
|
+
padding-inline: $spacing-05 $spacing-12;
|
|
64
63
|
transition: background-color $duration-fast-01 motion(standard, productive),
|
|
65
64
|
outline $duration-fast-01 motion(standard, productive);
|
|
66
65
|
|
|
@@ -202,14 +202,12 @@
|
|
|
202
202
|
|
|
203
203
|
.#{$prefix}--overflow-menu--flip.#{$prefix}--overflow-menu-options[data-floating-menu-direction='top']::after,
|
|
204
204
|
.#{$prefix}--overflow-menu--flip.#{$prefix}--overflow-menu-options[data-floating-menu-direction='bottom']::after {
|
|
205
|
-
inset-inline
|
|
206
|
-
inset-inline-start: auto;
|
|
205
|
+
inset-inline: auto 0;
|
|
207
206
|
}
|
|
208
207
|
|
|
209
208
|
.#{$prefix}--overflow-menu--flip.#{$prefix}--overflow-menu-options[data-floating-menu-direction='left']::after,
|
|
210
209
|
.#{$prefix}--overflow-menu--flip.#{$prefix}--overflow-menu-options[data-floating-menu-direction='right']::after {
|
|
211
|
-
inset-block
|
|
212
|
-
inset-block-start: auto;
|
|
210
|
+
inset-block: auto 0;
|
|
213
211
|
}
|
|
214
212
|
|
|
215
213
|
.#{$prefix}--overflow-menu-options--open {
|
|
@@ -164,14 +164,12 @@
|
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
.#{$prefix}--pagination__right .#{$prefix}--pagination__text {
|
|
167
|
-
margin-inline
|
|
168
|
-
margin-inline-start: convert.to-rem(1px);
|
|
167
|
+
margin-inline: convert.to-rem(1px) 1rem;
|
|
169
168
|
}
|
|
170
169
|
|
|
171
170
|
.#{$prefix}--pagination__right
|
|
172
171
|
.#{$prefix}--pagination__text.#{$prefix}--pagination__page-text {
|
|
173
|
-
margin-inline
|
|
174
|
-
margin-inline-start: 1rem;
|
|
172
|
+
margin-inline: 1rem convert.to-rem(1px);
|
|
175
173
|
}
|
|
176
174
|
|
|
177
175
|
.#{$prefix}--pagination__right
|
|
@@ -66,8 +66,7 @@
|
|
|
66
66
|
|
|
67
67
|
.#{$prefix}--unstable-pagination__right
|
|
68
68
|
.#{$prefix}--unstable-pagination__text {
|
|
69
|
-
margin-inline
|
|
70
|
-
margin-inline-start: convert.to-rem(1px);
|
|
69
|
+
margin-inline: convert.to-rem(1px) $spacing-05;
|
|
71
70
|
}
|
|
72
71
|
|
|
73
72
|
.#{$prefix}--unstable-pagination__button {
|
|
@@ -297,8 +297,7 @@ $popover-caret-height: custom-property.get-var(
|
|
|
297
297
|
> .#{$prefix}--popover-content::before {
|
|
298
298
|
block-size: $popover-offset;
|
|
299
299
|
inset-block-start: 0;
|
|
300
|
-
inset-inline
|
|
301
|
-
inset-inline-start: 0;
|
|
300
|
+
inset-inline: 0 0;
|
|
302
301
|
transform: translateY(-100%);
|
|
303
302
|
}
|
|
304
303
|
|
|
@@ -461,8 +460,7 @@ $popover-caret-height: custom-property.get-var(
|
|
|
461
460
|
> .#{$prefix}--popover-content::before {
|
|
462
461
|
block-size: $popover-offset;
|
|
463
462
|
inset-block-end: 0;
|
|
464
|
-
inset-inline
|
|
465
|
-
inset-inline-start: 0;
|
|
463
|
+
inset-inline: 0 0;
|
|
466
464
|
transform: translateY(100%);
|
|
467
465
|
}
|
|
468
466
|
|
|
@@ -618,8 +616,7 @@ $popover-caret-height: custom-property.get-var(
|
|
|
618
616
|
> .#{$prefix}--popover
|
|
619
617
|
> .#{$prefix}--popover-content::before {
|
|
620
618
|
inline-size: $popover-offset;
|
|
621
|
-
inset-block
|
|
622
|
-
inset-block-start: 0;
|
|
619
|
+
inset-block: 0 0;
|
|
623
620
|
inset-inline-start: 0;
|
|
624
621
|
transform: translateX(-100%);
|
|
625
622
|
}
|
|
@@ -786,8 +783,7 @@ $popover-caret-height: custom-property.get-var(
|
|
|
786
783
|
> .#{$prefix}--popover
|
|
787
784
|
> .#{$prefix}--popover-content::before {
|
|
788
785
|
inline-size: $popover-offset;
|
|
789
|
-
inset-block
|
|
790
|
-
inset-block-start: 0;
|
|
786
|
+
inset-block: 0 0;
|
|
791
787
|
inset-inline-end: 0;
|
|
792
788
|
transform: translateX(100%);
|
|
793
789
|
}
|
|
@@ -285,8 +285,7 @@ $radio-border-width: 1px !default;
|
|
|
285
285
|
.#{$prefix}--radio-button__appearance,
|
|
286
286
|
.#{$prefix}--radio-button-wrapper.#{$prefix}--radio-button-wrapper--label-left
|
|
287
287
|
.#{$prefix}--radio-button__appearance {
|
|
288
|
-
margin-inline
|
|
289
|
-
margin-inline-start: $spacing-03;
|
|
288
|
+
margin-inline: $spacing-03 0;
|
|
290
289
|
}
|
|
291
290
|
|
|
292
291
|
// Slug styles
|
|
@@ -217,8 +217,7 @@
|
|
|
217
217
|
border-block-end: none;
|
|
218
218
|
color: $text-primary;
|
|
219
219
|
inline-size: auto;
|
|
220
|
-
padding-inline
|
|
221
|
-
padding-inline-start: $spacing-03;
|
|
220
|
+
padding-inline: $spacing-03 $spacing-07;
|
|
222
221
|
}
|
|
223
222
|
|
|
224
223
|
.#{$prefix}--select--inline .#{$prefix}--select-input:focus,
|
|
@@ -684,8 +684,7 @@ $sizes: (
|
|
|
684
684
|
|
|
685
685
|
.#{$prefix}--slug .#{$prefix}--toggletip-content {
|
|
686
686
|
// This sets the max size to the size of the action bar with 3 buttons
|
|
687
|
-
padding-block
|
|
688
|
-
padding-block-start: convert.to-rem(24px);
|
|
687
|
+
padding-block: convert.to-rem(24px) convert.to-rem(80px);
|
|
689
688
|
padding-inline: convert.to-rem(24px);
|
|
690
689
|
}
|
|
691
690
|
|
|
@@ -32,13 +32,11 @@ $structured-list-text-transform: none !default;
|
|
|
32
32
|
/// @group structured-list
|
|
33
33
|
/// @param {Number} $padding [$structured-list-padding]
|
|
34
34
|
@mixin padding--data-structured-list($padding: $structured-list-padding) {
|
|
35
|
-
padding-inline
|
|
36
|
-
padding-inline-start: $padding * 0.5;
|
|
35
|
+
padding-inline: $padding * 0.5 $padding * 0.5;
|
|
37
36
|
|
|
38
37
|
// Controls gutter sizes for check
|
|
39
38
|
&:first-child {
|
|
40
|
-
padding-inline
|
|
41
|
-
padding-inline-start: $padding * 0.5;
|
|
39
|
+
padding-inline: $padding * 0.5 $padding * 0.5;
|
|
42
40
|
}
|
|
43
41
|
}
|
|
44
42
|
|
|
@@ -91,10 +91,9 @@
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
.#{$prefix}--tab--list {
|
|
94
|
+
overflow: visible auto;
|
|
94
95
|
flex-direction: column;
|
|
95
96
|
inline-size: 100%;
|
|
96
|
-
overflow-x: visible;
|
|
97
|
-
overflow-y: auto;
|
|
98
97
|
}
|
|
99
98
|
|
|
100
99
|
.#{$prefix}--tab--list-gradient_bottom {
|
|
@@ -157,8 +156,7 @@
|
|
|
157
156
|
|
|
158
157
|
.#{$prefix}--tab--overflow-nav-button--next {
|
|
159
158
|
position: absolute;
|
|
160
|
-
inset-block
|
|
161
|
-
inset-block-start: 0;
|
|
159
|
+
inset-block: 0 0;
|
|
162
160
|
inset-inline-end: 0;
|
|
163
161
|
}
|
|
164
162
|
|
|
@@ -187,8 +185,7 @@
|
|
|
187
185
|
|
|
188
186
|
.#{$prefix}--tab--overflow-nav-button--previous {
|
|
189
187
|
position: absolute;
|
|
190
|
-
inset-block
|
|
191
|
-
inset-block-start: 0;
|
|
188
|
+
inset-block: 0 0;
|
|
192
189
|
inset-inline-start: 0;
|
|
193
190
|
}
|
|
194
191
|
|
|
@@ -100,9 +100,8 @@
|
|
|
100
100
|
|
|
101
101
|
.#{$prefix}--tree-node:not(.#{$prefix}--tree-parent-node)
|
|
102
102
|
.#{$prefix}--tree-node__label {
|
|
103
|
-
padding-block
|
|
103
|
+
padding-block: convert.to-rem(7px) convert.to-rem(7px);
|
|
104
104
|
// (min-height 32px - single line text height 18px) / 2 = 7px
|
|
105
|
-
padding-block-start: convert.to-rem(7px);
|
|
106
105
|
}
|
|
107
106
|
|
|
108
107
|
.#{$prefix}--tree-node__label:hover .#{$prefix}--tree-node__label__details {
|
|
@@ -146,8 +145,7 @@
|
|
|
146
145
|
block-size: convert.to-rem(24px);
|
|
147
146
|
inline-size: convert.to-rem(24px);
|
|
148
147
|
margin-block-start: $spacing-02;
|
|
149
|
-
margin-inline
|
|
150
|
-
margin-inline-start: -$spacing-02;
|
|
148
|
+
margin-inline: -$spacing-02 $spacing-02;
|
|
151
149
|
padding-inline-start: $spacing-02;
|
|
152
150
|
|
|
153
151
|
&:hover {
|
|
@@ -173,8 +171,7 @@
|
|
|
173
171
|
align-self: flex-start;
|
|
174
172
|
fill: $icon-secondary;
|
|
175
173
|
margin-block-start: convert.to-rem(1px);
|
|
176
|
-
margin-inline
|
|
177
|
-
margin-inline-start: $spacing-03;
|
|
174
|
+
margin-inline: $spacing-03 $spacing-03;
|
|
178
175
|
min-block-size: 1rem;
|
|
179
176
|
min-inline-size: 1rem;
|
|
180
177
|
}
|
|
@@ -27,8 +27,7 @@
|
|
|
27
27
|
background-color: $layer;
|
|
28
28
|
color: $text-secondary;
|
|
29
29
|
inline-size: 0;
|
|
30
|
-
inset-block
|
|
31
|
-
inset-block-start: mini-units(6);
|
|
30
|
+
inset-block: mini-units(6) 0;
|
|
32
31
|
inset-inline-end: 0;
|
|
33
32
|
transition: width $duration-fast-02 motion(exit, productive);
|
|
34
33
|
will-change: width;
|
|
@@ -36,8 +36,7 @@
|
|
|
36
36
|
background-color: $background;
|
|
37
37
|
color: $text-secondary;
|
|
38
38
|
inline-size: mini-units(6);
|
|
39
|
-
inset-block
|
|
40
|
-
inset-block-start: 0;
|
|
39
|
+
inset-block: 0 0;
|
|
41
40
|
inset-inline-start: 0;
|
|
42
41
|
max-inline-size: mini-units(32);
|
|
43
42
|
// TODO: sync with motion work
|
|
@@ -271,8 +270,7 @@
|
|
|
271
270
|
background-color: $border-interactive;
|
|
272
271
|
content: '';
|
|
273
272
|
inline-size: 3px;
|
|
274
|
-
inset-block
|
|
275
|
-
inset-block-start: 0;
|
|
273
|
+
inset-block: 0 0;
|
|
276
274
|
inset-inline-start: 0;
|
|
277
275
|
}
|
|
278
276
|
}
|
|
@@ -383,8 +381,7 @@
|
|
|
383
381
|
background-color: $border-interactive;
|
|
384
382
|
content: '';
|
|
385
383
|
inline-size: 3px;
|
|
386
|
-
inset-block
|
|
387
|
-
inset-block-start: 0;
|
|
384
|
+
inset-block: 0 0;
|
|
388
385
|
inset-inline-start: 0;
|
|
389
386
|
}
|
|
390
387
|
|