@carbon/styles 1.37.0 → 1.38.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 +2588 -2403
- package/css/styles.min.css +1 -1
- package/package.json +5 -5
- package/scss/components/accordion/_accordion.scss +47 -35
- package/scss/components/aspect-ratio/_aspect-ratio.scss +7 -4
- package/scss/components/breadcrumb/_breadcrumb.scss +26 -20
- package/scss/components/button/_button.scss +16 -11
- package/scss/components/button/_mixins.scss +12 -12
- package/scss/components/checkbox/_checkbox.scss +55 -40
- package/scss/components/code-snippet/_code-snippet.scss +74 -59
- package/scss/components/code-snippet/_mixins.scss +2 -2
- package/scss/components/combo-box/_combo-box.scss +2 -2
- package/scss/components/combo-button/_combo-button.scss +2 -2
- package/scss/components/contained-list/_contained-list.scss +41 -22
- package/scss/components/content-switcher/_content-switcher.scss +32 -32
- package/scss/components/data-table/_data-table.scss +150 -144
- package/scss/components/data-table/_mixins.scss +3 -3
- package/scss/components/data-table/action/_data-table-action.scss +83 -81
- package/scss/components/data-table/expandable/_data-table-expandable.scss +60 -60
- package/scss/components/data-table/skeleton/_data-table-skeleton.scss +10 -8
- package/scss/components/data-table/sort/_data-table-sort.scss +38 -38
- package/scss/components/date-picker/_date-picker.scss +21 -20
- package/scss/components/date-picker/_flatpickr.scss +51 -51
- package/scss/components/dropdown/_dropdown.scss +49 -49
- package/scss/components/file-uploader/_file-uploader.scss +37 -37
- package/scss/components/fluid-combo-box/_fluid-combo-box.scss +4 -4
- package/scss/components/fluid-date-picker/_fluid-date-picker.scss +54 -54
- package/scss/components/fluid-list-box/_fluid-list-box.scss +33 -33
- package/scss/components/fluid-multiselect/_fluid-multiselect.scss +2 -2
- package/scss/components/fluid-number-input/_fluid-number-input.scss +30 -30
- package/scss/components/fluid-search/_fluid-search.scss +17 -17
- package/scss/components/fluid-select/_fluid-select.scss +17 -17
- package/scss/components/fluid-text-area/_fluid-text-area.scss +21 -21
- package/scss/components/fluid-text-input/_fluid-text-input.scss +26 -26
- package/scss/components/fluid-time-picker/_fluid-time-picker.scss +23 -23
- package/scss/components/form/_form.scss +16 -15
- package/scss/components/inline-loading/_inline-loading.scss +9 -9
- package/scss/components/link/_link.scss +1 -1
- package/scss/components/list/_list.scss +7 -7
- package/scss/components/list-box/_list-box.scss +109 -107
- package/scss/components/loading/_loading.scss +10 -9
- package/scss/components/menu/_menu.scss +7 -7
- package/scss/components/menu-button/_menu-button.scss +1 -1
- package/scss/components/modal/_modal.scss +72 -72
- package/scss/components/multiselect/_multiselect.scss +11 -11
- package/scss/components/notification/_actionable-notification.scss +37 -39
- package/scss/components/notification/_inline-notification.scss +26 -26
- package/scss/components/notification/_mixins.scss +3 -3
- package/scss/components/notification/_toast-notification.scss +16 -18
- package/scss/components/number-input/_number-input.scss +70 -70
- package/scss/components/overflow-menu/_overflow-menu.scss +50 -50
- package/scss/components/pagination/_pagination.scss +46 -34
- package/scss/components/pagination/_unstable_pagination.scss +26 -24
- package/scss/components/pagination-nav/_mixins.scss +6 -6
- package/scss/components/pagination-nav/_pagination-nav.scss +16 -11
- package/scss/components/popover/_popover.scss +201 -63
- package/scss/components/progress-bar/_progress-bar.scss +33 -11
- package/scss/components/progress-indicator/_progress-indicator.scss +46 -42
- package/scss/components/radio-button/_radio-button.scss +24 -23
- package/scss/components/search/_search.scss +35 -34
- package/scss/components/select/_select.scss +31 -29
- package/scss/components/skeleton-styles/_skeleton-styles.scss +10 -8
- package/scss/components/slider/_slider.scss +28 -28
- package/scss/components/structured-list/_mixins.scss +4 -4
- package/scss/components/structured-list/_structured-list.scss +16 -16
- package/scss/components/tabs/_tabs.scss +50 -50
- package/scss/components/tag/_tag.scss +22 -20
- package/scss/components/text-area/_text-area.scss +17 -15
- package/scss/components/text-input/_text-input.scss +43 -41
- package/scss/components/tile/_tile.scss +11 -11
- package/scss/components/time-picker/_time-picker.scss +17 -17
- package/scss/components/toggle/_toggle.scss +37 -24
- package/scss/components/toggletip/_toggletip.scss +3 -2
- package/scss/components/tooltip/_tooltip.scss +7 -5
- package/scss/components/treeview/_treeview.scss +27 -27
- package/scss/components/ui-shell/content/_content.scss +3 -3
- package/scss/components/ui-shell/header/_header.scss +47 -47
- package/scss/components/ui-shell/header-panel/_header-panel.scss +7 -7
- package/scss/components/ui-shell/side-nav/_side-nav.scss +65 -65
- package/scss/components/ui-shell/switcher/_switcher.scss +6 -6
- package/scss/utilities/_button-reset.scss +1 -1
- package/scss/utilities/_skeleton.scss +4 -4
- package/scss/utilities/_text-overflow.scss +1 -1
- package/scss/utilities/_text-truncate.scss +2 -2
- package/scss/utilities/_tooltip.scss +44 -46
- package/scss/utilities/_visually-hidden.scss +4 -4
|
@@ -54,10 +54,10 @@ $input-label-weight: 400 !default;
|
|
|
54
54
|
@include type-style('label-01');
|
|
55
55
|
|
|
56
56
|
display: inline-block;
|
|
57
|
-
margin-bottom: $spacing-03;
|
|
58
57
|
color: $text-secondary;
|
|
59
58
|
font-weight: $input-label-weight;
|
|
60
59
|
line-height: 1rem;
|
|
60
|
+
margin-block-end: $spacing-03;
|
|
61
61
|
vertical-align: baseline;
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -66,13 +66,13 @@ $input-label-weight: 400 !default;
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
.#{$prefix}--label--no-margin {
|
|
69
|
-
margin-
|
|
69
|
+
margin-block-end: 0;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
.#{$prefix}--label + .#{$prefix}--tooltip {
|
|
73
73
|
position: relative;
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
inset-block-start: 0.2rem;
|
|
75
|
+
inset-inline-start: 0.5rem;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
.#{$prefix}--label + .#{$prefix}--tooltip .#{$prefix}--tooltip__trigger {
|
|
@@ -103,16 +103,17 @@ $input-label-weight: 400 !default;
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
.#{$prefix}--label + .#{$prefix}--toggletip {
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
inset-block-start: 0.2rem;
|
|
107
|
+
inset-inline-start: 0.5rem;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
// Skeleton State
|
|
111
111
|
.#{$prefix}--label.#{$prefix}--skeleton {
|
|
112
112
|
@include skeleton;
|
|
113
113
|
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
block-size: convert.to-rem(14px);
|
|
115
|
+
|
|
116
|
+
inline-size: convert.to-rem(75px);
|
|
116
117
|
}
|
|
117
118
|
|
|
118
119
|
input[type='number'] {
|
|
@@ -156,8 +157,8 @@ $input-label-weight: 400 !default;
|
|
|
156
157
|
~ .#{$prefix}--form-requirement {
|
|
157
158
|
display: block;
|
|
158
159
|
overflow: visible;
|
|
159
|
-
max-height: convert.to-rem(200px);
|
|
160
160
|
font-weight: 400;
|
|
161
|
+
max-block-size: convert.to-rem(200px);
|
|
161
162
|
}
|
|
162
163
|
}
|
|
163
164
|
|
|
@@ -192,7 +193,7 @@ $input-label-weight: 400 !default;
|
|
|
192
193
|
}
|
|
193
194
|
|
|
194
195
|
// Fix for red ring when input is marked required in Firefox, refs #744
|
|
195
|
-
input:not(output
|
|
196
|
+
input:not(output, [data-invalid]):-moz-ui-invalid {
|
|
196
197
|
box-shadow: none;
|
|
197
198
|
}
|
|
198
199
|
|
|
@@ -202,22 +203,22 @@ $input-label-weight: 400 !default;
|
|
|
202
203
|
|
|
203
204
|
display: none;
|
|
204
205
|
overflow: hidden;
|
|
205
|
-
max-height: 0;
|
|
206
206
|
margin: $spacing-02 0 0;
|
|
207
|
+
max-block-size: 0;
|
|
207
208
|
}
|
|
208
209
|
|
|
209
210
|
.#{$prefix}--select--inline .#{$prefix}--form__helper-text {
|
|
210
|
-
margin-
|
|
211
|
+
margin-block-start: 0;
|
|
211
212
|
}
|
|
212
213
|
|
|
213
214
|
.#{$prefix}--form__helper-text {
|
|
214
215
|
@include type-style('helper-text-01');
|
|
215
216
|
|
|
216
217
|
z-index: 0;
|
|
217
|
-
// Added to prevent error text from displaying under helper text in Safari (#6392)
|
|
218
|
-
width: 100%;
|
|
219
|
-
margin-top: $spacing-02;
|
|
220
218
|
color: $text-secondary;
|
|
219
|
+
// Added to prevent error text from displaying under helper text in Safari (#6392)
|
|
220
|
+
inline-size: 100%;
|
|
221
|
+
margin-block-start: $spacing-02;
|
|
221
222
|
opacity: 1;
|
|
222
223
|
}
|
|
223
224
|
|
|
@@ -24,9 +24,9 @@ $-loading-gap-small: 110;
|
|
|
24
24
|
@mixin inline-loading {
|
|
25
25
|
.#{$prefix}--inline-loading {
|
|
26
26
|
display: flex;
|
|
27
|
-
width: 100%;
|
|
28
|
-
min-height: 2rem;
|
|
29
27
|
align-items: center;
|
|
28
|
+
inline-size: 100%;
|
|
29
|
+
min-block-size: 2rem;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.#{$prefix}--inline-loading__text {
|
|
@@ -40,7 +40,7 @@ $-loading-gap-small: 110;
|
|
|
40
40
|
display: flex;
|
|
41
41
|
align-items: center;
|
|
42
42
|
justify-content: center;
|
|
43
|
-
margin-
|
|
43
|
+
margin-inline-end: $spacing-03;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.#{$prefix}--inline-loading__checkmark-container {
|
|
@@ -49,8 +49,8 @@ $-loading-gap-small: 110;
|
|
|
49
49
|
// For deprecated older markup
|
|
50
50
|
&.#{$prefix}--inline-loading__svg {
|
|
51
51
|
position: absolute;
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
inline-size: 0.75rem;
|
|
53
|
+
inset-block-start: 0.75rem;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
&[hidden] {
|
|
@@ -71,9 +71,9 @@ $-loading-gap-small: 110;
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
.#{$prefix}--inline-loading--error {
|
|
74
|
-
|
|
75
|
-
height: convert.to-rem(16px);
|
|
74
|
+
block-size: convert.to-rem(16px);
|
|
76
75
|
fill: $support-error;
|
|
76
|
+
inline-size: convert.to-rem(16px);
|
|
77
77
|
|
|
78
78
|
&[hidden] {
|
|
79
79
|
display: none;
|
|
@@ -87,8 +87,8 @@ $-loading-gap-small: 110;
|
|
|
87
87
|
@media screen and (-ms-high-contrast: active),
|
|
88
88
|
screen and (-ms-high-contrast: none) {
|
|
89
89
|
.#{$prefix}--inline-loading__checkmark-container {
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
inset-block-start: 1px;
|
|
91
|
+
inset-inline-end: 0.5rem;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
.#{$prefix}--inline-loading__checkmark {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.#{$prefix}--list--unordered:not(.#{$prefix}--list--nested) {
|
|
34
|
-
margin-
|
|
34
|
+
margin-inline-start: $spacing-05;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.#{$prefix}--list--expressive,
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.#{$prefix}--list--nested {
|
|
51
|
-
margin-
|
|
51
|
+
margin-inline-start: convert.to-rem(32px);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.#{$prefix}--list--nested .#{$prefix}--list__item {
|
|
55
|
-
padding-
|
|
55
|
+
padding-inline-start: $spacing-02;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
.#{$prefix}--list--ordered:not(.#{$prefix}--list--nested) {
|
|
@@ -67,9 +67,9 @@
|
|
|
67
67
|
.#{$prefix}--list--ordered:not(.#{$prefix}--list--nested)
|
|
68
68
|
> .#{$prefix}--list__item::before {
|
|
69
69
|
position: absolute;
|
|
70
|
-
left: convert.to-rem(-24px);
|
|
71
70
|
content: counter(item) '.';
|
|
72
71
|
counter-increment: item;
|
|
72
|
+
inset-inline-start: convert.to-rem(-24px);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
.#{$prefix}--list--ordered.#{$prefix}--list--nested,
|
|
@@ -82,17 +82,17 @@
|
|
|
82
82
|
|
|
83
83
|
&::before {
|
|
84
84
|
position: absolute;
|
|
85
|
-
left: calc(-1 * #{$spacing-05});
|
|
86
85
|
// – en dash
|
|
87
86
|
content: '\002013';
|
|
87
|
+
inset-inline-start: calc(-1 * #{$spacing-05});
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
.#{$prefix}--list--unordered.#{$prefix}--list--nested
|
|
92
92
|
> .#{$prefix}--list__item::before {
|
|
93
|
-
// offset to account for smaller ▪ vs –
|
|
94
|
-
left: calc(-1 * #{$spacing-04});
|
|
95
93
|
// ▪ square
|
|
96
94
|
content: '\0025AA';
|
|
95
|
+
// offset to account for smaller ▪ vs –
|
|
96
|
+
inset-inline-start: calc(-1 * #{$spacing-04});
|
|
97
97
|
}
|
|
98
98
|
}
|