@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
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
|
|
29
29
|
position: relative;
|
|
30
30
|
display: flex;
|
|
31
|
-
width: 100%;
|
|
32
31
|
flex-direction: column;
|
|
32
|
+
inline-size: 100%;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.#{$prefix}--number
|
|
36
36
|
.#{$prefix}--number__input-wrapper--warning
|
|
37
37
|
input[type='number'] {
|
|
38
|
-
padding-
|
|
38
|
+
padding-inline-end: convert.to-rem(128px);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.#{$prefix}--number input[type='number'] {
|
|
@@ -43,23 +43,23 @@
|
|
|
43
43
|
@include focus-outline('reset');
|
|
44
44
|
|
|
45
45
|
display: inline-flex;
|
|
46
|
-
width: 100%;
|
|
47
|
-
min-width: 9.375rem;
|
|
48
|
-
height: convert.to-rem(40px);
|
|
49
46
|
box-sizing: border-box;
|
|
50
|
-
padding-right: convert.to-rem(96px);
|
|
51
|
-
padding-left: $spacing-05;
|
|
52
47
|
border: 0;
|
|
53
|
-
border-bottom: convert.to-rem(1px) solid $border-strong;
|
|
54
48
|
|
|
55
49
|
// Firefox: Hide spinner (up and down buttons)
|
|
56
50
|
-moz-appearance: textfield;
|
|
57
51
|
appearance: textfield;
|
|
58
52
|
background-color: $field;
|
|
53
|
+
block-size: convert.to-rem(40px);
|
|
54
|
+
border-block-end: convert.to-rem(1px) solid $border-strong;
|
|
59
55
|
border-radius: 0;
|
|
60
56
|
color: $text-primary;
|
|
61
57
|
font-family: font-family('sans');
|
|
62
58
|
font-weight: 400;
|
|
59
|
+
inline-size: 100%;
|
|
60
|
+
min-inline-size: 9.375rem;
|
|
61
|
+
padding-inline-end: convert.to-rem(96px);
|
|
62
|
+
padding-inline-start: $spacing-05;
|
|
63
63
|
transition: background-color $duration-fast-01 motion(standard, productive),
|
|
64
64
|
outline $duration-fast-01 motion(standard, productive);
|
|
65
65
|
|
|
@@ -87,41 +87,41 @@
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
&[data-invalid] {
|
|
90
|
-
padding-
|
|
90
|
+
padding-inline-end: convert.to-rem(128px);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
.#{$prefix}--number--lg.#{$prefix}--number {
|
|
95
95
|
input[type='number'] {
|
|
96
|
-
padding-
|
|
96
|
+
padding-inline-end: convert.to-rem(112px);
|
|
97
97
|
|
|
98
98
|
&[data-invalid] {
|
|
99
|
-
padding-
|
|
99
|
+
padding-inline-end: convert.to-rem(144px);
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
.#{$prefix}--number__input-wrapper--warning input[type='number'] {
|
|
104
|
-
padding-
|
|
104
|
+
padding-inline-end: convert.to-rem(144px);
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
.#{$prefix}--number--sm.#{$prefix}--number {
|
|
109
109
|
input[type='number'] {
|
|
110
|
-
padding-
|
|
110
|
+
padding-inline-end: convert.to-rem(80px);
|
|
111
111
|
|
|
112
112
|
&[data-invalid] {
|
|
113
|
-
padding-
|
|
113
|
+
padding-inline-end: convert.to-rem(112px);
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
.#{$prefix}--number__input-wrapper--warning input[type='number'] {
|
|
118
|
-
padding-
|
|
118
|
+
padding-inline-end: convert.to-rem(112px);
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
.#{$prefix}--number input[type='number']:disabled {
|
|
123
|
-
border-bottom-color: transparent;
|
|
124
123
|
background-color: $field;
|
|
124
|
+
border-block-end-color: transparent;
|
|
125
125
|
color: $text-disabled;
|
|
126
126
|
cursor: not-allowed;
|
|
127
127
|
}
|
|
@@ -136,15 +136,15 @@
|
|
|
136
136
|
@include reset;
|
|
137
137
|
|
|
138
138
|
position: absolute;
|
|
139
|
-
// vertically center controls within parent container on IE11
|
|
140
|
-
top: 50%;
|
|
141
|
-
right: 0;
|
|
142
139
|
display: flex;
|
|
143
|
-
width: convert.to-rem(80px);
|
|
144
|
-
height: 100%;
|
|
145
140
|
flex-direction: row;
|
|
146
141
|
align-items: center;
|
|
147
142
|
justify-content: center;
|
|
143
|
+
block-size: 100%;
|
|
144
|
+
inline-size: convert.to-rem(80px);
|
|
145
|
+
// vertically center controls within parent container on IE11
|
|
146
|
+
inset-block-start: 50%;
|
|
147
|
+
inset-inline-end: 0;
|
|
148
148
|
transform: translateY(-50%);
|
|
149
149
|
}
|
|
150
150
|
|
|
@@ -153,30 +153,30 @@
|
|
|
153
153
|
|
|
154
154
|
position: relative;
|
|
155
155
|
display: inline-flex;
|
|
156
|
-
height: 100%;
|
|
157
156
|
align-items: center;
|
|
158
157
|
justify-content: center;
|
|
159
|
-
|
|
158
|
+
block-size: 100%;
|
|
159
|
+
border-block-end: convert.to-rem(1px) solid $border-strong;
|
|
160
160
|
color: $icon-primary;
|
|
161
161
|
|
|
162
162
|
&::before,
|
|
163
163
|
&::after {
|
|
164
164
|
position: absolute;
|
|
165
|
-
top: convert.to-rem(2px);
|
|
166
165
|
display: block;
|
|
167
|
-
width: convert.to-rem(2px);
|
|
168
|
-
// height: calc(100% - 4px) is calculated differently in Safari
|
|
169
|
-
height: convert.to-rem(36px);
|
|
170
166
|
background-color: $field;
|
|
167
|
+
// block-size: calc(100% - 4px) is calculated differently in Safari
|
|
168
|
+
block-size: convert.to-rem(36px);
|
|
171
169
|
content: '';
|
|
170
|
+
inline-size: convert.to-rem(2px);
|
|
171
|
+
inset-block-start: convert.to-rem(2px);
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
&::before {
|
|
175
|
-
|
|
175
|
+
inset-inline-start: 0;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
&::after {
|
|
179
|
-
|
|
179
|
+
inset-inline-end: 0;
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
svg {
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
&:disabled {
|
|
213
|
-
border-
|
|
213
|
+
border-block-end-color: transparent;
|
|
214
214
|
color: $text-disabled;
|
|
215
215
|
cursor: not-allowed;
|
|
216
216
|
}
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
input[type='number']:focus
|
|
231
231
|
~ .#{$prefix}--number__controls
|
|
232
232
|
.#{$prefix}--number__control-btn {
|
|
233
|
-
border-
|
|
233
|
+
border-block-end-color: transparent;
|
|
234
234
|
|
|
235
235
|
&:hover {
|
|
236
236
|
@include focus-outline('outline');
|
|
@@ -241,7 +241,7 @@
|
|
|
241
241
|
input[type='number'][data-invalid]
|
|
242
242
|
~ .#{$prefix}--number__controls
|
|
243
243
|
.#{$prefix}--number__control-btn {
|
|
244
|
-
border-
|
|
244
|
+
border-block-end-color: transparent;
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
// add invalid outline to number controls only when invalid input is not focused
|
|
@@ -280,9 +280,9 @@
|
|
|
280
280
|
.#{$prefix}--number__rule-divider {
|
|
281
281
|
position: absolute;
|
|
282
282
|
z-index: z('overlay');
|
|
283
|
-
width: convert.to-rem(1px);
|
|
284
|
-
height: convert.to-rem(16px);
|
|
285
283
|
background-color: $border-subtle;
|
|
284
|
+
block-size: convert.to-rem(16px);
|
|
285
|
+
inline-size: convert.to-rem(1px);
|
|
286
286
|
|
|
287
287
|
&:first-of-type {
|
|
288
288
|
order: 0;
|
|
@@ -292,8 +292,8 @@
|
|
|
292
292
|
// rule divider styles
|
|
293
293
|
.#{$prefix}--number__controls
|
|
294
294
|
.#{$prefix}--number__rule-divider:first-of-type {
|
|
295
|
-
left: 0;
|
|
296
295
|
background-color: transparent;
|
|
296
|
+
inset-inline-start: 0;
|
|
297
297
|
}
|
|
298
298
|
|
|
299
299
|
.#{$prefix}--number__invalid
|
|
@@ -331,33 +331,33 @@
|
|
|
331
331
|
|
|
332
332
|
.#{$prefix}--number__invalid {
|
|
333
333
|
position: absolute;
|
|
334
|
-
right: convert.to-rem(96px);
|
|
335
334
|
fill: $support-error;
|
|
335
|
+
inset-inline-end: convert.to-rem(96px);
|
|
336
336
|
}
|
|
337
337
|
|
|
338
338
|
.#{$prefix}--number--lg .#{$prefix}--number__invalid {
|
|
339
|
-
|
|
339
|
+
inset-inline-end: convert.to-rem(112px);
|
|
340
340
|
}
|
|
341
341
|
|
|
342
342
|
.#{$prefix}--number--sm .#{$prefix}--number__invalid {
|
|
343
|
-
|
|
343
|
+
inset-inline-end: convert.to-rem(80px);
|
|
344
344
|
}
|
|
345
345
|
|
|
346
346
|
.#{$prefix}--number__invalid + .#{$prefix}--number__rule-divider {
|
|
347
347
|
position: absolute;
|
|
348
|
-
|
|
348
|
+
inset-inline-end: convert.to-rem(80px);
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
.#{$prefix}--number--lg
|
|
352
352
|
.#{$prefix}--number__invalid
|
|
353
353
|
+ .#{$prefix}--number__rule-divider {
|
|
354
|
-
|
|
354
|
+
inset-inline-end: convert.to-rem(96px);
|
|
355
355
|
}
|
|
356
356
|
|
|
357
357
|
.#{$prefix}--number--sm
|
|
358
358
|
.#{$prefix}--number__invalid
|
|
359
359
|
+ .#{$prefix}--number__rule-divider {
|
|
360
|
-
|
|
360
|
+
inset-inline-end: convert.to-rem(64px);
|
|
361
361
|
}
|
|
362
362
|
|
|
363
363
|
.#{$prefix}--number__control-btn.down-icon:hover
|
|
@@ -414,38 +414,38 @@
|
|
|
414
414
|
|
|
415
415
|
// Size Variant styles
|
|
416
416
|
.#{$prefix}--number--lg input[type='number'] {
|
|
417
|
-
|
|
417
|
+
block-size: convert.to-rem(48px);
|
|
418
418
|
}
|
|
419
419
|
|
|
420
420
|
.#{$prefix}--number--lg .#{$prefix}--number__controls {
|
|
421
|
-
|
|
421
|
+
inline-size: convert.to-rem(96px);
|
|
422
422
|
}
|
|
423
423
|
|
|
424
424
|
.#{$prefix}--number--lg .#{$prefix}--number__control-btn {
|
|
425
|
-
|
|
425
|
+
inline-size: convert.to-rem(48px);
|
|
426
426
|
|
|
427
427
|
&::before,
|
|
428
428
|
&::after {
|
|
429
|
-
//
|
|
430
|
-
|
|
429
|
+
// block-size: calc(100% - 4px) is calculated differently in Safari
|
|
430
|
+
block-size: convert.to-rem(44px);
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
433
|
|
|
434
434
|
.#{$prefix}--number--sm input[type='number'] {
|
|
435
|
-
|
|
435
|
+
block-size: convert.to-rem(32px);
|
|
436
436
|
}
|
|
437
437
|
|
|
438
438
|
.#{$prefix}--number--sm .#{$prefix}--number__controls {
|
|
439
|
-
|
|
439
|
+
inline-size: convert.to-rem(64px);
|
|
440
440
|
}
|
|
441
441
|
|
|
442
442
|
.#{$prefix}--number--sm .#{$prefix}--number__control-btn {
|
|
443
|
-
|
|
443
|
+
inline-size: convert.to-rem(32px);
|
|
444
444
|
|
|
445
445
|
&::before,
|
|
446
446
|
&::after {
|
|
447
|
-
//
|
|
448
|
-
|
|
447
|
+
// block-size: calc(100% - 4px) is calculated differently in Safari
|
|
448
|
+
block-size: convert.to-rem(28px);
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
451
|
|
|
@@ -453,22 +453,22 @@
|
|
|
453
453
|
.#{$prefix}--number--nolabel
|
|
454
454
|
.#{$prefix}--label
|
|
455
455
|
+ .#{$prefix}--form__helper-text {
|
|
456
|
-
margin-
|
|
456
|
+
margin-block-start: 0;
|
|
457
457
|
}
|
|
458
458
|
|
|
459
459
|
// No steppers
|
|
460
460
|
.#{$prefix}--number--nosteppers input[type='number'] {
|
|
461
|
-
padding-
|
|
461
|
+
padding-inline-end: convert.to-rem(48px);
|
|
462
462
|
}
|
|
463
463
|
|
|
464
464
|
.#{$prefix}--number--nosteppers .#{$prefix}--number__invalid {
|
|
465
|
-
|
|
465
|
+
inset-inline-end: convert.to-rem(16px);
|
|
466
466
|
}
|
|
467
467
|
|
|
468
468
|
// Readonly
|
|
469
469
|
.#{$prefix}--number--readonly input[type='number'] {
|
|
470
|
-
border-bottom-color: $border-subtle;
|
|
471
470
|
background: transparent;
|
|
471
|
+
border-block-end-color: $border-subtle;
|
|
472
472
|
}
|
|
473
473
|
|
|
474
474
|
.#{$prefix}--number--readonly .#{$prefix}--number__control-btn {
|
|
@@ -508,27 +508,27 @@
|
|
|
508
508
|
.#{$prefix}--number.#{$prefix}--skeleton {
|
|
509
509
|
@include skeleton;
|
|
510
510
|
|
|
511
|
-
|
|
512
|
-
|
|
511
|
+
block-size: 2.5rem;
|
|
512
|
+
inline-size: 100%;
|
|
513
513
|
|
|
514
514
|
input[type='number'] {
|
|
515
515
|
display: none;
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
518
|
|
|
519
|
-
// Windows HCM fix
|
|
520
|
-
/* stylelint-disable */
|
|
521
|
-
.#{$prefix}--number__control-btn:hover,
|
|
522
|
-
.#{$prefix}--number__control-btn:focus {
|
|
523
|
-
|
|
524
|
-
}
|
|
519
|
+
// // Windows HCM fix
|
|
520
|
+
// /* stylelint-disable */
|
|
521
|
+
// .#{$prefix}--number__control-btn:hover,
|
|
522
|
+
// .#{$prefix}--number__control-btn:focus {
|
|
523
|
+
// @include high-contrast-mode('focus');
|
|
524
|
+
// }
|
|
525
525
|
|
|
526
|
-
.#{$prefix}--number__control-btn {
|
|
527
|
-
|
|
528
|
-
}
|
|
526
|
+
// .#{$prefix}--number__control-btn {
|
|
527
|
+
// @include high-contrast-mode('outline');
|
|
528
|
+
// }
|
|
529
529
|
|
|
530
|
-
.#{$prefix}--number__control-btn svg {
|
|
531
|
-
|
|
532
|
-
}
|
|
533
|
-
/* stylelint-enable */
|
|
530
|
+
// .#{$prefix}--number__control-btn svg {
|
|
531
|
+
// @include high-contrast-mode('icon-fill');
|
|
532
|
+
// }
|
|
533
|
+
// /* stylelint-enable */
|
|
534
534
|
}
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
|
|
34
34
|
position: relative;
|
|
35
35
|
display: flex;
|
|
36
|
-
width: convert.to-rem(40px);
|
|
37
|
-
height: convert.to-rem(40px);
|
|
38
|
-
min-height: convert.to-rem(40px);
|
|
39
36
|
align-items: center;
|
|
40
37
|
justify-content: center;
|
|
38
|
+
block-size: convert.to-rem(40px);
|
|
41
39
|
cursor: pointer;
|
|
40
|
+
inline-size: convert.to-rem(40px);
|
|
41
|
+
min-block-size: convert.to-rem(40px);
|
|
42
42
|
transition: outline $duration-fast-02 motion(entrance, productive),
|
|
43
43
|
background-color $duration-fast-02 motion(entrance, productive);
|
|
44
44
|
|
|
@@ -56,13 +56,13 @@
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
.#{$prefix}--overflow-menu--sm {
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
block-size: convert.to-rem(32px);
|
|
60
|
+
inline-size: convert.to-rem(32px);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
.#{$prefix}--overflow-menu--lg {
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
block-size: convert.to-rem(48px);
|
|
65
|
+
inline-size: convert.to-rem(48px);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
// Overwrite Icon Tooltip focus styles
|
|
@@ -90,9 +90,9 @@
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
.#{$prefix}--overflow-menu__icon {
|
|
93
|
-
|
|
94
|
-
height: convert.to-rem(16px);
|
|
93
|
+
block-size: convert.to-rem(16px);
|
|
95
94
|
fill: $icon-primary;
|
|
95
|
+
inline-size: convert.to-rem(16px);
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
.#{$prefix}--overflow-menu__wrapper {
|
|
@@ -105,13 +105,13 @@
|
|
|
105
105
|
|
|
106
106
|
position: absolute;
|
|
107
107
|
z-index: z('floating');
|
|
108
|
-
top: 32px;
|
|
109
|
-
left: 0;
|
|
110
108
|
display: none;
|
|
111
|
-
width: convert.to-rem(160px);
|
|
112
109
|
flex-direction: column;
|
|
113
110
|
align-items: flex-start;
|
|
114
111
|
background-color: $layer;
|
|
112
|
+
inline-size: convert.to-rem(160px);
|
|
113
|
+
inset-block-start: 32px;
|
|
114
|
+
inset-inline-start: 0;
|
|
115
115
|
list-style: none;
|
|
116
116
|
|
|
117
117
|
&::after {
|
|
@@ -147,67 +147,67 @@
|
|
|
147
147
|
.#{$prefix}--overflow-menu-options[data-floating-menu-direction='bottom']:not(
|
|
148
148
|
.#{$prefix}--breadcrumb-menu-options
|
|
149
149
|
)::after {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
150
|
+
block-size: convert.to-rem(3px);
|
|
151
|
+
inline-size: convert.to-rem(40px);
|
|
152
|
+
inset-block-start: convert.to-rem(-3px);
|
|
153
|
+
inset-inline-start: 0;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
.#{$prefix}--overflow-menu-options[data-floating-menu-direction='top']::after {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
157
|
+
block-size: convert.to-rem(8px);
|
|
158
|
+
inline-size: convert.to-rem(40px);
|
|
159
|
+
inset-block-end: convert.to-rem(-8px);
|
|
160
|
+
inset-inline-start: 0;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
.#{$prefix}--overflow-menu-options[data-floating-menu-direction='left']::after {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
164
|
+
block-size: convert.to-rem(40px);
|
|
165
|
+
inline-size: convert.to-rem(6px);
|
|
166
|
+
inset-block-start: 0;
|
|
167
|
+
inset-inline-end: convert.to-rem(-6px);
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
.#{$prefix}--overflow-menu-options[data-floating-menu-direction='right']::after {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
171
|
+
block-size: convert.to-rem(40px);
|
|
172
|
+
inline-size: convert.to-rem(6px);
|
|
173
|
+
inset-block-start: 0;
|
|
174
|
+
inset-inline-start: convert.to-rem(-6px);
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
.#{$prefix}--overflow-menu-options--sm.#{$prefix}--overflow-menu-options {
|
|
178
178
|
&[data-floating-menu-direction='bottom']::after,
|
|
179
179
|
&[data-floating-menu-direction='top']::after {
|
|
180
|
-
|
|
180
|
+
inline-size: convert.to-rem(32px);
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
&[data-floating-menu-direction='left']::after,
|
|
184
184
|
&[data-floating-menu-direction='right']::after {
|
|
185
|
-
|
|
185
|
+
block-size: convert.to-rem(32px);
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
.#{$prefix}--overflow-menu-options--lg.#{$prefix}--overflow-menu-options {
|
|
190
190
|
&[data-floating-menu-direction='bottom']::after,
|
|
191
191
|
&[data-floating-menu-direction='top']::after {
|
|
192
|
-
|
|
192
|
+
inline-size: convert.to-rem(48px);
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
&[data-floating-menu-direction='left']::after,
|
|
196
196
|
&[data-floating-menu-direction='right']::after {
|
|
197
|
-
|
|
197
|
+
block-size: convert.to-rem(48px);
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
.#{$prefix}--overflow-menu--flip.#{$prefix}--overflow-menu-options[data-floating-menu-direction='top']::after,
|
|
202
202
|
.#{$prefix}--overflow-menu--flip.#{$prefix}--overflow-menu-options[data-floating-menu-direction='bottom']::after {
|
|
203
|
-
|
|
204
|
-
|
|
203
|
+
inset-inline-end: 0;
|
|
204
|
+
inset-inline-start: auto;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
.#{$prefix}--overflow-menu--flip.#{$prefix}--overflow-menu-options[data-floating-menu-direction='left']::after,
|
|
208
208
|
.#{$prefix}--overflow-menu--flip.#{$prefix}--overflow-menu-options[data-floating-menu-direction='right']::after {
|
|
209
|
-
|
|
210
|
-
|
|
209
|
+
inset-block-end: 0;
|
|
210
|
+
inset-block-start: auto;
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
.#{$prefix}--overflow-menu-options--open {
|
|
@@ -215,42 +215,42 @@
|
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
.#{$prefix}--overflow-menu-options__content {
|
|
218
|
-
|
|
218
|
+
inline-size: 100%;
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
.#{$prefix}--overflow-menu-options__option {
|
|
222
222
|
@include component-reset.reset;
|
|
223
223
|
|
|
224
224
|
display: flex;
|
|
225
|
-
width: 100%;
|
|
226
|
-
height: convert.to-rem(40px);
|
|
227
225
|
align-items: center;
|
|
228
226
|
padding: 0;
|
|
229
227
|
background-color: transparent;
|
|
228
|
+
block-size: convert.to-rem(40px);
|
|
229
|
+
inline-size: 100%;
|
|
230
230
|
transition: background-color $duration-fast-02 motion(entrance, productive);
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
.#{$prefix}--overflow-menu-options--sm
|
|
234
234
|
.#{$prefix}--overflow-menu-options__option {
|
|
235
|
-
|
|
235
|
+
block-size: convert.to-rem(32px);
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
.#{$prefix}--overflow-menu-options--lg
|
|
239
239
|
.#{$prefix}--overflow-menu-options__option {
|
|
240
|
-
|
|
240
|
+
block-size: convert.to-rem(48px);
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
.#{$prefix}--overflow-menu--divider {
|
|
244
|
-
border-
|
|
244
|
+
border-block-start: 1px solid $border-subtle;
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
.#{$prefix}--overflow-menu--light .#{$prefix}--overflow-menu--divider {
|
|
248
|
-
border-
|
|
248
|
+
border-block-start: 1px solid $border-subtle;
|
|
249
249
|
}
|
|
250
250
|
|
|
251
251
|
a.#{$prefix}--overflow-menu-options__btn::before {
|
|
252
252
|
display: inline-block;
|
|
253
|
-
|
|
253
|
+
block-size: 100%;
|
|
254
254
|
content: '';
|
|
255
255
|
vertical-align: middle;
|
|
256
256
|
}
|
|
@@ -260,18 +260,18 @@
|
|
|
260
260
|
@include focus-outline('reset');
|
|
261
261
|
|
|
262
262
|
display: inline-flex;
|
|
263
|
-
width: 100%;
|
|
264
|
-
max-width: 11.25rem;
|
|
265
|
-
height: 100%;
|
|
266
263
|
align-items: center;
|
|
267
264
|
padding: 0 $spacing-05;
|
|
268
265
|
border: none;
|
|
269
266
|
background-color: transparent;
|
|
267
|
+
block-size: 100%;
|
|
270
268
|
color: $text-secondary;
|
|
271
269
|
cursor: pointer;
|
|
272
270
|
font-family: inherit;
|
|
273
271
|
font-weight: 400;
|
|
274
|
-
|
|
272
|
+
inline-size: 100%;
|
|
273
|
+
max-inline-size: 11.25rem;
|
|
274
|
+
text-align: start;
|
|
275
275
|
transition: outline $duration-fast-02 motion(entrance, productive),
|
|
276
276
|
background-color $duration-fast-02 motion(entrance, productive),
|
|
277
277
|
color $duration-fast-02 motion(entrance, productive);
|
|
@@ -345,10 +345,10 @@
|
|
|
345
345
|
}
|
|
346
346
|
|
|
347
347
|
.#{$prefix}--overflow-menu--flip {
|
|
348
|
-
|
|
348
|
+
inset-inline-start: -140px;
|
|
349
349
|
|
|
350
350
|
&::before {
|
|
351
|
-
|
|
351
|
+
inset-inline-start: 145px;
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
|