@carbon/styles 1.82.0 → 1.83.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 +371 -285
- package/css/styles.min.css +1 -1
- package/package.json +9 -9
- package/scss/_reset.scss +2 -1
- package/scss/_theme.scss +49 -0
- package/scss/components/accordion/_accordion.scss +0 -7
- package/scss/components/breadcrumb/_breadcrumb.scss +1 -1
- package/scss/components/button/_button.scss +0 -9
- package/scss/components/checkbox/_checkbox.scss +17 -0
- package/scss/components/code-snippet/_code-snippet.scss +0 -5
- package/scss/components/data-table/_data-table.scss +2 -1
- package/scss/components/data-table/expandable/_data-table-expandable.scss +0 -4
- package/scss/components/data-table/sort/_data-table-sort.scss +0 -7
- package/scss/components/date-picker/_date-picker.scss +0 -7
- package/scss/components/date-picker/_flatpickr.scss +0 -2
- package/scss/components/dialog/_dialog.scss +160 -13
- package/scss/components/dropdown/_dropdown.scss +0 -4
- package/scss/components/file-uploader/_file-uploader.scss +1 -5
- package/scss/components/fluid-number-input/_fluid-number-input.scss +103 -5
- package/scss/components/form/_form.scss +3 -1
- package/scss/components/list-box/_list-box.scss +0 -6
- package/scss/components/modal/_modal.scss +0 -5
- package/scss/components/notification/_actionable-notification.scss +0 -7
- package/scss/components/notification/_inline-notification.scss +0 -8
- package/scss/components/notification/_toast-notification.scss +0 -6
- package/scss/components/number-input/_number-input.scss +87 -18
- package/scss/components/overflow-menu/_overflow-menu.scss +0 -4
- package/scss/components/page-header/_page-header.scss +60 -19
- package/scss/components/pagination-nav/_pagination-nav.scss +0 -1
- package/scss/components/popover/_popover.scss +0 -1
- package/scss/components/radio-button/_radio-button.scss +1 -1
- package/scss/components/search/_search.scss +0 -7
- package/scss/components/select/_select.scss +0 -7
- package/scss/components/structured-list/_structured-list.scss +0 -8
- package/scss/components/tabs/_tabs.scss +6 -4
- package/scss/components/tag/_tag.scss +0 -5
- package/scss/components/text-input/_text-input.scss +0 -18
- package/scss/components/tile/_tile.scss +0 -22
- package/scss/components/ui-shell/side-nav/_side-nav.scss +0 -13
- package/scss/utilities/_high-contrast-mode.scss +0 -4
- package/scss/utilities/_layout.scss +2 -1
- package/scss/utilities/_update_fields_on_layer.scss +1 -0
|
@@ -58,7 +58,8 @@
|
|
|
58
58
|
position: initial;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
.#{$prefix}--number-input--fluid input[type='number']
|
|
61
|
+
.#{$prefix}--number-input--fluid input[type='number'],
|
|
62
|
+
.#{$prefix}--number-input--fluid input[type='text'] {
|
|
62
63
|
padding: convert.to-rem(32px) convert.to-rem(80px) convert.to-rem(13px)
|
|
63
64
|
$spacing-05;
|
|
64
65
|
background: transparent;
|
|
@@ -75,6 +76,10 @@
|
|
|
75
76
|
.#{$prefix}--number-input--fluid
|
|
76
77
|
input[type='number']:focus
|
|
77
78
|
~ .#{$prefix}--number__controls
|
|
79
|
+
.#{$prefix}--number__control-btn,
|
|
80
|
+
.#{$prefix}--number-input--fluid
|
|
81
|
+
input[type='text']:focus
|
|
82
|
+
~ .#{$prefix}--number__controls
|
|
78
83
|
.#{$prefix}--number__control-btn {
|
|
79
84
|
border-block-end-color: $focus;
|
|
80
85
|
box-shadow: inset 0 -1px $focus;
|
|
@@ -83,6 +88,10 @@
|
|
|
83
88
|
.#{$prefix}--number-input--fluid
|
|
84
89
|
input[type='number']:focus
|
|
85
90
|
~ .#{$prefix}--number__controls
|
|
91
|
+
.#{$prefix}--number__control-btn:last-of-type,
|
|
92
|
+
.#{$prefix}--number-input--fluid
|
|
93
|
+
input[type='text']:focus
|
|
94
|
+
~ .#{$prefix}--number__controls
|
|
86
95
|
.#{$prefix}--number__control-btn:last-of-type {
|
|
87
96
|
box-shadow:
|
|
88
97
|
inset 0 -1px $focus,
|
|
@@ -97,6 +106,15 @@
|
|
|
97
106
|
.#{$prefix}--number-input--fluid--invalid
|
|
98
107
|
input[type='number']:focus
|
|
99
108
|
~ .#{$prefix}--number__controls
|
|
109
|
+
.#{$prefix}--number__control-btn,
|
|
110
|
+
.#{$prefix}--number-input--fluid
|
|
111
|
+
.#{$prefix}--number__input-wrapper--warning
|
|
112
|
+
input[type='text']:focus
|
|
113
|
+
~ .#{$prefix}--number__controls
|
|
114
|
+
.#{$prefix}--number__control-btn,
|
|
115
|
+
.#{$prefix}--number-input--fluid--invalid
|
|
116
|
+
input[type='text']:focus
|
|
117
|
+
~ .#{$prefix}--number__controls
|
|
100
118
|
.#{$prefix}--number__control-btn {
|
|
101
119
|
border-block-end-color: transparent;
|
|
102
120
|
box-shadow: none;
|
|
@@ -110,6 +128,15 @@
|
|
|
110
128
|
.#{$prefix}--number-input--fluid--invalid
|
|
111
129
|
input[type='number'][data-invalid]:focus
|
|
112
130
|
~ .#{$prefix}--number__controls
|
|
131
|
+
.#{$prefix}--number__control-btn:last-of-type,
|
|
132
|
+
.#{$prefix}--number-input--fluid
|
|
133
|
+
.#{$prefix}--number__input-wrapper--warning
|
|
134
|
+
input[type='text']:focus
|
|
135
|
+
~ .#{$prefix}--number__controls
|
|
136
|
+
.#{$prefix}--number__control-btn:last-of-type,
|
|
137
|
+
.#{$prefix}--number-input--fluid--invalid
|
|
138
|
+
input[type='text'][data-invalid]:focus
|
|
139
|
+
~ .#{$prefix}--number__controls
|
|
113
140
|
.#{$prefix}--number__control-btn:last-of-type {
|
|
114
141
|
box-shadow: inset -2px 0 $focus;
|
|
115
142
|
}
|
|
@@ -117,6 +144,10 @@
|
|
|
117
144
|
.#{$prefix}--number-input--fluid--invalid
|
|
118
145
|
input[type='number'][data-invalid]:not(:focus)
|
|
119
146
|
~ .#{$prefix}--number__controls
|
|
147
|
+
.#{$prefix}--number__control-btn:last-of-type:hover,
|
|
148
|
+
.#{$prefix}--number-input--fluid--invalid
|
|
149
|
+
input[type='text'][data-invalid]:not(:focus)
|
|
150
|
+
~ .#{$prefix}--number__controls
|
|
120
151
|
.#{$prefix}--number__control-btn:last-of-type:hover {
|
|
121
152
|
box-shadow: inset -2px 0 $support-error;
|
|
122
153
|
}
|
|
@@ -124,6 +155,10 @@
|
|
|
124
155
|
.#{$prefix}--number-input--fluid--invalid
|
|
125
156
|
input[type='number'][data-invalid]:not(:focus)
|
|
126
157
|
~ .#{$prefix}--number__controls
|
|
158
|
+
.#{$prefix}--number__control-btn:hover,
|
|
159
|
+
.#{$prefix}--number-input--fluid--invalid
|
|
160
|
+
input[type='text'][data-invalid]:not(:focus)
|
|
161
|
+
~ .#{$prefix}--number__controls
|
|
127
162
|
.#{$prefix}--number__control-btn:hover {
|
|
128
163
|
box-shadow: none;
|
|
129
164
|
}
|
|
@@ -141,6 +176,15 @@
|
|
|
141
176
|
)
|
|
142
177
|
input[type='number']:focus
|
|
143
178
|
~ .#{$prefix}--number__controls
|
|
179
|
+
.#{$prefix}--number__control-btn:hover,
|
|
180
|
+
.#{$prefix}--number-input--fluid:not(
|
|
181
|
+
.#{$prefix}--number-input--fluid--invalid
|
|
182
|
+
)
|
|
183
|
+
.#{$prefix}--number-input-wrapper:not(
|
|
184
|
+
.#{$prefix}--number-input-wrapper__warning
|
|
185
|
+
)
|
|
186
|
+
input[type='text']:focus
|
|
187
|
+
~ .#{$prefix}--number__controls
|
|
144
188
|
.#{$prefix}--number__control-btn:hover {
|
|
145
189
|
border-block-end: 1px solid $focus;
|
|
146
190
|
outline: none;
|
|
@@ -154,6 +198,15 @@
|
|
|
154
198
|
.#{$prefix}--number
|
|
155
199
|
input[type='number'][data-invalid]
|
|
156
200
|
~ .#{$prefix}--number__controls
|
|
201
|
+
.#{$prefix}--number__control-btn:focus:hover,
|
|
202
|
+
.#{$prefix}--number-input--fluid--invalid
|
|
203
|
+
input[type='text'][data-invalid]
|
|
204
|
+
~ .#{$prefix}--number__controls
|
|
205
|
+
.#{$prefix}--number__control-btn:focus,
|
|
206
|
+
.#{$prefix}--number-input--fluid--invalid
|
|
207
|
+
.#{$prefix}--number
|
|
208
|
+
input[type='text'][data-invalid]
|
|
209
|
+
~ .#{$prefix}--number__controls
|
|
157
210
|
.#{$prefix}--number__control-btn:focus:hover {
|
|
158
211
|
@include focus-outline('outline');
|
|
159
212
|
}
|
|
@@ -177,13 +230,19 @@
|
|
|
177
230
|
|
|
178
231
|
.#{$prefix}--number-input--fluid
|
|
179
232
|
.#{$prefix}--number__input-wrapper--warning
|
|
180
|
-
input[type='number']
|
|
233
|
+
input[type='number'],
|
|
234
|
+
.#{$prefix}--number-input--fluid
|
|
235
|
+
.#{$prefix}--number__input-wrapper--warning
|
|
236
|
+
input[type='text'] {
|
|
181
237
|
border-block-end: 1px solid transparent;
|
|
182
238
|
}
|
|
183
239
|
|
|
184
240
|
.#{$prefix}--number-input--fluid
|
|
185
241
|
.#{$prefix}--number__input-wrapper--warning
|
|
186
|
-
input[type='number']:focus
|
|
242
|
+
input[type='number']:focus,
|
|
243
|
+
.#{$prefix}--number-input--fluid
|
|
244
|
+
.#{$prefix}--number__input-wrapper--warning
|
|
245
|
+
input[type='text']:focus {
|
|
187
246
|
outline: none;
|
|
188
247
|
}
|
|
189
248
|
|
|
@@ -216,7 +275,10 @@
|
|
|
216
275
|
|
|
217
276
|
.#{$prefix}--number-input--fluid--invalid
|
|
218
277
|
.#{$prefix}--number[data-invalid]
|
|
219
|
-
input[type='number']
|
|
278
|
+
input[type='number'],
|
|
279
|
+
.#{$prefix}--number-input--fluid--invalid
|
|
280
|
+
.#{$prefix}--number[data-invalid]
|
|
281
|
+
input[type='text'] {
|
|
220
282
|
border-block-end: 1px solid transparent;
|
|
221
283
|
}
|
|
222
284
|
|
|
@@ -232,6 +294,19 @@
|
|
|
232
294
|
.#{$prefix}--number__input-wrapper--warning
|
|
233
295
|
input[type='number']
|
|
234
296
|
~ .#{$prefix}--number__controls
|
|
297
|
+
.#{$prefix}--number__control-btn:hover:not(:focus),
|
|
298
|
+
.#{$prefix}--number-input--fluid--invalid
|
|
299
|
+
.#{$prefix}--number[data-invalid]
|
|
300
|
+
input[type='text'],
|
|
301
|
+
.#{$prefix}--number-input--fluid--invalid
|
|
302
|
+
.#{$prefix}--number
|
|
303
|
+
input[type='text'][data-invalid]
|
|
304
|
+
~ .#{$prefix}--number__controls
|
|
305
|
+
.#{$prefix}--number__control-btn:hover,
|
|
306
|
+
.#{$prefix}--number-input--fluid
|
|
307
|
+
.#{$prefix}--number__input-wrapper--warning
|
|
308
|
+
input[type='text']
|
|
309
|
+
~ .#{$prefix}--number__controls
|
|
235
310
|
.#{$prefix}--number__control-btn:hover:not(:focus) {
|
|
236
311
|
outline: none;
|
|
237
312
|
}
|
|
@@ -245,6 +320,16 @@
|
|
|
245
320
|
.#{$prefix}--number__input-wrapper--warning
|
|
246
321
|
input[type='number']
|
|
247
322
|
~ .#{$prefix}--number__controls
|
|
323
|
+
.#{$prefix}--number__control-btn,
|
|
324
|
+
.#{$prefix}--number-input--fluid.#{$prefix}--number-input--invalid
|
|
325
|
+
.#{$prefix}--number__input-wrapper
|
|
326
|
+
input[type='text']
|
|
327
|
+
~ .#{$prefix}--number__controls
|
|
328
|
+
.#{$prefix}--number__control-btn,
|
|
329
|
+
.#{$prefix}--number-input--fluid
|
|
330
|
+
.#{$prefix}--number__input-wrapper--warning
|
|
331
|
+
input[type='text']
|
|
332
|
+
~ .#{$prefix}--number__controls
|
|
248
333
|
.#{$prefix}--number__control-btn {
|
|
249
334
|
border-block-end: none;
|
|
250
335
|
}
|
|
@@ -258,6 +343,16 @@
|
|
|
258
343
|
.#{$prefix}--number
|
|
259
344
|
input[type='number']
|
|
260
345
|
~ .#{$prefix}--number__controls
|
|
346
|
+
.#{$prefix}--number__control-btn,
|
|
347
|
+
.#{$prefix}--number-input--fluid--invalid
|
|
348
|
+
.#{$prefix}--number
|
|
349
|
+
input[type='text'][data-invalid]
|
|
350
|
+
~ .#{$prefix}--number__controls
|
|
351
|
+
.#{$prefix}--number__control-btn,
|
|
352
|
+
.#{$prefix}--number-input--fluid
|
|
353
|
+
.#{$prefix}--number
|
|
354
|
+
input[type='text']
|
|
355
|
+
~ .#{$prefix}--number__controls
|
|
261
356
|
.#{$prefix}--number__control-btn {
|
|
262
357
|
border: initial;
|
|
263
358
|
border-block-end-width: convert.to-rem(1px);
|
|
@@ -273,7 +368,10 @@
|
|
|
273
368
|
|
|
274
369
|
.#{$prefix}--number-input--fluid--disabled.#{$prefix}--number-input--fluid--invalid
|
|
275
370
|
.#{$prefix}--number
|
|
276
|
-
input[type='number']:disabled
|
|
371
|
+
input[type='number']:disabled,
|
|
372
|
+
.#{$prefix}--number-input--fluid--disabled.#{$prefix}--number-input--fluid--invalid
|
|
373
|
+
.#{$prefix}--number
|
|
374
|
+
input[type='text']:disabled {
|
|
277
375
|
background-color: transparent;
|
|
278
376
|
}
|
|
279
377
|
|
|
@@ -116,12 +116,14 @@ $input-label-weight: 400 !default;
|
|
|
116
116
|
inline-size: convert.to-rem(75px);
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
input[type='number']
|
|
119
|
+
input[type='number'],
|
|
120
|
+
input[type='text'].#{$prefix}--number {
|
|
120
121
|
font-family: font-family('sans');
|
|
121
122
|
}
|
|
122
123
|
|
|
123
124
|
input[data-invalid]:not(:focus),
|
|
124
125
|
.#{$prefix}--number[data-invalid] input[type='number']:not(:focus),
|
|
126
|
+
.#{$prefix}--number[data-invalid] input[type='text']:not(:focus),
|
|
125
127
|
.#{$prefix}--text-input__field-wrapper[data-invalid]
|
|
126
128
|
> .#{$prefix}--text-input--invalid:not(:focus),
|
|
127
129
|
.#{$prefix}--text-area__wrapper[data-invalid]
|
|
@@ -1145,12 +1145,6 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
1145
1145
|
@include high-contrast-mode('focus');
|
|
1146
1146
|
}
|
|
1147
1147
|
|
|
1148
|
-
.#{$prefix}--list-box__menu-icon > svg,
|
|
1149
|
-
.#{$prefix}--list-box__selection > svg,
|
|
1150
|
-
.#{$prefix}--list-box__selection--multi > svg {
|
|
1151
|
-
@include high-contrast-mode('icon-fill');
|
|
1152
|
-
}
|
|
1153
|
-
|
|
1154
1148
|
.#{$prefix}--list-box__field:has(.#{$prefix}--list-box__menu-icon)
|
|
1155
1149
|
.#{$prefix}--list-box__selection::after {
|
|
1156
1150
|
position: absolute;
|
|
@@ -486,11 +486,4 @@
|
|
|
486
486
|
.#{$prefix}--btn.#{$prefix}--btn--ghost.#{$prefix}--actionable-notification__action-button:focus {
|
|
487
487
|
@include high-contrast-mode('focus');
|
|
488
488
|
}
|
|
489
|
-
|
|
490
|
-
.#{$prefix}--actionable-notification .#{$prefix}--inline-notification__icon,
|
|
491
|
-
.#{$prefix}--actionable-notification .#{$prefix}--toast-notification__icon,
|
|
492
|
-
.#{$prefix}--actionable-notification
|
|
493
|
-
.#{$prefix}--actionable-notification__close-icon {
|
|
494
|
-
@include high-contrast-mode('icon-fill');
|
|
495
|
-
}
|
|
496
489
|
}
|
|
@@ -316,12 +316,4 @@
|
|
|
316
316
|
.#{$prefix}--btn.#{$prefix}--btn--ghost.#{$prefix}--inline-notification__action-button:focus {
|
|
317
317
|
@include high-contrast-mode('focus');
|
|
318
318
|
}
|
|
319
|
-
|
|
320
|
-
.#{$prefix}--inline-notification .#{$prefix}--inline-notification__icon {
|
|
321
|
-
@include high-contrast-mode('icon-fill');
|
|
322
|
-
}
|
|
323
|
-
.#{$prefix}--inline-notification
|
|
324
|
-
.#{$prefix}--inline-notification__close-icon {
|
|
325
|
-
@include high-contrast-mode('icon-fill');
|
|
326
|
-
}
|
|
327
319
|
}
|
|
@@ -231,10 +231,4 @@
|
|
|
231
231
|
.#{$prefix}--toast-notification__close-button:focus {
|
|
232
232
|
@include high-contrast-mode('focus');
|
|
233
233
|
}
|
|
234
|
-
.#{$prefix}--toast-notification .#{$prefix}--toast-notification__close-icon {
|
|
235
|
-
@include high-contrast-mode('icon-fill');
|
|
236
|
-
}
|
|
237
|
-
.#{$prefix}--toast-notification .#{$prefix}--toast-notification__icon {
|
|
238
|
-
@include high-contrast-mode('icon-fill');
|
|
239
|
-
}
|
|
240
234
|
}
|
|
@@ -35,11 +35,15 @@
|
|
|
35
35
|
|
|
36
36
|
.#{$prefix}--number
|
|
37
37
|
.#{$prefix}--number__input-wrapper--warning
|
|
38
|
-
input[type='number']
|
|
38
|
+
input[type='number'],
|
|
39
|
+
.#{$prefix}--number
|
|
40
|
+
.#{$prefix}--number__input-wrapper--warning
|
|
41
|
+
input[type='text'] {
|
|
39
42
|
padding-inline-end: convert.to-rem(128px);
|
|
40
43
|
}
|
|
41
44
|
|
|
42
|
-
.#{$prefix}--number input[type='number']
|
|
45
|
+
.#{$prefix}--number input[type='number'],
|
|
46
|
+
.#{$prefix}--number input[type='text'] {
|
|
43
47
|
@include type-style('body-compact-01');
|
|
44
48
|
@include focus-outline('reset');
|
|
45
49
|
|
|
@@ -93,7 +97,8 @@
|
|
|
93
97
|
}
|
|
94
98
|
|
|
95
99
|
.#{$prefix}--number--lg.#{$prefix}--number {
|
|
96
|
-
input[type='number']
|
|
100
|
+
input[type='number'],
|
|
101
|
+
input[type='text'] {
|
|
97
102
|
padding-inline-end: convert.to-rem(112px);
|
|
98
103
|
|
|
99
104
|
&[data-invalid] {
|
|
@@ -101,13 +106,15 @@
|
|
|
101
106
|
}
|
|
102
107
|
}
|
|
103
108
|
|
|
104
|
-
.#{$prefix}--number__input-wrapper--warning input[type='number']
|
|
109
|
+
.#{$prefix}--number__input-wrapper--warning input[type='number'],
|
|
110
|
+
.#{$prefix}--number__input-wrapper--warning input[type='text'] {
|
|
105
111
|
padding-inline-end: convert.to-rem(144px);
|
|
106
112
|
}
|
|
107
113
|
}
|
|
108
114
|
|
|
109
115
|
.#{$prefix}--number--sm.#{$prefix}--number {
|
|
110
|
-
input[type='number']
|
|
116
|
+
input[type='number'],
|
|
117
|
+
input[type='text'] {
|
|
111
118
|
padding-inline-end: convert.to-rem(80px);
|
|
112
119
|
|
|
113
120
|
&[data-invalid] {
|
|
@@ -115,12 +122,14 @@
|
|
|
115
122
|
}
|
|
116
123
|
}
|
|
117
124
|
|
|
118
|
-
.#{$prefix}--number__input-wrapper--warning input[type='number']
|
|
125
|
+
.#{$prefix}--number__input-wrapper--warning input[type='number'],
|
|
126
|
+
.#{$prefix}--number__input-wrapper--warning input[type='text'] {
|
|
119
127
|
padding-inline-end: convert.to-rem(112px);
|
|
120
128
|
}
|
|
121
129
|
}
|
|
122
130
|
|
|
123
|
-
.#{$prefix}--number input[type='number']:disabled
|
|
131
|
+
.#{$prefix}--number input[type='number']:disabled,
|
|
132
|
+
.#{$prefix}--number input[type='text']:disabled {
|
|
124
133
|
background-color: $field;
|
|
125
134
|
border-block-end-color: transparent;
|
|
126
135
|
color: $text-disabled;
|
|
@@ -197,6 +206,10 @@
|
|
|
197
206
|
.#{$prefix}--number
|
|
198
207
|
input[type='number'][data-invalid]
|
|
199
208
|
~ .#{$prefix}--number__controls
|
|
209
|
+
.#{$prefix}--number__control-btn,
|
|
210
|
+
.#{$prefix}--number
|
|
211
|
+
input[type='text'][data-invalid]
|
|
212
|
+
~ .#{$prefix}--number__controls
|
|
200
213
|
.#{$prefix}--number__control-btn {
|
|
201
214
|
border-block-end-color: $support-error;
|
|
202
215
|
}
|
|
@@ -205,6 +218,10 @@
|
|
|
205
218
|
.#{$prefix}--number
|
|
206
219
|
input[type='number']:focus
|
|
207
220
|
~ .#{$prefix}--number__controls
|
|
221
|
+
.#{$prefix}--number__control-btn,
|
|
222
|
+
.#{$prefix}--number
|
|
223
|
+
input[type='text']:focus
|
|
224
|
+
~ .#{$prefix}--number__controls
|
|
208
225
|
.#{$prefix}--number__control-btn {
|
|
209
226
|
border-width: 2px 0;
|
|
210
227
|
border-style: solid;
|
|
@@ -216,6 +233,10 @@
|
|
|
216
233
|
.#{$prefix}--number
|
|
217
234
|
input[type='number']:focus
|
|
218
235
|
~ .#{$prefix}--number__controls
|
|
236
|
+
.#{$prefix}--number__control-btn:last-of-type:hover,
|
|
237
|
+
.#{$prefix}--number
|
|
238
|
+
input[type='text']:focus
|
|
239
|
+
~ .#{$prefix}--number__controls
|
|
219
240
|
.#{$prefix}--number__control-btn:last-of-type:hover {
|
|
220
241
|
box-shadow: -4px 0 0 -2px $focus inset;
|
|
221
242
|
}
|
|
@@ -224,6 +245,10 @@
|
|
|
224
245
|
.#{$prefix}--number
|
|
225
246
|
input[type='number'][data-invalid]:not(:focus)
|
|
226
247
|
~ .#{$prefix}--number__controls
|
|
248
|
+
.#{$prefix}--number__control-btn:last-of-type:hover,
|
|
249
|
+
.#{$prefix}--number
|
|
250
|
+
input[type='text'][data-invalid]:not(:focus)
|
|
251
|
+
~ .#{$prefix}--number__controls
|
|
227
252
|
.#{$prefix}--number__control-btn:last-of-type:hover {
|
|
228
253
|
box-shadow: -4px 0 0 -2px $support-error inset;
|
|
229
254
|
}
|
|
@@ -231,6 +256,10 @@
|
|
|
231
256
|
.#{$prefix}--number
|
|
232
257
|
input[type='number'][data-invalid]:not(:focus)
|
|
233
258
|
~ .#{$prefix}--number__controls
|
|
259
|
+
.#{$prefix}--number__control-btn:hover,
|
|
260
|
+
.#{$prefix}--number
|
|
261
|
+
input[type='text'][data-invalid]:not(:focus)
|
|
262
|
+
~ .#{$prefix}--number__controls
|
|
234
263
|
.#{$prefix}--number__control-btn:hover {
|
|
235
264
|
border-width: 2px 0;
|
|
236
265
|
border-style: solid;
|
|
@@ -242,6 +271,10 @@
|
|
|
242
271
|
.#{$prefix}--number
|
|
243
272
|
input[type='number'][data-invalid]:not(:focus)
|
|
244
273
|
~ .#{$prefix}--number__controls
|
|
274
|
+
.#{$prefix}--number__control-btn:focus:hover,
|
|
275
|
+
.#{$prefix}--number
|
|
276
|
+
input[type='text'][data-invalid]:not(:focus)
|
|
277
|
+
~ .#{$prefix}--number__controls
|
|
245
278
|
.#{$prefix}--number__control-btn:focus:hover {
|
|
246
279
|
@include focus-outline('outline');
|
|
247
280
|
}
|
|
@@ -283,6 +316,10 @@
|
|
|
283
316
|
.#{$prefix}--number
|
|
284
317
|
input[type='number']:disabled
|
|
285
318
|
+ .#{$prefix}--number__controls
|
|
319
|
+
.#{$prefix}--number__rule-divider:first-of-type,
|
|
320
|
+
.#{$prefix}--number
|
|
321
|
+
input[type='text']:disabled
|
|
322
|
+
+ .#{$prefix}--number__controls
|
|
286
323
|
.#{$prefix}--number__rule-divider:first-of-type {
|
|
287
324
|
background-color: transparent;
|
|
288
325
|
}
|
|
@@ -290,6 +327,10 @@
|
|
|
290
327
|
.#{$prefix}--number
|
|
291
328
|
input[type='number']:disabled
|
|
292
329
|
+ .#{$prefix}--number__controls
|
|
330
|
+
.#{$prefix}--number__rule-divider,
|
|
331
|
+
.#{$prefix}--number
|
|
332
|
+
input[type='text']:disabled
|
|
333
|
+
+ .#{$prefix}--number__controls
|
|
293
334
|
.#{$prefix}--number__rule-divider {
|
|
294
335
|
background-color: $icon-disabled;
|
|
295
336
|
}
|
|
@@ -350,7 +391,8 @@
|
|
|
350
391
|
}
|
|
351
392
|
|
|
352
393
|
// Size Variant styles
|
|
353
|
-
.#{$prefix}--number--lg input[type='number']
|
|
394
|
+
.#{$prefix}--number--lg input[type='number'],
|
|
395
|
+
.#{$prefix}--number--lg input[type='text'] {
|
|
354
396
|
block-size: convert.to-rem(48px);
|
|
355
397
|
}
|
|
356
398
|
|
|
@@ -362,7 +404,8 @@
|
|
|
362
404
|
inline-size: convert.to-rem(48px);
|
|
363
405
|
}
|
|
364
406
|
|
|
365
|
-
.#{$prefix}--number--sm input[type='number']
|
|
407
|
+
.#{$prefix}--number--sm input[type='number'],
|
|
408
|
+
.#{$prefix}--number--sm input[type='text'] {
|
|
366
409
|
block-size: convert.to-rem(32px);
|
|
367
410
|
}
|
|
368
411
|
|
|
@@ -382,14 +425,19 @@
|
|
|
382
425
|
}
|
|
383
426
|
|
|
384
427
|
// No steppers
|
|
385
|
-
.#{$prefix}--number--nosteppers input[type='number']
|
|
428
|
+
.#{$prefix}--number--nosteppers input[type='number'],
|
|
429
|
+
.#{$prefix}--number--nosteppers input[type='text'] {
|
|
386
430
|
padding-inline-end: 0;
|
|
387
431
|
}
|
|
388
432
|
|
|
389
433
|
.#{$prefix}--number--nosteppers input[type='number'][data-invalid],
|
|
434
|
+
.#{$prefix}--number--nosteppers input[type='text'][data-invalid],
|
|
435
|
+
.#{$prefix}--number--nosteppers
|
|
436
|
+
.#{$prefix}--number__input-wrapper--warning
|
|
437
|
+
input[type='number'],
|
|
390
438
|
.#{$prefix}--number--nosteppers
|
|
391
439
|
.#{$prefix}--number__input-wrapper--warning
|
|
392
|
-
input[type='
|
|
440
|
+
input[type='text'] {
|
|
393
441
|
padding-inline-end: convert.to-rem(48px);
|
|
394
442
|
}
|
|
395
443
|
|
|
@@ -398,7 +446,8 @@
|
|
|
398
446
|
}
|
|
399
447
|
|
|
400
448
|
// Readonly
|
|
401
|
-
.#{$prefix}--number--readonly input[type='number']
|
|
449
|
+
.#{$prefix}--number--readonly input[type='number'],
|
|
450
|
+
.#{$prefix}--number--readonly input[type='text'] {
|
|
402
451
|
background: transparent;
|
|
403
452
|
border-block-end-color: $border-subtle;
|
|
404
453
|
}
|
|
@@ -416,6 +465,10 @@
|
|
|
416
465
|
.#{$prefix}--number--readonly
|
|
417
466
|
input[type='number']:focus
|
|
418
467
|
~ .#{$prefix}--number__controls
|
|
468
|
+
.#{$prefix}--number__control-btn:hover,
|
|
469
|
+
.#{$prefix}--number--readonly
|
|
470
|
+
input[type='text']:focus
|
|
471
|
+
~ .#{$prefix}--number__controls
|
|
419
472
|
.#{$prefix}--number__control-btn:hover {
|
|
420
473
|
outline: none;
|
|
421
474
|
}
|
|
@@ -564,7 +617,26 @@
|
|
|
564
617
|
input[type='number']:has(~ .#{$prefix}--slug):not(
|
|
565
618
|
:has(~ .#{$prefix}--slug--revert)
|
|
566
619
|
),
|
|
567
|
-
.#{$prefix}--number__input-wrapper--slug input[type='number']:disabled
|
|
620
|
+
.#{$prefix}--number__input-wrapper--slug input[type='number']:disabled,
|
|
621
|
+
.#{$prefix}--number__input-wrapper--decorator
|
|
622
|
+
input[type='text']:has(
|
|
623
|
+
~ .#{$prefix}--number__input-inner-wrapper--decorator
|
|
624
|
+
.#{$prefix}--ai-label
|
|
625
|
+
):not(
|
|
626
|
+
:has(
|
|
627
|
+
~ .#{$prefix}--number__input-inner-wrapper--decorator
|
|
628
|
+
.#{$prefix}--ai-label--revert
|
|
629
|
+
)
|
|
630
|
+
),
|
|
631
|
+
.#{$prefix}--number__input-wrapper--slug
|
|
632
|
+
input[type='text']:has(~ .#{$prefix}--ai-label):not(
|
|
633
|
+
:has(~ .#{$prefix}--ai-label--revert)
|
|
634
|
+
),
|
|
635
|
+
.#{$prefix}--number__input-wrapper--slug
|
|
636
|
+
input[type='text']:has(~ .#{$prefix}--slug):not(
|
|
637
|
+
:has(~ .#{$prefix}--slug--revert)
|
|
638
|
+
),
|
|
639
|
+
.#{$prefix}--number__input-wrapper--slug input[type='text']:disabled {
|
|
568
640
|
@include ai-gradient;
|
|
569
641
|
|
|
570
642
|
padding-inline-end: convert.to-rem(145px);
|
|
@@ -577,7 +649,8 @@
|
|
|
577
649
|
|
|
578
650
|
inline-size: 100%;
|
|
579
651
|
|
|
580
|
-
input[type='number']
|
|
652
|
+
input[type='number'],
|
|
653
|
+
input[type='text'] {
|
|
581
654
|
display: none;
|
|
582
655
|
}
|
|
583
656
|
}
|
|
@@ -604,10 +677,6 @@
|
|
|
604
677
|
.#{$prefix}--number__control-btn {
|
|
605
678
|
@include high-contrast-mode('outline');
|
|
606
679
|
}
|
|
607
|
-
|
|
608
|
-
.#{$prefix}--number__control-btn svg {
|
|
609
|
-
@include high-contrast-mode('icon-fill');
|
|
610
|
-
}
|
|
611
680
|
}
|
|
612
681
|
|
|
613
682
|
.#{$prefix}--number__controls:hover .#{$prefix}--number__control-btn::after {
|
|
@@ -361,10 +361,6 @@
|
|
|
361
361
|
.#{$prefix}--overflow-menu-options__btn:focus {
|
|
362
362
|
@include high-contrast-mode('focus');
|
|
363
363
|
}
|
|
364
|
-
|
|
365
|
-
.#{$prefix}--overflow-menu svg {
|
|
366
|
-
@include high-contrast-mode('icon-fill');
|
|
367
|
-
}
|
|
368
364
|
/*stylelint-enable */
|
|
369
365
|
|
|
370
366
|
$popover-offset: custom-property.get-var('popover-offset', 2.5rem);
|
|
@@ -7,33 +7,68 @@
|
|
|
7
7
|
|
|
8
8
|
@use '../../config' as *;
|
|
9
9
|
@use '../../breakpoint' as *;
|
|
10
|
-
|
|
10
|
+
@use '../../colors' as *;
|
|
11
11
|
@use '../../spacing' as *;
|
|
12
|
-
|
|
12
|
+
@use '../../theme' as *;
|
|
13
13
|
@use '../../type' as *;
|
|
14
|
-
// @use '../../layer' as *;
|
|
15
|
-
// @use '../../utilities/box-shadow' as *;
|
|
16
|
-
// @use '../../utilities/button-reset';
|
|
17
|
-
// @use '../../utilities/component-reset';
|
|
18
|
-
// @use '../../utilities/focus-outline' as *;
|
|
19
|
-
// @use '../../utilities/high-contrast-mode' as *;
|
|
20
14
|
@use '../../utilities/convert';
|
|
21
|
-
// @use '../../utilities/z-index' as *;
|
|
22
|
-
// @use '../../utilities/custom-property';
|
|
23
15
|
|
|
24
16
|
/// Page header styles
|
|
25
17
|
/// @access public
|
|
26
18
|
/// @group page-header
|
|
27
19
|
@mixin page-header {
|
|
28
20
|
.#{$prefix}--page-header {
|
|
29
|
-
|
|
21
|
+
background-color: $layer-01;
|
|
30
22
|
}
|
|
23
|
+
|
|
31
24
|
.#{$prefix}--page-header__breadcrumb-bar {
|
|
32
|
-
|
|
25
|
+
block-size: convert.to-rem(40px);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.#{$prefix}--page-header__breadcrumb-bar .#{$prefix}--subgrid {
|
|
29
|
+
block-size: 100%;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.#{$prefix}--page-header__breadcrumb-container {
|
|
33
|
+
display: inline-flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
justify-content: space-between;
|
|
36
|
+
block-size: 100%;
|
|
37
|
+
inline-size: 100%;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.#{$prefix}--page-header__breadcrumb__actions-flush {
|
|
41
|
+
.#{$prefix}--css-grid {
|
|
42
|
+
padding-inline-end: 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.#{$prefix}--css-grid-column {
|
|
46
|
+
margin-inline-end: 0;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.#{$prefix}--page-header__breadcrumb-bar-border {
|
|
51
|
+
border-block-end: 1px solid $border-subtle-01;
|
|
33
52
|
}
|
|
53
|
+
|
|
54
|
+
.#{$prefix}--page-header__breadcrumb__icon {
|
|
55
|
+
margin-inline-end: $spacing-03;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.#{$prefix}--page-header__breadcrumb__actions {
|
|
59
|
+
display: inline-flex;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.#{$prefix}--page-header__breadcrumb__content-actions {
|
|
63
|
+
margin-inline-end: $spacing-04;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.#{$prefix}--page-header__breadcrumb-wrapper {
|
|
67
|
+
display: inline-flex;
|
|
68
|
+
}
|
|
69
|
+
|
|
34
70
|
.#{$prefix}--page-header__content {
|
|
35
|
-
|
|
36
|
-
border: 1px solid red; /* stylelint-disable-line */
|
|
71
|
+
padding: $spacing-06 0;
|
|
37
72
|
}
|
|
38
73
|
|
|
39
74
|
.#{$prefix}--page-header__content__title-wrapper {
|
|
@@ -138,13 +173,19 @@
|
|
|
138
173
|
display: flex;
|
|
139
174
|
overflow: hidden;
|
|
140
175
|
align-items: center;
|
|
141
|
-
justify-content: end;
|
|
176
|
+
justify-content: flex-end;
|
|
142
177
|
block-size: 100%;
|
|
143
178
|
}
|
|
144
179
|
|
|
145
|
-
.#{$prefix}--page-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
180
|
+
.#{$prefix}--page-header__tablist-wrapper {
|
|
181
|
+
border-block-end: 1px solid $border-subtle-01;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.#{$prefix}--page-header__tab-bar .#{$prefix}--tabs {
|
|
185
|
+
margin-inline-start: -$spacing-05;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.#{$prefix}--tab-content {
|
|
189
|
+
background: $background;
|
|
149
190
|
}
|
|
150
191
|
}
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
@use '../../utilities/button-reset';
|
|
13
13
|
@use '../../utilities/component-reset';
|
|
14
14
|
@use '../../utilities/custom-property';
|
|
15
|
-
@use '../../utilities/high-contrast-mode' as *;
|
|
16
15
|
@use '../../utilities/focus-outline' as *;
|
|
17
16
|
@use '../../utilities/' as *;
|
|
18
17
|
@use '../../utilities/convert';
|