@carbon/styles 1.37.0 → 1.38.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 +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
|
@@ -39,9 +39,9 @@ $progress-indicator-bar-width: 1px inset transparent !default;
|
|
|
39
39
|
position: relative;
|
|
40
40
|
display: inline-flex;
|
|
41
41
|
overflow: visible;
|
|
42
|
-
width: convert.to-rem(128px);
|
|
43
|
-
min-width: 7rem;
|
|
44
42
|
flex-direction: row;
|
|
43
|
+
inline-size: convert.to-rem(128px);
|
|
44
|
+
min-inline-size: 7rem;
|
|
45
45
|
|
|
46
46
|
.#{$prefix}--tooltip__label {
|
|
47
47
|
display: block;
|
|
@@ -49,32 +49,33 @@ $progress-indicator-bar-width: 1px inset transparent !default;
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.#{$prefix}--progress--space-equal .#{$prefix}--progress-step {
|
|
52
|
-
min-width: 8rem;
|
|
53
52
|
flex-grow: 1;
|
|
53
|
+
min-inline-size: 8rem;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.#{$prefix}--progress-line {
|
|
57
57
|
position: absolute;
|
|
58
|
-
left: 0;
|
|
59
|
-
width: convert.to-rem(128px);
|
|
60
|
-
height: 2px;
|
|
61
58
|
border: $progress-indicator-bar-width;
|
|
59
|
+
block-size: 2px;
|
|
60
|
+
inline-size: convert.to-rem(128px);
|
|
61
|
+
inset-inline-start: 0;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
.#{$prefix}--progress--space-equal .#{$prefix}--progress-line {
|
|
65
|
-
|
|
66
|
-
min-
|
|
65
|
+
inline-size: 100%;
|
|
66
|
+
min-inline-size: convert.to-rem(128px);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
.#{$prefix}--progress-step svg {
|
|
70
70
|
position: relative;
|
|
71
71
|
z-index: 1;
|
|
72
|
-
width: $spacing-05;
|
|
73
|
-
height: $spacing-05;
|
|
74
72
|
flex-shrink: 0;
|
|
75
|
-
|
|
73
|
+
block-size: $spacing-05;
|
|
76
74
|
border-radius: 50%;
|
|
77
75
|
fill: $interactive;
|
|
76
|
+
inline-size: $spacing-05;
|
|
77
|
+
margin-block-start: convert.to-rem(10px);
|
|
78
|
+
margin-inline-end: $spacing-03;
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
.#{$prefix}--progress--space-equal .#{$prefix}--progress-text {
|
|
@@ -85,10 +86,10 @@ $progress-indicator-bar-width: 1px inset transparent !default;
|
|
|
85
86
|
@include type-style('body-compact-01');
|
|
86
87
|
|
|
87
88
|
overflow: hidden;
|
|
88
|
-
max-width: convert.to-rem(88px);
|
|
89
89
|
margin: $spacing-03 0 0 0;
|
|
90
90
|
color: $text-primary;
|
|
91
91
|
line-height: 1.45;
|
|
92
|
+
max-inline-size: convert.to-rem(88px);
|
|
92
93
|
text-overflow: ellipsis;
|
|
93
94
|
transition: box-shadow $duration-fast-02 motion(standard, productive),
|
|
94
95
|
color $duration-fast-02 motion(standard, productive);
|
|
@@ -107,8 +108,8 @@ $progress-indicator-bar-width: 1px inset transparent !default;
|
|
|
107
108
|
}
|
|
108
109
|
|
|
109
110
|
.#{$prefix}--progress--space-equal .#{$prefix}--progress-label {
|
|
110
|
-
|
|
111
|
-
|
|
111
|
+
margin-inline-end: 0.75rem;
|
|
112
|
+
max-inline-size: 100%;
|
|
112
113
|
}
|
|
113
114
|
|
|
114
115
|
.#{$prefix}--progress-step-button:not(
|
|
@@ -134,7 +135,7 @@ $progress-indicator-bar-width: 1px inset transparent !default;
|
|
|
134
135
|
}
|
|
135
136
|
|
|
136
137
|
.#{$prefix}--progress-step .#{$prefix}--tooltip .#{$prefix}--tooltip__caret {
|
|
137
|
-
margin-
|
|
138
|
+
margin-inline-start: convert.to-rem(10px);
|
|
138
139
|
}
|
|
139
140
|
|
|
140
141
|
.#{$prefix}--tooltip__text {
|
|
@@ -148,14 +149,14 @@ $progress-indicator-bar-width: 1px inset transparent !default;
|
|
|
148
149
|
@include type-style('body-01');
|
|
149
150
|
|
|
150
151
|
display: block;
|
|
151
|
-
width: convert.to-rem(125px);
|
|
152
|
-
|
|
153
|
-
min-width: convert.to-rem(115px);
|
|
154
|
-
min-height: $spacing-06;
|
|
155
152
|
padding: $spacing-03 $spacing-05;
|
|
156
|
-
margin-top: convert.to-rem(40px);
|
|
157
|
-
margin-left: convert.to-rem(22px);
|
|
158
153
|
color: $text-inverse;
|
|
154
|
+
inline-size: convert.to-rem(125px);
|
|
155
|
+
margin-block-start: convert.to-rem(40px);
|
|
156
|
+
margin-inline-start: convert.to-rem(22px);
|
|
157
|
+
min-block-size: $spacing-06;
|
|
158
|
+
|
|
159
|
+
min-inline-size: convert.to-rem(115px);
|
|
159
160
|
visibility: hidden;
|
|
160
161
|
}
|
|
161
162
|
|
|
@@ -163,9 +164,10 @@ $progress-indicator-bar-width: 1px inset transparent !default;
|
|
|
163
164
|
.#{$prefix}--progress-step .#{$prefix}--tooltip_multi {
|
|
164
165
|
@include type-style('body-01');
|
|
165
166
|
|
|
166
|
-
|
|
167
|
-
height: auto;
|
|
167
|
+
block-size: auto;
|
|
168
168
|
color: $text-inverse;
|
|
169
|
+
|
|
170
|
+
inline-size: convert.to-rem(150px);
|
|
169
171
|
}
|
|
170
172
|
|
|
171
173
|
//OPTIONAL HELPER TEXT STYLING
|
|
@@ -173,10 +175,10 @@ $progress-indicator-bar-width: 1px inset transparent !default;
|
|
|
173
175
|
@include type-style('label-01');
|
|
174
176
|
|
|
175
177
|
position: absolute;
|
|
176
|
-
left: 0;
|
|
177
|
-
margin-top: convert.to-rem(28px);
|
|
178
|
-
margin-left: $spacing-06;
|
|
179
178
|
color: $text-secondary;
|
|
179
|
+
inset-inline-start: 0;
|
|
180
|
+
margin-block-start: convert.to-rem(28px);
|
|
181
|
+
margin-inline-start: $spacing-06;
|
|
180
182
|
text-align: start;
|
|
181
183
|
}
|
|
182
184
|
|
|
@@ -210,7 +212,7 @@ $progress-indicator-bar-width: 1px inset transparent !default;
|
|
|
210
212
|
@include button-reset.reset;
|
|
211
213
|
|
|
212
214
|
display: flex;
|
|
213
|
-
text-align:
|
|
215
|
+
text-align: start;
|
|
214
216
|
}
|
|
215
217
|
|
|
216
218
|
//unclickable button
|
|
@@ -270,14 +272,16 @@ $progress-indicator-bar-width: 1px inset transparent !default;
|
|
|
270
272
|
.#{$prefix}--progress.#{$prefix}--skeleton .#{$prefix}--progress-label {
|
|
271
273
|
@include skeleton;
|
|
272
274
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
275
|
+
block-size: convert.to-rem(14px);
|
|
276
|
+
|
|
277
|
+
inline-size: convert.to-rem(40px);
|
|
278
|
+
|
|
279
|
+
margin-block-start: 0.625rem;
|
|
276
280
|
}
|
|
277
281
|
|
|
278
282
|
.#{$prefix}--progress.#{$prefix}--progress--vertical.#{$prefix}--skeleton
|
|
279
283
|
.#{$prefix}--progress-label {
|
|
280
|
-
margin-
|
|
284
|
+
margin-block-start: 0.0625rem;
|
|
281
285
|
}
|
|
282
286
|
|
|
283
287
|
// Vertical Variant
|
|
@@ -295,10 +299,10 @@ $progress-indicator-bar-width: 1px inset transparent !default;
|
|
|
295
299
|
|
|
296
300
|
.#{$prefix}--progress--vertical .#{$prefix}--progress-step,
|
|
297
301
|
.#{$prefix}--progress--vertical .#{$prefix}--progress-step-button {
|
|
298
|
-
width: initial;
|
|
299
|
-
min-width: initial;
|
|
300
|
-
min-height: 3.625rem;
|
|
301
302
|
align-content: flex-start;
|
|
303
|
+
inline-size: initial;
|
|
304
|
+
min-block-size: 3.625rem;
|
|
305
|
+
min-inline-size: initial;
|
|
302
306
|
}
|
|
303
307
|
|
|
304
308
|
.#{$prefix}--progress--vertical .#{$prefix}--progress-step svg,
|
|
@@ -310,9 +314,9 @@ $progress-indicator-bar-width: 1px inset transparent !default;
|
|
|
310
314
|
|
|
311
315
|
.#{$prefix}--progress--vertical .#{$prefix}--progress-label {
|
|
312
316
|
display: inline-block;
|
|
313
|
-
width: initial;
|
|
314
|
-
max-width: convert.to-rem(160px);
|
|
315
317
|
margin: 0;
|
|
318
|
+
inline-size: initial;
|
|
319
|
+
max-inline-size: convert.to-rem(160px);
|
|
316
320
|
vertical-align: top;
|
|
317
321
|
white-space: initial;
|
|
318
322
|
}
|
|
@@ -320,20 +324,20 @@ $progress-indicator-bar-width: 1px inset transparent !default;
|
|
|
320
324
|
.#{$prefix}--progress--vertical
|
|
321
325
|
.#{$prefix}--progress-step
|
|
322
326
|
.#{$prefix}--tooltip {
|
|
323
|
-
margin-
|
|
327
|
+
margin-block-start: 0.5rem;
|
|
324
328
|
}
|
|
325
329
|
|
|
326
330
|
.#{$prefix}--progress--vertical .#{$prefix}--progress-optional {
|
|
327
331
|
position: static;
|
|
328
|
-
width: 100%;
|
|
329
332
|
margin: auto 0;
|
|
333
|
+
inline-size: 100%;
|
|
330
334
|
}
|
|
331
335
|
|
|
332
336
|
.#{$prefix}--progress--vertical .#{$prefix}--progress-line {
|
|
333
337
|
position: absolute;
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
+
block-size: 100%;
|
|
339
|
+
inline-size: 1px;
|
|
340
|
+
inset-block-start: 0;
|
|
341
|
+
inset-inline-start: 0;
|
|
338
342
|
}
|
|
339
343
|
}
|
|
@@ -41,7 +41,7 @@ $radio-border-width: 1px !default;
|
|
|
41
41
|
|
|
42
42
|
// Remove spacing above collection of radio buttons if label is present
|
|
43
43
|
.#{$prefix}--label + .#{$prefix}--form-item .#{$prefix}--radio-button-group {
|
|
44
|
-
margin-
|
|
44
|
+
margin-block-start: 0;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
// vertical radio button
|
|
@@ -54,12 +54,12 @@ $radio-border-width: 1px !default;
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.#{$prefix}--radio-button__label {
|
|
57
|
-
margin-right: 0;
|
|
58
57
|
line-height: 1.25;
|
|
58
|
+
margin-inline-end: 0;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
.#{$prefix}--radio-button__label:not(:last-of-type) {
|
|
62
|
-
margin-
|
|
62
|
+
margin-block-end: $spacing-03;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
@@ -74,21 +74,21 @@ $radio-border-width: 1px !default;
|
|
|
74
74
|
|
|
75
75
|
display: flex;
|
|
76
76
|
align-items: center;
|
|
77
|
-
margin-right: $spacing-05;
|
|
78
77
|
cursor: pointer;
|
|
78
|
+
margin-inline-end: $spacing-05;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
.#{$prefix}--radio-button__appearance {
|
|
82
82
|
@include reset;
|
|
83
83
|
|
|
84
|
-
width: convert.to-rem(18px);
|
|
85
|
-
height: convert.to-rem(18px);
|
|
86
84
|
flex-shrink: 0;
|
|
87
85
|
border: $radio-border-width solid $icon-primary;
|
|
88
|
-
margin: convert.to-rem(1px) $spacing-03 convert.to-rem(2px)
|
|
89
|
-
convert.to-rem(2px);
|
|
90
86
|
background-color: transparent;
|
|
87
|
+
block-size: convert.to-rem(18px);
|
|
91
88
|
border-radius: 50%;
|
|
89
|
+
inline-size: convert.to-rem(18px);
|
|
90
|
+
margin-block: convert.to-rem(1px) convert.to-rem(2px);
|
|
91
|
+
margin-inline: convert.to-rem(2px) $spacing-03;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
.#{$prefix}--radio-button:checked
|
|
@@ -102,11 +102,11 @@ $radio-border-width: 1px !default;
|
|
|
102
102
|
&::before {
|
|
103
103
|
position: relative;
|
|
104
104
|
display: inline-block;
|
|
105
|
-
width: 100%;
|
|
106
|
-
height: 100%;
|
|
107
105
|
background-color: $icon-primary;
|
|
106
|
+
block-size: 100%;
|
|
108
107
|
border-radius: 50%;
|
|
109
108
|
content: '';
|
|
109
|
+
inline-size: 100%;
|
|
110
110
|
transform: scale(0.5);
|
|
111
111
|
|
|
112
112
|
// Allow the selected button to be seen in Windows HCM for IE/Edge
|
|
@@ -164,12 +164,12 @@ $radio-border-width: 1px !default;
|
|
|
164
164
|
.#{$prefix}--radio-button__validation-msg {
|
|
165
165
|
display: none;
|
|
166
166
|
align-items: flex-end;
|
|
167
|
-
margin-
|
|
167
|
+
margin-block-start: convert.to-rem(6px);
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
.#{$prefix}--radio-button__invalid-icon {
|
|
171
|
-
margin: 0 convert.to-rem(1px) 0 convert.to-rem(3px);
|
|
172
171
|
fill: $support-error;
|
|
172
|
+
margin-inline: convert.to-rem(3px) convert.to-rem(1px);
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
.#{$prefix}--radio-button__invalid-icon--warning {
|
|
@@ -195,9 +195,9 @@ $radio-border-width: 1px !default;
|
|
|
195
195
|
.#{$prefix}--form-requirement {
|
|
196
196
|
display: block;
|
|
197
197
|
overflow: visible;
|
|
198
|
-
|
|
199
|
-
margin-
|
|
200
|
-
|
|
198
|
+
margin-block-start: 0;
|
|
199
|
+
margin-inline-start: $spacing-03;
|
|
200
|
+
max-block-size: 100%;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
.#{$prefix}--radio-button-group--invalid
|
|
@@ -207,7 +207,7 @@ $radio-border-width: 1px !default;
|
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
.#{$prefix}--radio-button-group ~ .#{$prefix}--form__helper-text {
|
|
210
|
-
margin-
|
|
210
|
+
margin-block-start: convert.to-rem(6px);
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
// Focus
|
|
@@ -223,8 +223,9 @@ $radio-border-width: 1px !default;
|
|
|
223
223
|
.#{$prefix}--radio-button__label.#{$prefix}--skeleton {
|
|
224
224
|
@include skeleton;
|
|
225
225
|
|
|
226
|
-
|
|
227
|
-
|
|
226
|
+
block-size: convert.to-rem(18px);
|
|
227
|
+
|
|
228
|
+
inline-size: convert.to-rem(100px);
|
|
228
229
|
}
|
|
229
230
|
|
|
230
231
|
.#{$prefix}--radio-button__label.#{$prefix}--skeleton
|
|
@@ -240,13 +241,13 @@ $radio-border-width: 1px !default;
|
|
|
240
241
|
}
|
|
241
242
|
|
|
242
243
|
.#{$prefix}--radio-button-wrapper:not(:last-of-type) {
|
|
243
|
-
margin-
|
|
244
|
+
margin-inline-end: $spacing-05;
|
|
244
245
|
}
|
|
245
246
|
|
|
246
247
|
.#{$prefix}--radio-button-group--vertical
|
|
247
248
|
.#{$prefix}--radio-button-wrapper:not(:last-of-type) {
|
|
248
|
-
margin-
|
|
249
|
-
margin-
|
|
249
|
+
margin-block-end: $spacing-03;
|
|
250
|
+
margin-inline-end: 0;
|
|
250
251
|
}
|
|
251
252
|
|
|
252
253
|
.#{$prefix}--radio-button-group--label-right .#{$prefix}--radio-button__label,
|
|
@@ -265,7 +266,7 @@ $radio-border-width: 1px !default;
|
|
|
265
266
|
.#{$prefix}--radio-button__appearance,
|
|
266
267
|
.#{$prefix}--radio-button-wrapper.#{$prefix}--radio-button-wrapper--label-left
|
|
267
268
|
.#{$prefix}--radio-button__appearance {
|
|
268
|
-
margin-
|
|
269
|
-
margin-
|
|
269
|
+
margin-inline-end: 0;
|
|
270
|
+
margin-inline-start: $spacing-03;
|
|
270
271
|
}
|
|
271
272
|
}
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
.#{$prefix}--search {
|
|
32
32
|
position: relative;
|
|
33
33
|
display: flex;
|
|
34
|
-
width: 100%;
|
|
35
34
|
align-items: center;
|
|
35
|
+
inline-size: 100%;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.#{$prefix}--search .#{$prefix}--label {
|
|
@@ -44,14 +44,15 @@
|
|
|
44
44
|
@include type.type-style('body-compact-01');
|
|
45
45
|
@include focus-outline('reset');
|
|
46
46
|
|
|
47
|
-
width: 100%;
|
|
48
47
|
order: 1;
|
|
49
48
|
padding: 0 $spacing-08;
|
|
50
49
|
border: none;
|
|
51
|
-
border-bottom: 1px solid $border-strong;
|
|
52
50
|
appearance: none;
|
|
53
51
|
background-color: $field;
|
|
52
|
+
border-block-end: 1px solid $border-strong;
|
|
54
53
|
color: $text-primary;
|
|
54
|
+
|
|
55
|
+
inline-size: 100%;
|
|
55
56
|
text-overflow: ellipsis;
|
|
56
57
|
transition: background-color $duration-fast-02 motion(standard, productive),
|
|
57
58
|
outline $duration-fast-02 motion(standard, productive);
|
|
@@ -70,8 +71,8 @@
|
|
|
70
71
|
}
|
|
71
72
|
|
|
72
73
|
.#{$prefix}--search-input[disabled] {
|
|
73
|
-
border-bottom: 1px solid transparent;
|
|
74
74
|
background-color: $field;
|
|
75
|
+
border-block-end: 1px solid transparent;
|
|
75
76
|
color: $text-disabled;
|
|
76
77
|
cursor: not-allowed;
|
|
77
78
|
|
|
@@ -91,35 +92,35 @@
|
|
|
91
92
|
.#{$prefix}--search--sm .#{$prefix}--search-input,
|
|
92
93
|
.#{$prefix}--search--sm.#{$prefix}--search--expandable.#{$prefix}--search--expanded
|
|
93
94
|
.#{$prefix}--search-input {
|
|
94
|
-
height: convert.to-rem(32px);
|
|
95
95
|
// 8px padding on either side of icon + 16px icon (32px)
|
|
96
96
|
padding: 0 $spacing-07;
|
|
97
|
+
block-size: convert.to-rem(32px);
|
|
97
98
|
}
|
|
98
99
|
|
|
99
100
|
.#{$prefix}--search--sm .#{$prefix}--search-magnifier-icon {
|
|
100
|
-
|
|
101
|
+
inset-inline-start: convert.to-rem(8px);
|
|
101
102
|
}
|
|
102
103
|
|
|
103
104
|
// Medium styles
|
|
104
105
|
.#{$prefix}--search--md .#{$prefix}--search-input,
|
|
105
106
|
.#{$prefix}--search--md.#{$prefix}--search--expandable.#{$prefix}--search--expanded
|
|
106
107
|
.#{$prefix}--search-input {
|
|
107
|
-
height: convert.to-rem(40px);
|
|
108
108
|
// 12px padding on either side of icon + 16px icon (40px)
|
|
109
109
|
padding: 0 $spacing-08;
|
|
110
|
+
block-size: convert.to-rem(40px);
|
|
110
111
|
}
|
|
111
112
|
|
|
112
113
|
.#{$prefix}--search--md .#{$prefix}--search-magnifier-icon {
|
|
113
|
-
|
|
114
|
+
inset-inline-start: convert.to-rem(12px);
|
|
114
115
|
}
|
|
115
116
|
|
|
116
117
|
// Large styles
|
|
117
118
|
.#{$prefix}--search--lg .#{$prefix}--search-input,
|
|
118
119
|
.#{$prefix}--search--lg.#{$prefix}--search--expandable.#{$prefix}--search--expanded
|
|
119
120
|
.#{$prefix}--search-input {
|
|
120
|
-
height: convert.to-rem(48px);
|
|
121
121
|
// 16px padding on either side of icon + 16px icon (48px)
|
|
122
122
|
padding: 0 $spacing-09;
|
|
123
|
+
block-size: convert.to-rem(48px);
|
|
123
124
|
}
|
|
124
125
|
|
|
125
126
|
.#{$prefix}--search-magnifier-icon {
|
|
@@ -127,11 +128,11 @@
|
|
|
127
128
|
|
|
128
129
|
position: absolute;
|
|
129
130
|
z-index: 2;
|
|
130
|
-
|
|
131
|
-
left: $spacing-05;
|
|
132
|
-
width: convert.to-rem(16px);
|
|
133
|
-
height: convert.to-rem(16px);
|
|
131
|
+
block-size: convert.to-rem(16px);
|
|
134
132
|
fill: $icon-secondary;
|
|
133
|
+
inline-size: convert.to-rem(16px);
|
|
134
|
+
inset-block-start: 50%;
|
|
135
|
+
inset-inline-start: $spacing-05;
|
|
135
136
|
pointer-events: none;
|
|
136
137
|
transform: translateY(-50%);
|
|
137
138
|
}
|
|
@@ -141,18 +142,18 @@
|
|
|
141
142
|
@include focus-outline('reset');
|
|
142
143
|
|
|
143
144
|
position: absolute;
|
|
144
|
-
|
|
145
|
-
|
|
145
|
+
inset-block-start: 0;
|
|
146
|
+
inset-inline-end: 0;
|
|
146
147
|
|
|
147
148
|
&::before {
|
|
148
149
|
position: absolute;
|
|
149
|
-
top: convert.to-rem(1px);
|
|
150
|
-
left: 0;
|
|
151
150
|
display: block;
|
|
152
|
-
width: 2px;
|
|
153
|
-
height: calc(100% - 2px);
|
|
154
151
|
background-color: $field;
|
|
152
|
+
block-size: calc(100% - 2px);
|
|
155
153
|
content: '';
|
|
154
|
+
inline-size: 2px;
|
|
155
|
+
inset-block-start: convert.to-rem(1px);
|
|
156
|
+
inset-inline-start: 0;
|
|
156
157
|
transition: background-color $duration-fast-02
|
|
157
158
|
motion(standard, productive);
|
|
158
159
|
|
|
@@ -162,7 +163,7 @@
|
|
|
162
163
|
}
|
|
163
164
|
|
|
164
165
|
&:hover {
|
|
165
|
-
border-
|
|
166
|
+
border-block-end: 1px solid $border-strong;
|
|
166
167
|
|
|
167
168
|
&::before {
|
|
168
169
|
background-color: $field-hover;
|
|
@@ -172,8 +173,8 @@
|
|
|
172
173
|
|
|
173
174
|
.#{$prefix}--search-button {
|
|
174
175
|
flex-shrink: 0;
|
|
175
|
-
margin-left: $spacing-01;
|
|
176
176
|
background-color: $field;
|
|
177
|
+
margin-inline-start: $spacing-01;
|
|
177
178
|
|
|
178
179
|
svg {
|
|
179
180
|
fill: currentColor;
|
|
@@ -188,15 +189,15 @@
|
|
|
188
189
|
.#{$prefix}--search-close,
|
|
189
190
|
.#{$prefix}--search-button {
|
|
190
191
|
display: flex;
|
|
191
|
-
width: convert.to-rem(40px);
|
|
192
|
-
height: convert.to-rem(40px);
|
|
193
192
|
align-items: center;
|
|
194
193
|
justify-content: center;
|
|
195
194
|
border-width: 1px 0;
|
|
196
195
|
border-style: solid;
|
|
197
196
|
border-color: transparent;
|
|
197
|
+
block-size: convert.to-rem(40px);
|
|
198
198
|
cursor: pointer;
|
|
199
199
|
fill: $icon-primary;
|
|
200
|
+
inline-size: convert.to-rem(40px);
|
|
200
201
|
opacity: 1;
|
|
201
202
|
transition: opacity $duration-fast-02 motion(standard, productive),
|
|
202
203
|
background-color $duration-fast-02 motion(standard, productive),
|
|
@@ -226,8 +227,8 @@
|
|
|
226
227
|
outline: none;
|
|
227
228
|
|
|
228
229
|
&:hover {
|
|
229
|
-
border-bottom-color: transparent;
|
|
230
230
|
background-color: transparent;
|
|
231
|
+
border-block-end-color: transparent;
|
|
231
232
|
}
|
|
232
233
|
|
|
233
234
|
&:hover::before {
|
|
@@ -256,8 +257,8 @@
|
|
|
256
257
|
~ .#{$prefix}--search-button,
|
|
257
258
|
&.#{$prefix}--search--expandable,
|
|
258
259
|
&.#{$prefix}--search--expandable .#{$prefix}--search-magnifier {
|
|
259
|
-
|
|
260
|
-
|
|
260
|
+
block-size: convert.to-rem(32px);
|
|
261
|
+
inline-size: convert.to-rem(32px);
|
|
261
262
|
}
|
|
262
263
|
|
|
263
264
|
&.#{$prefix}--search--expandable .#{$prefix}--search-input::placeholder {
|
|
@@ -271,8 +272,8 @@
|
|
|
271
272
|
~ .#{$prefix}--search-button,
|
|
272
273
|
&.#{$prefix}--search--expandable,
|
|
273
274
|
&.#{$prefix}--search--expandable .#{$prefix}--search-magnifier {
|
|
274
|
-
|
|
275
|
-
|
|
275
|
+
block-size: convert.to-rem(40px);
|
|
276
|
+
inline-size: convert.to-rem(40px);
|
|
276
277
|
}
|
|
277
278
|
|
|
278
279
|
&.#{$prefix}--search--expandable .#{$prefix}--search-input::placeholder {
|
|
@@ -286,8 +287,8 @@
|
|
|
286
287
|
~ .#{$prefix}--search-button,
|
|
287
288
|
&.#{$prefix}--search--expandable,
|
|
288
289
|
&.#{$prefix}--search--expandable .#{$prefix}--search-magnifier {
|
|
289
|
-
|
|
290
|
-
|
|
290
|
+
block-size: convert.to-rem(48px);
|
|
291
|
+
inline-size: convert.to-rem(48px);
|
|
291
292
|
}
|
|
292
293
|
|
|
293
294
|
&.#{$prefix}--search--expandable .#{$prefix}--search-input::placeholder {
|
|
@@ -305,7 +306,7 @@
|
|
|
305
306
|
.#{$prefix}--search--sm.#{$prefix}--skeleton .#{$prefix}--search-input {
|
|
306
307
|
@include skeleton;
|
|
307
308
|
|
|
308
|
-
|
|
309
|
+
inline-size: 100%;
|
|
309
310
|
|
|
310
311
|
&::placeholder {
|
|
311
312
|
color: transparent;
|
|
@@ -317,12 +318,12 @@
|
|
|
317
318
|
}
|
|
318
319
|
|
|
319
320
|
.#{$prefix}--search--expandable.#{$prefix}--search--expanded {
|
|
320
|
-
|
|
321
|
+
inline-size: 100%;
|
|
321
322
|
}
|
|
322
323
|
|
|
323
324
|
.#{$prefix}--search--expandable .#{$prefix}--search-input {
|
|
324
|
-
width: 0;
|
|
325
325
|
padding: 0;
|
|
326
|
+
inline-size: 0;
|
|
326
327
|
transition: padding $duration-fast-01 motion(standard, productive),
|
|
327
328
|
width 0s linear $duration-fast-01;
|
|
328
329
|
|
|
@@ -337,7 +338,7 @@
|
|
|
337
338
|
|
|
338
339
|
.#{$prefix}--search--expandable.#{$prefix}--search--expanded
|
|
339
340
|
.#{$prefix}--search-input {
|
|
340
|
-
|
|
341
|
+
inline-size: 100%;
|
|
341
342
|
transition: padding $duration-fast-01 motion(standard, productive);
|
|
342
343
|
|
|
343
344
|
&::placeholder {
|