@carbon/styles 1.35.0 → 1.36.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 +67 -46
- package/css/styles.min.css +1 -1
- package/package.json +6 -6
- package/scss/_layout.scss +7 -7
- package/scss/components/breadcrumb/_breadcrumb.scss +6 -6
- package/scss/components/button/_button.scss +27 -18
- package/scss/components/button/_mixins.scss +15 -10
- package/scss/components/checkbox/_checkbox.scss +22 -21
- package/scss/components/code-snippet/_code-snippet.scss +15 -15
- package/scss/components/code-snippet/_mixins.scss +2 -2
- package/scss/components/combo-button/_combo-button.scss +6 -6
- package/scss/components/contained-list/_contained-list.scss +0 -1
- package/scss/components/content-switcher/_content-switcher.scss +19 -19
- package/scss/components/copy-button/_copy-button.scss +0 -1
- package/scss/components/data-table/_data-table.scss +62 -62
- package/scss/components/data-table/_mixins.scss +3 -2
- package/scss/components/data-table/action/_data-table-action.scss +28 -28
- package/scss/components/data-table/expandable/_data-table-expandable.scss +11 -11
- package/scss/components/data-table/skeleton/_data-table-skeleton.scss +7 -7
- package/scss/components/data-table/sort/_data-table-sort.scss +13 -13
- package/scss/components/date-picker/_date-picker.scss +11 -11
- package/scss/components/date-picker/_flatpickr.scss +30 -30
- package/scss/components/dropdown/_dropdown.scss +30 -30
- package/scss/components/file-uploader/_file-uploader.scss +13 -13
- package/scss/components/fluid-combo-box/_fluid-combo-box.scss +4 -4
- package/scss/components/fluid-date-picker/_fluid-date-picker.scss +19 -19
- package/scss/components/fluid-dropdown/_fluid-dropdown.scss +0 -1
- package/scss/components/fluid-list-box/_fluid-list-box.scss +13 -13
- package/scss/components/fluid-multiselect/_fluid-multiselect.scss +0 -1
- package/scss/components/fluid-number-input/_fluid-number-input.scss +14 -13
- package/scss/components/fluid-search/_fluid-search.scss +15 -14
- package/scss/components/fluid-select/_fluid-select.scss +9 -8
- package/scss/components/fluid-text-area/_fluid-text-area.scss +7 -7
- package/scss/components/fluid-text-input/_fluid-text-input.scss +14 -14
- package/scss/components/fluid-time-picker/_fluid-time-picker.scss +5 -5
- package/scss/components/form/_form.scss +5 -5
- package/scss/components/inline-loading/_inline-loading.scss +3 -3
- package/scss/components/list/_list.scss +2 -2
- package/scss/components/list-box/_list-box.scss +50 -50
- package/scss/components/loading/_loading.scss +2 -2
- package/scss/components/menu/_menu.scss +2 -2
- package/scss/components/menu-button/_menu-button.scss +0 -1
- package/scss/components/modal/_modal.scss +32 -10
- package/scss/components/multiselect/_multiselect.scss +3 -3
- package/scss/components/notification/_actionable-notification.scss +22 -20
- package/scss/components/notification/_inline-notification.scss +16 -16
- package/scss/components/notification/_toast-notification.scss +8 -8
- package/scss/components/number-input/_number-input.scss +36 -35
- package/scss/components/overflow-menu/_overflow-menu.scss +30 -30
- package/scss/components/pagination/_pagination.scss +17 -17
- package/scss/components/pagination/_unstable_pagination.scss +8 -8
- package/scss/components/pagination-nav/_pagination-nav.scss +0 -1
- package/scss/components/popover/_popover.scss +55 -45
- package/scss/components/progress-bar/_progress-bar.scss +6 -6
- package/scss/components/progress-indicator/_progress-indicator.scss +21 -21
- package/scss/components/radio-button/_radio-button.scss +10 -9
- package/scss/components/search/_search.scss +20 -20
- package/scss/components/select/_select.scss +8 -8
- package/scss/components/skeleton-styles/_skeleton-styles.scss +5 -5
- package/scss/components/slider/_slider.scss +15 -14
- package/scss/components/structured-list/_structured-list.scss +2 -2
- package/scss/components/tabs/_tabs.scss +8 -8
- package/scss/components/tag/_tag.scss +11 -11
- package/scss/components/text-area/_text-area.scss +4 -4
- package/scss/components/text-input/_text-input.scss +17 -17
- package/scss/components/time-picker/_time-picker.scss +7 -7
- package/scss/components/toggle/_toggle.scss +27 -27
- package/scss/components/toggletip/_toggletip.scss +4 -1
- package/scss/components/tooltip/_tooltip.scss +7 -7
- package/scss/components/treeview/_treeview.scss +9 -9
- package/scss/components/ui-shell/header/_header.scss +7 -7
- package/scss/components/ui-shell/side-nav/_side-nav.scss +10 -10
- package/scss/components/ui-shell/switcher/_switcher.scss +3 -3
- package/scss/utilities/_convert.scss +1 -1
- package/scss/utilities/_tooltip.scss +36 -20
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
@use '../../motion' as *;
|
|
13
13
|
@use '../../spacing' as *;
|
|
14
14
|
@use '../../theme' as *;
|
|
15
|
-
@use '../../utilities/convert'
|
|
15
|
+
@use '../../utilities/convert';
|
|
16
16
|
@use '../../utilities/focus-outline' as *;
|
|
17
17
|
@use '../text-input';
|
|
18
18
|
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
.#{$prefix}--text-input--fluid .#{$prefix}--label {
|
|
29
29
|
position: absolute;
|
|
30
30
|
z-index: 1;
|
|
31
|
-
top: rem(13px);
|
|
31
|
+
top: convert.to-rem(13px);
|
|
32
32
|
left: $spacing-05;
|
|
33
33
|
display: flex;
|
|
34
34
|
width: calc(100% - 2rem);
|
|
35
|
-
height: rem(16px);
|
|
35
|
+
height: convert.to-rem(16px);
|
|
36
36
|
align-items: center;
|
|
37
37
|
margin: 0;
|
|
38
38
|
}
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
.#{$prefix}--text-input--fluid .#{$prefix}--text-input {
|
|
63
|
-
min-height: rem(64px);
|
|
64
|
-
padding: rem(32px) $spacing-05 rem(13px);
|
|
63
|
+
min-height: convert.to-rem(64px);
|
|
64
|
+
padding: convert.to-rem(32px) $spacing-05 convert.to-rem(13px);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.#{$prefix}--text-input__divider,
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
.#{$prefix}--text-input--fluid .#{$prefix}--form-requirement {
|
|
84
|
-
padding: $spacing-03 rem(40px) $spacing-03 $spacing-05;
|
|
84
|
+
padding: $spacing-03 convert.to-rem(40px) $spacing-03 $spacing-05;
|
|
85
85
|
margin: 0;
|
|
86
86
|
}
|
|
87
87
|
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
.#{$prefix}--text-input--fluid .#{$prefix}--text-input__invalid-icon {
|
|
107
|
-
top: rem(80px);
|
|
107
|
+
top: convert.to-rem(80px);
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
.#{$prefix}--text-input--fluid
|
|
@@ -155,16 +155,16 @@
|
|
|
155
155
|
|
|
156
156
|
.#{$prefix}--text-input--fluid
|
|
157
157
|
.#{$prefix}--btn.#{$prefix}--text-input--password__visibility__toggle.#{$prefix}--tooltip__trigger {
|
|
158
|
-
top: rem(26px);
|
|
158
|
+
top: convert.to-rem(26px);
|
|
159
159
|
right: $spacing-03;
|
|
160
|
-
width: rem(32px);
|
|
161
|
-
height: rem(32px);
|
|
160
|
+
width: convert.to-rem(32px);
|
|
161
|
+
height: convert.to-rem(32px);
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
// Skeleton
|
|
165
165
|
.#{$prefix}--text-input--fluid__skeleton {
|
|
166
166
|
position: relative;
|
|
167
|
-
height: rem(64px);
|
|
167
|
+
height: convert.to-rem(64px);
|
|
168
168
|
border-bottom: 1px solid $skeleton-element;
|
|
169
169
|
background: $skeleton-background;
|
|
170
170
|
}
|
|
@@ -174,15 +174,15 @@
|
|
|
174
174
|
top: $spacing-05;
|
|
175
175
|
left: $spacing-05;
|
|
176
176
|
width: 25%;
|
|
177
|
-
height: rem(8px);
|
|
177
|
+
height: convert.to-rem(8px);
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
.#{$prefix}--text-input--fluid__skeleton .#{$prefix}--label {
|
|
181
181
|
position: absolute;
|
|
182
|
-
top: rem(36px);
|
|
182
|
+
top: convert.to-rem(36px);
|
|
183
183
|
left: $spacing-05;
|
|
184
184
|
width: 50%;
|
|
185
|
-
height: rem(8px);
|
|
185
|
+
height: convert.to-rem(8px);
|
|
186
186
|
padding: 0;
|
|
187
187
|
}
|
|
188
188
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
@use '../../motion' as *;
|
|
13
13
|
@use '../../spacing' as *;
|
|
14
14
|
@use '../../theme' as *;
|
|
15
|
-
@use '../../utilities/convert'
|
|
15
|
+
@use '../../utilities/convert';
|
|
16
16
|
@use '../../utilities/focus-outline' as *;
|
|
17
17
|
@use '../fluid-text-input';
|
|
18
18
|
@use '../fluid-select';
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
|
|
90
90
|
// Invalid + Warn states
|
|
91
91
|
.#{$prefix}--time-picker--fluid .#{$prefix}--form-requirement {
|
|
92
|
-
padding: $spacing-03 rem(40px) $spacing-03 $spacing-05;
|
|
92
|
+
padding: $spacing-03 convert.to-rem(40px) $spacing-03 $spacing-05;
|
|
93
93
|
margin: 0;
|
|
94
94
|
background: $field;
|
|
95
95
|
}
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
.#{$prefix}--time-picker--fluid--invalid .#{$prefix}--select-input {
|
|
111
|
-
padding-top: rem(30px);
|
|
111
|
+
padding-top: convert.to-rem(30px);
|
|
112
112
|
border-top: 2px solid transparent;
|
|
113
113
|
}
|
|
114
114
|
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
.#{$prefix}--time-picker--fluid--invalid .#{$prefix}--time-picker__icon,
|
|
143
143
|
.#{$prefix}--time-picker--fluid--warning .#{$prefix}--time-picker__icon {
|
|
144
144
|
position: absolute;
|
|
145
|
-
top: rem(72px);
|
|
145
|
+
top: convert.to-rem(72px);
|
|
146
146
|
right: $spacing-05;
|
|
147
147
|
display: block;
|
|
148
148
|
}
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
.#{$prefix}--time-picker--fluid--skeleton {
|
|
215
215
|
display: flex;
|
|
216
216
|
width: 100%;
|
|
217
|
-
height: rem(64px);
|
|
217
|
+
height: convert.to-rem(64px);
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
.#{$prefix}--time-picker--fluid--skeleton > * {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
@use '../../type' as *;
|
|
12
12
|
@use '../../layer' as *;
|
|
13
13
|
@use '../../utilities/component-reset';
|
|
14
|
-
@use '../../utilities/convert'
|
|
14
|
+
@use '../../utilities/convert';
|
|
15
15
|
@use '../../utilities/focus-outline' as *;
|
|
16
16
|
@use '../../utilities/skeleton' as *;
|
|
17
17
|
@use '../..//utilities/button-reset';
|
|
@@ -111,8 +111,8 @@ $input-label-weight: 400 !default;
|
|
|
111
111
|
.#{$prefix}--label.#{$prefix}--skeleton {
|
|
112
112
|
@include skeleton;
|
|
113
113
|
|
|
114
|
-
width: rem(75px);
|
|
115
|
-
height: rem(14px);
|
|
114
|
+
width: convert.to-rem(75px);
|
|
115
|
+
height: convert.to-rem(14px);
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
input[type='number'] {
|
|
@@ -156,7 +156,7 @@ $input-label-weight: 400 !default;
|
|
|
156
156
|
~ .#{$prefix}--form-requirement {
|
|
157
157
|
display: block;
|
|
158
158
|
overflow: visible;
|
|
159
|
-
max-height: rem(200px);
|
|
159
|
+
max-height: convert.to-rem(200px);
|
|
160
160
|
font-weight: 400;
|
|
161
161
|
}
|
|
162
162
|
}
|
|
@@ -187,7 +187,7 @@ $input-label-weight: 400 !default;
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
.#{$prefix}--form--fluid .#{$prefix}--form-requirement {
|
|
190
|
-
padding: $spacing-03 rem(40px) $spacing-03 $spacing-05;
|
|
190
|
+
padding: $spacing-03 convert.to-rem(40px) $spacing-03 $spacing-05;
|
|
191
191
|
margin: 0;
|
|
192
192
|
}
|
|
193
193
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
@use '../../spacing' as *;
|
|
12
12
|
@use '../../theme' as *;
|
|
13
13
|
@use '../../type' as *;
|
|
14
|
-
@use '../../utilities/convert'
|
|
14
|
+
@use '../../utilities/convert';
|
|
15
15
|
|
|
16
16
|
/// @type Number
|
|
17
17
|
/// @access private
|
|
@@ -71,8 +71,8 @@ $-loading-gap-small: 110;
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
.#{$prefix}--inline-loading--error {
|
|
74
|
-
width: rem(16px);
|
|
75
|
-
height: rem(16px);
|
|
74
|
+
width: convert.to-rem(16px);
|
|
75
|
+
height: convert.to-rem(16px);
|
|
76
76
|
fill: $support-error;
|
|
77
77
|
|
|
78
78
|
&[hidden] {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.#{$prefix}--list--nested {
|
|
51
|
-
margin-left: convert.rem(32px);
|
|
51
|
+
margin-left: convert.to-rem(32px);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.#{$prefix}--list--nested .#{$prefix}--list__item {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
.#{$prefix}--list--ordered:not(.#{$prefix}--list--nested)
|
|
68
68
|
> .#{$prefix}--list__item::before {
|
|
69
69
|
position: absolute;
|
|
70
|
-
left: convert.rem(-24px);
|
|
70
|
+
left: convert.to-rem(-24px);
|
|
71
71
|
content: counter(item) '.';
|
|
72
72
|
counter-increment: item;
|
|
73
73
|
}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
@use '../../utilities/box-shadow' as *;
|
|
20
20
|
@use '../../utilities/button-reset';
|
|
21
21
|
@use '../../utilities/component-reset';
|
|
22
|
-
@use '../../utilities/convert'
|
|
22
|
+
@use '../../utilities/convert';
|
|
23
23
|
@use '../../utilities/focus-outline' as *;
|
|
24
24
|
@use '../../utilities/high-contrast-mode' as *;
|
|
25
25
|
@use '../../utilities/z-index' as *;
|
|
@@ -32,7 +32,7 @@ $list-box-width: 100%;
|
|
|
32
32
|
/// @type Number
|
|
33
33
|
/// @access public
|
|
34
34
|
/// @group list-box
|
|
35
|
-
$list-box-height: rem(40px);
|
|
35
|
+
$list-box-height: convert.to-rem(40px);
|
|
36
36
|
|
|
37
37
|
/// @type Number
|
|
38
38
|
/// @access public
|
|
@@ -42,7 +42,7 @@ $list-box-inline-height: $list-box-height;
|
|
|
42
42
|
/// @type Number
|
|
43
43
|
/// @access public
|
|
44
44
|
/// @group list-box
|
|
45
|
-
$list-box-menu-width: rem(300px);
|
|
45
|
+
$list-box-menu-width: convert.to-rem(300px);
|
|
46
46
|
|
|
47
47
|
/// List box styles
|
|
48
48
|
/// @access public
|
|
@@ -53,7 +53,7 @@ $list-box-menu-width: rem(300px);
|
|
|
53
53
|
.#{$prefix}--list-box__wrapper--inline {
|
|
54
54
|
display: inline-grid;
|
|
55
55
|
align-items: center;
|
|
56
|
-
grid-gap: rem(4px);
|
|
56
|
+
grid-gap: convert.to-rem(4px);
|
|
57
57
|
grid-template: auto auto / auto auto;
|
|
58
58
|
|
|
59
59
|
.#{$prefix}--label {
|
|
@@ -80,8 +80,8 @@ $list-box-menu-width: rem(300px);
|
|
|
80
80
|
|
|
81
81
|
position: relative;
|
|
82
82
|
width: $list-box-width;
|
|
83
|
-
height: rem(40px);
|
|
84
|
-
max-height: rem(40px);
|
|
83
|
+
height: convert.to-rem(40px);
|
|
84
|
+
max-height: convert.to-rem(40px);
|
|
85
85
|
border: none;
|
|
86
86
|
border-bottom: 1px solid $border-strong;
|
|
87
87
|
background-color: $field;
|
|
@@ -95,13 +95,13 @@ $list-box-menu-width: rem(300px);
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
.#{$prefix}--list-box--lg {
|
|
98
|
-
height: rem(48px);
|
|
99
|
-
max-height: rem(48px);
|
|
98
|
+
height: convert.to-rem(48px);
|
|
99
|
+
max-height: convert.to-rem(48px);
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
.#{$prefix}--list-box--sm {
|
|
103
|
-
height: rem(32px);
|
|
104
|
-
max-height: rem(32px);
|
|
103
|
+
height: convert.to-rem(32px);
|
|
104
|
+
max-height: convert.to-rem(32px);
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
.#{$prefix}--list-box--expanded {
|
|
@@ -159,7 +159,7 @@ $list-box-menu-width: rem(300px);
|
|
|
159
159
|
.#{$prefix}--list-box__field,
|
|
160
160
|
.#{$prefix}--list-box.#{$prefix}--list-box--warning.#{$prefix}--list-box--inline
|
|
161
161
|
.#{$prefix}--list-box__field {
|
|
162
|
-
padding-right: rem(56px);
|
|
162
|
+
padding-right: convert.to-rem(56px);
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
// V11: Possibly deprecate
|
|
@@ -291,12 +291,12 @@ $list-box-menu-width: rem(300px);
|
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
.#{$prefix}--dropdown--inline .#{$prefix}--list-box__field {
|
|
294
|
-
max-width: rem(480px);
|
|
294
|
+
max-width: convert.to-rem(480px);
|
|
295
295
|
}
|
|
296
296
|
|
|
297
297
|
.#{$prefix}--dropdown--inline .#{$prefix}--list-box__menu {
|
|
298
|
-
min-width: rem(288px);
|
|
299
|
-
max-width: rem(480px);
|
|
298
|
+
min-width: convert.to-rem(288px);
|
|
299
|
+
max-width: convert.to-rem(480px);
|
|
300
300
|
}
|
|
301
301
|
|
|
302
302
|
// The field we use for input, showing selection, etc.
|
|
@@ -328,7 +328,7 @@ $list-box-menu-width: rem(300px);
|
|
|
328
328
|
|
|
329
329
|
// populated input field
|
|
330
330
|
.#{$prefix}--list-box__field .#{$prefix}--text-input {
|
|
331
|
-
padding-right: rem(72px);
|
|
331
|
+
padding-right: convert.to-rem(72px);
|
|
332
332
|
}
|
|
333
333
|
|
|
334
334
|
// invalid && populated input field
|
|
@@ -339,7 +339,7 @@ $list-box-menu-width: rem(300px);
|
|
|
339
339
|
.#{$prefix}--list-box__field
|
|
340
340
|
.#{$prefix}--text-input {
|
|
341
341
|
// to account for clear input button outline
|
|
342
|
-
padding-right: rem(98px);
|
|
342
|
+
padding-right: convert.to-rem(98px);
|
|
343
343
|
}
|
|
344
344
|
|
|
345
345
|
.#{$prefix}--list-box[data-invalid]
|
|
@@ -351,7 +351,7 @@ $list-box-menu-width: rem(300px);
|
|
|
351
351
|
.#{$prefix}--text-input
|
|
352
352
|
+ .#{$prefix}--list-box__invalid-icon {
|
|
353
353
|
// to account for clear input button outline
|
|
354
|
-
right: rem(66px);
|
|
354
|
+
right: convert.to-rem(66px);
|
|
355
355
|
}
|
|
356
356
|
|
|
357
357
|
// empty input field
|
|
@@ -378,7 +378,7 @@ $list-box-menu-width: rem(300px);
|
|
|
378
378
|
.#{$prefix}--text-input--empty
|
|
379
379
|
+ .#{$prefix}--list-box__invalid-icon {
|
|
380
380
|
// to account for clear input button outline
|
|
381
|
-
right: rem(40px);
|
|
381
|
+
right: convert.to-rem(40px);
|
|
382
382
|
}
|
|
383
383
|
|
|
384
384
|
// Label for a `list-box__field`
|
|
@@ -399,8 +399,8 @@ $list-box-menu-width: rem(300px);
|
|
|
399
399
|
position: absolute;
|
|
400
400
|
right: $spacing-05;
|
|
401
401
|
display: flex;
|
|
402
|
-
width: rem(24px);
|
|
403
|
-
height: rem(24px);
|
|
402
|
+
width: convert.to-rem(24px);
|
|
403
|
+
height: convert.to-rem(24px);
|
|
404
404
|
align-items: center;
|
|
405
405
|
justify-content: center;
|
|
406
406
|
cursor: pointer;
|
|
@@ -413,7 +413,7 @@ $list-box-menu-width: rem(300px);
|
|
|
413
413
|
}
|
|
414
414
|
|
|
415
415
|
.#{$prefix}--list-box__menu-icon--open {
|
|
416
|
-
width: rem(24px);
|
|
416
|
+
width: convert.to-rem(24px);
|
|
417
417
|
justify-content: center;
|
|
418
418
|
transform: rotate(180deg);
|
|
419
419
|
}
|
|
@@ -425,10 +425,10 @@ $list-box-menu-width: rem(300px);
|
|
|
425
425
|
position: absolute;
|
|
426
426
|
top: 50%;
|
|
427
427
|
/* to preserve .5rem space between icons according to spec top/transform used to center the combobox clear selection icon in IE11 */
|
|
428
|
-
right: rem(36px);
|
|
428
|
+
right: convert.to-rem(36px);
|
|
429
429
|
display: flex;
|
|
430
|
-
width: rem(24px);
|
|
431
|
-
height: rem(24px);
|
|
430
|
+
width: convert.to-rem(24px);
|
|
431
|
+
height: convert.to-rem(24px);
|
|
432
432
|
align-items: center;
|
|
433
433
|
justify-content: center;
|
|
434
434
|
cursor: pointer;
|
|
@@ -461,25 +461,25 @@ $list-box-menu-width: rem(300px);
|
|
|
461
461
|
top: auto;
|
|
462
462
|
display: flex;
|
|
463
463
|
width: auto;
|
|
464
|
-
height: rem(24px);
|
|
464
|
+
height: convert.to-rem(24px);
|
|
465
465
|
align-items: center;
|
|
466
466
|
justify-content: space-between;
|
|
467
|
-
padding: rem(8px);
|
|
467
|
+
padding: convert.to-rem(8px);
|
|
468
468
|
// Align with hover circle of X button
|
|
469
|
-
padding-right: rem(2px);
|
|
470
|
-
margin-right: rem(10px);
|
|
469
|
+
padding-right: convert.to-rem(2px);
|
|
470
|
+
margin-right: convert.to-rem(10px);
|
|
471
471
|
background-color: $background-inverse;
|
|
472
|
-
border-radius: rem(12px);
|
|
472
|
+
border-radius: convert.to-rem(12px);
|
|
473
473
|
color: $text-inverse;
|
|
474
474
|
line-height: 0;
|
|
475
475
|
transform: none;
|
|
476
476
|
}
|
|
477
477
|
|
|
478
478
|
.#{$prefix}--list-box__selection--multi > svg {
|
|
479
|
-
width: rem(20px);
|
|
480
|
-
height: rem(20px);
|
|
481
|
-
padding: rem(2px);
|
|
482
|
-
margin-left: rem(4px);
|
|
479
|
+
width: convert.to-rem(20px);
|
|
480
|
+
height: convert.to-rem(20px);
|
|
481
|
+
padding: convert.to-rem(2px);
|
|
482
|
+
margin-left: convert.to-rem(4px);
|
|
483
483
|
fill: $icon-inverse;
|
|
484
484
|
|
|
485
485
|
&:hover {
|
|
@@ -535,19 +535,19 @@ $list-box-menu-width: rem(300px);
|
|
|
535
535
|
.#{$prefix}--list-box--expanded .#{$prefix}--list-box__menu {
|
|
536
536
|
display: block;
|
|
537
537
|
// 40px item height * 5.5 items shown
|
|
538
|
-
max-height: rem(220px);
|
|
538
|
+
max-height: convert.to-rem(220px);
|
|
539
539
|
}
|
|
540
540
|
|
|
541
541
|
.#{$prefix}--list-box--expanded.#{$prefix}--list-box--lg
|
|
542
542
|
.#{$prefix}--list-box__menu {
|
|
543
543
|
// 48px item height * 5.5 items shown
|
|
544
|
-
max-height: rem(264px);
|
|
544
|
+
max-height: convert.to-rem(264px);
|
|
545
545
|
}
|
|
546
546
|
|
|
547
547
|
.#{$prefix}--list-box--expanded.#{$prefix}--list-box--sm
|
|
548
548
|
.#{$prefix}--list-box__menu {
|
|
549
549
|
// 32px item height * 5.5 items shown
|
|
550
|
-
max-height: rem(176px);
|
|
550
|
+
max-height: convert.to-rem(176px);
|
|
551
551
|
}
|
|
552
552
|
|
|
553
553
|
// Descendant of a `list-box__menu` that represents a selection for a control
|
|
@@ -555,7 +555,7 @@ $list-box-menu-width: rem(300px);
|
|
|
555
555
|
@include type-style('body-compact-01');
|
|
556
556
|
|
|
557
557
|
position: relative;
|
|
558
|
-
height: rem(40px);
|
|
558
|
+
height: convert.to-rem(40px);
|
|
559
559
|
color: $text-secondary;
|
|
560
560
|
cursor: pointer;
|
|
561
561
|
transition: background $duration-fast-01 motion(standard, productive);
|
|
@@ -576,11 +576,11 @@ $list-box-menu-width: rem(300px);
|
|
|
576
576
|
}
|
|
577
577
|
|
|
578
578
|
.#{$prefix}--list-box--sm .#{$prefix}--list-box__menu-item {
|
|
579
|
-
height: rem(32px);
|
|
579
|
+
height: convert.to-rem(32px);
|
|
580
580
|
}
|
|
581
581
|
|
|
582
582
|
.#{$prefix}--list-box--lg .#{$prefix}--list-box__menu-item {
|
|
583
|
-
height: rem(48px);
|
|
583
|
+
height: convert.to-rem(48px);
|
|
584
584
|
}
|
|
585
585
|
|
|
586
586
|
.#{$prefix}--list-box--disabled .#{$prefix}--list-box__menu-item:hover {
|
|
@@ -656,8 +656,8 @@ $list-box-menu-width: rem(300px);
|
|
|
656
656
|
|
|
657
657
|
display: block;
|
|
658
658
|
overflow: hidden;
|
|
659
|
-
height: rem(40px);
|
|
660
|
-
padding: rem(11px) 0;
|
|
659
|
+
height: convert.to-rem(40px);
|
|
660
|
+
padding: convert.to-rem(11px) 0;
|
|
661
661
|
padding-right: $spacing-06;
|
|
662
662
|
border-top: 1px solid transparent;
|
|
663
663
|
border-top-color: $border-subtle-01;
|
|
@@ -675,7 +675,7 @@ $list-box-menu-width: rem(300px);
|
|
|
675
675
|
&:focus {
|
|
676
676
|
@include focus-outline('outline');
|
|
677
677
|
|
|
678
|
-
padding: rem(11px) rem(16px);
|
|
678
|
+
padding: convert.to-rem(11px) convert.to-rem(16px);
|
|
679
679
|
border-color: transparent;
|
|
680
680
|
margin: 0;
|
|
681
681
|
}
|
|
@@ -687,15 +687,15 @@ $list-box-menu-width: rem(300px);
|
|
|
687
687
|
}
|
|
688
688
|
|
|
689
689
|
.#{$prefix}--list-box--sm .#{$prefix}--list-box__menu-item__option {
|
|
690
|
-
height: rem(32px);
|
|
691
|
-
padding-top: rem(7px);
|
|
692
|
-
padding-bottom: rem(7px);
|
|
690
|
+
height: convert.to-rem(32px);
|
|
691
|
+
padding-top: convert.to-rem(7px);
|
|
692
|
+
padding-bottom: convert.to-rem(7px);
|
|
693
693
|
}
|
|
694
694
|
|
|
695
695
|
.#{$prefix}--list-box--lg .#{$prefix}--list-box__menu-item__option {
|
|
696
|
-
height: rem(48px);
|
|
697
|
-
padding-top: rem(15px);
|
|
698
|
-
padding-bottom: rem(15px);
|
|
696
|
+
height: convert.to-rem(48px);
|
|
697
|
+
padding-top: convert.to-rem(15px);
|
|
698
|
+
padding-bottom: convert.to-rem(15px);
|
|
699
699
|
}
|
|
700
700
|
|
|
701
701
|
.#{$prefix}--list-box--disabled
|
|
@@ -823,7 +823,7 @@ $list-box-menu-width: rem(300px);
|
|
|
823
823
|
.#{$prefix}--list-box__menu-item__selected-icon {
|
|
824
824
|
position: absolute;
|
|
825
825
|
top: 50%;
|
|
826
|
-
right: rem(16px);
|
|
826
|
+
right: convert.to-rem(16px);
|
|
827
827
|
display: none;
|
|
828
828
|
fill: $icon-primary;
|
|
829
829
|
transform: translateY(-50%);
|
|
@@ -831,7 +831,7 @@ $list-box-menu-width: rem(300px);
|
|
|
831
831
|
|
|
832
832
|
.#{$prefix}--list-box--inline
|
|
833
833
|
.#{$prefix}--list-box__menu-item__selected-icon {
|
|
834
|
-
right: rem(8px);
|
|
834
|
+
right: convert.to-rem(8px);
|
|
835
835
|
}
|
|
836
836
|
|
|
837
837
|
.#{$prefix}--list-box__menu-item--active
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
@use '../../utilities/box-shadow' as *;
|
|
16
16
|
@use '../../utilities/focus-outline' as *;
|
|
17
17
|
@use '../../utilities/z-index' as *;
|
|
18
|
-
@use '../../utilities/convert'
|
|
18
|
+
@use '../../utilities/convert';
|
|
19
19
|
@use '../../utilities/component-reset';
|
|
20
20
|
|
|
21
21
|
/// Menu styles
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
.#{$prefix}--menu-item-divider {
|
|
153
153
|
display: block;
|
|
154
154
|
width: 100%;
|
|
155
|
-
height: rem(1px);
|
|
155
|
+
height: convert.to-rem(1px);
|
|
156
156
|
background-color: $border-subtle;
|
|
157
157
|
margin-block: $spacing-02;
|
|
158
158
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
@use '../../spacing' as *;
|
|
13
13
|
@use '../../theme' as *;
|
|
14
14
|
@use '../../type' as *;
|
|
15
|
-
@use '../../utilities/convert'
|
|
15
|
+
@use '../../utilities/convert';
|
|
16
16
|
@use '../../utilities/component-reset';
|
|
17
17
|
@use '../../utilities/focus-outline' as *;
|
|
18
18
|
@use '../../utilities/high-contrast-mode' as *;
|
|
@@ -67,6 +67,11 @@
|
|
|
67
67
|
background-color: $field-02;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
+
// Override to align layer token with field
|
|
71
|
+
.#{$prefix}--list-box__menu {
|
|
72
|
+
background-color: $layer-02;
|
|
73
|
+
}
|
|
74
|
+
|
|
70
75
|
.#{$prefix}--number__rule-divider {
|
|
71
76
|
background-color: $border-subtle-02;
|
|
72
77
|
}
|
|
@@ -77,12 +82,12 @@
|
|
|
77
82
|
|
|
78
83
|
.#{$prefix}--list-box__menu-item:hover
|
|
79
84
|
.#{$prefix}--list-box__menu-item__option {
|
|
80
|
-
border-top-color: $layer-hover;
|
|
85
|
+
border-top-color: $layer-hover-02;
|
|
81
86
|
}
|
|
82
87
|
|
|
83
88
|
.#{$prefix}--list-box__menu-item--active:hover
|
|
84
89
|
.#{$prefix}--list-box__menu-item__option {
|
|
85
|
-
border-top-color: $layer-selected-hover;
|
|
90
|
+
border-top-color: $layer-selected-hover-02;
|
|
86
91
|
}
|
|
87
92
|
|
|
88
93
|
// Fluid inputs
|
|
@@ -106,6 +111,23 @@
|
|
|
106
111
|
background-color: $field-01;
|
|
107
112
|
}
|
|
108
113
|
|
|
114
|
+
// Override to align layer token with field
|
|
115
|
+
.#{$prefix}--list-box__wrapper--fluid .#{$prefix}--list-box__menu {
|
|
116
|
+
background-color: $layer-01;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.#{$prefix}--list-box__menu-item:hover {
|
|
120
|
+
background-color: $layer-hover-02;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.#{$prefix}--list-box__menu-item--active {
|
|
124
|
+
background-color: $layer-selected-02;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.#{$prefix}--list-box__menu-item--active:hover {
|
|
128
|
+
background-color: $layer-selected-hover-02;
|
|
129
|
+
}
|
|
130
|
+
|
|
109
131
|
.#{$prefix}--number-input--fluid
|
|
110
132
|
.#{$prefix}--number__control-btn:hover::before,
|
|
111
133
|
.#{$prefix}--number-input--fluid
|
|
@@ -334,7 +356,7 @@
|
|
|
334
356
|
bottom: $spacing-09;
|
|
335
357
|
left: 0;
|
|
336
358
|
width: 100%;
|
|
337
|
-
height: rem(32px);
|
|
359
|
+
height: convert.to-rem(32px);
|
|
338
360
|
background-image: linear-gradient(to bottom, transparent, $layer);
|
|
339
361
|
content: '';
|
|
340
362
|
grid-column: 1/-1;
|
|
@@ -374,7 +396,7 @@
|
|
|
374
396
|
// -----------------------------
|
|
375
397
|
.#{$prefix}--modal-footer {
|
|
376
398
|
display: flex;
|
|
377
|
-
height: rem(64px);
|
|
399
|
+
height: convert.to-rem(64px);
|
|
378
400
|
justify-content: flex-end;
|
|
379
401
|
margin-top: auto;
|
|
380
402
|
grid-column: 1/-1;
|
|
@@ -383,10 +405,10 @@
|
|
|
383
405
|
|
|
384
406
|
.#{$prefix}--modal-footer .#{$prefix}--btn {
|
|
385
407
|
max-width: none;
|
|
386
|
-
height: rem(64px);
|
|
408
|
+
height: convert.to-rem(64px);
|
|
387
409
|
flex: 0 1 50%;
|
|
388
410
|
align-items: baseline;
|
|
389
|
-
padding-top: calc($spacing-05 - rem(2px));
|
|
411
|
+
padding-top: calc($spacing-05 - convert.to-rem(2px));
|
|
390
412
|
padding-bottom: $spacing-07;
|
|
391
413
|
margin: 0;
|
|
392
414
|
}
|
|
@@ -407,7 +429,7 @@
|
|
|
407
429
|
overflow: hidden;
|
|
408
430
|
width: 3rem;
|
|
409
431
|
height: 3rem;
|
|
410
|
-
padding: rem(12px);
|
|
432
|
+
padding: convert.to-rem(12px);
|
|
411
433
|
border: 2px solid transparent;
|
|
412
434
|
background-color: transparent;
|
|
413
435
|
cursor: pointer;
|
|
@@ -428,8 +450,8 @@
|
|
|
428
450
|
}
|
|
429
451
|
|
|
430
452
|
.#{$prefix}--modal-close__icon {
|
|
431
|
-
width: rem(20px);
|
|
432
|
-
height: rem(20px);
|
|
453
|
+
width: convert.to-rem(20px);
|
|
454
|
+
height: convert.to-rem(20px);
|
|
433
455
|
fill: $icon-primary;
|
|
434
456
|
}
|
|
435
457
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
@use '../../motion' as *;
|
|
12
12
|
@use '../../spacing' as *;
|
|
13
13
|
@use '../../theme' as *;
|
|
14
|
-
@use '../../utilities/convert'
|
|
14
|
+
@use '../../utilities/convert';
|
|
15
15
|
@use '../../utilities/focus-outline' as *;
|
|
16
16
|
|
|
17
17
|
/// Multi select styles
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
display: inline-block;
|
|
58
58
|
overflow: hidden;
|
|
59
59
|
width: 100%;
|
|
60
|
-
padding-left: rem(28px);
|
|
60
|
+
padding-left: convert.to-rem(28px);
|
|
61
61
|
text-overflow: ellipsis;
|
|
62
62
|
white-space: nowrap;
|
|
63
63
|
}
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
|
|
83
83
|
.#{$prefix}--multi-select--filterable.#{$prefix}--combo-box
|
|
84
84
|
.#{$prefix}--text-input {
|
|
85
|
-
border: rem(2px) solid transparent;
|
|
85
|
+
border: convert.to-rem(2px) solid transparent;
|
|
86
86
|
background-clip: padding-box;
|
|
87
87
|
outline: none;
|
|
88
88
|
}
|