@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
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
@use '../../theme' as *;
|
|
16
16
|
@use '../../themes' as *;
|
|
17
17
|
@use '../../type' as *;
|
|
18
|
-
@use '../../utilities/convert'
|
|
18
|
+
@use '../../utilities/convert';
|
|
19
19
|
@use '../../utilities/high-contrast-mode' as *;
|
|
20
20
|
@use '../../utilities/focus-outline' as *;
|
|
21
21
|
@use './tokens' as *;
|
|
@@ -32,31 +32,31 @@
|
|
|
32
32
|
position: relative;
|
|
33
33
|
display: flex;
|
|
34
34
|
width: 100%;
|
|
35
|
-
min-width: rem(288px);
|
|
36
|
-
max-width: rem(288px);
|
|
35
|
+
min-width: convert.to-rem(288px);
|
|
36
|
+
max-width: convert.to-rem(288px);
|
|
37
37
|
height: auto;
|
|
38
|
-
min-height: rem(48px);
|
|
38
|
+
min-height: convert.to-rem(48px);
|
|
39
39
|
flex-wrap: wrap;
|
|
40
40
|
|
|
41
41
|
color: $text-inverse;
|
|
42
42
|
|
|
43
43
|
@include breakpoint(md) {
|
|
44
|
-
max-width: rem(608px);
|
|
44
|
+
max-width: convert.to-rem(608px);
|
|
45
45
|
flex-wrap: nowrap;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
@include breakpoint(lg) {
|
|
49
|
-
max-width: rem(736px);
|
|
49
|
+
max-width: convert.to-rem(736px);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
@include breakpoint(max) {
|
|
53
|
-
max-width: rem(832px);
|
|
53
|
+
max-width: convert.to-rem(832px);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
.#{$prefix}--actionable-notification--toast {
|
|
58
|
-
min-width: rem(288px);
|
|
59
|
-
max-width: rem(288px);
|
|
58
|
+
min-width: convert.to-rem(288px);
|
|
59
|
+
max-width: convert.to-rem(288px);
|
|
60
60
|
flex-wrap: wrap;
|
|
61
61
|
box-shadow: 0 2px 6px 0 rgb(0 0 0 / 20%);
|
|
62
62
|
}
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
.#{$prefix}--actionable-notification__details {
|
|
195
195
|
display: flex;
|
|
196
196
|
flex-grow: 1;
|
|
197
|
-
margin: 0 $spacing-09 0 rem(13px);
|
|
197
|
+
margin: 0 $spacing-09 0 convert.to-rem(13px);
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
.#{$prefix}--actionable-notification:not(
|
|
@@ -202,13 +202,13 @@
|
|
|
202
202
|
)
|
|
203
203
|
.#{$prefix}--actionable-notification__details {
|
|
204
204
|
@include breakpoint(md) {
|
|
205
|
-
margin: 0 rem(13px);
|
|
205
|
+
margin: 0 convert.to-rem(13px);
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
.#{$prefix}--actionable-notification .#{$prefix}--inline-notification__icon {
|
|
210
210
|
flex-shrink: 0;
|
|
211
|
-
margin-top: rem(14px);
|
|
211
|
+
margin-top: convert.to-rem(14px);
|
|
212
212
|
margin-right: $spacing-05;
|
|
213
213
|
}
|
|
214
214
|
|
|
@@ -221,12 +221,12 @@
|
|
|
221
221
|
.#{$prefix}--actionable-notification__text-wrapper {
|
|
222
222
|
display: flex;
|
|
223
223
|
flex-wrap: wrap;
|
|
224
|
-
padding: rem(15px) 0;
|
|
224
|
+
padding: convert.to-rem(15px) 0;
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
.#{$prefix}--actionable-notification--toast
|
|
228
228
|
.#{$prefix}--actionable-notification__text-wrapper {
|
|
229
|
-
padding: rem(15px) 0 rem(23px) 0;
|
|
229
|
+
padding: convert.to-rem(15px) 0 convert.to-rem(23px) 0;
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
.#{$prefix}--actionable-notification__content {
|
|
@@ -269,7 +269,7 @@
|
|
|
269
269
|
}
|
|
270
270
|
/* Ghost action button when inline */
|
|
271
271
|
.#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--ghost {
|
|
272
|
-
height: rem(32px);
|
|
272
|
+
height: convert.to-rem(32px);
|
|
273
273
|
margin-bottom: $spacing-03;
|
|
274
274
|
margin-left: $spacing-08;
|
|
275
275
|
|
|
@@ -323,7 +323,9 @@
|
|
|
323
323
|
// Button should be left aligned with text.
|
|
324
324
|
// 20px is the width of the notification icon
|
|
325
325
|
// 2px is the width of the left border that should be negated
|
|
326
|
-
margin-left: calc(
|
|
326
|
+
margin-left: calc(
|
|
327
|
+
#{$spacing-07} + #{convert.to-rem(20px)} - #{convert.to-rem(2px)}
|
|
328
|
+
);
|
|
327
329
|
}
|
|
328
330
|
|
|
329
331
|
// Tertiary button styles by default use mostly "inverse" tokens. Since the non-low-contrast notification
|
|
@@ -415,10 +417,10 @@
|
|
|
415
417
|
top: 0;
|
|
416
418
|
right: 0;
|
|
417
419
|
display: flex;
|
|
418
|
-
width: rem(48px);
|
|
419
|
-
min-width: rem(48px);
|
|
420
|
-
max-width: rem(48px);
|
|
421
|
-
height: rem(48px);
|
|
420
|
+
width: convert.to-rem(48px);
|
|
421
|
+
min-width: convert.to-rem(48px);
|
|
422
|
+
max-width: convert.to-rem(48px);
|
|
423
|
+
height: convert.to-rem(48px);
|
|
422
424
|
flex-direction: column;
|
|
423
425
|
align-items: center;
|
|
424
426
|
justify-content: center;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
@use '../../theme' as *;
|
|
15
15
|
@use '../../themes' as *;
|
|
16
16
|
@use '../../type' as *;
|
|
17
|
-
@use '../../utilities/convert'
|
|
17
|
+
@use '../../utilities/convert';
|
|
18
18
|
@use '../../utilities/high-contrast-mode' as *;
|
|
19
19
|
@use '../../utilities/focus-outline' as *;
|
|
20
20
|
@use './tokens' as *;
|
|
@@ -29,25 +29,25 @@
|
|
|
29
29
|
position: relative;
|
|
30
30
|
display: flex;
|
|
31
31
|
width: 100%;
|
|
32
|
-
min-width: rem(288px);
|
|
33
|
-
max-width: rem(288px);
|
|
32
|
+
min-width: convert.to-rem(288px);
|
|
33
|
+
max-width: convert.to-rem(288px);
|
|
34
34
|
height: auto;
|
|
35
|
-
min-height: rem(48px);
|
|
35
|
+
min-height: convert.to-rem(48px);
|
|
36
36
|
flex-wrap: wrap;
|
|
37
37
|
|
|
38
38
|
color: $text-inverse;
|
|
39
39
|
|
|
40
40
|
@include breakpoint(md) {
|
|
41
|
-
max-width: rem(608px);
|
|
41
|
+
max-width: convert.to-rem(608px);
|
|
42
42
|
flex-wrap: nowrap;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
@include breakpoint(lg) {
|
|
46
|
-
max-width: rem(736px);
|
|
46
|
+
max-width: convert.to-rem(736px);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
@include breakpoint(max) {
|
|
50
|
-
max-width: rem(832px);
|
|
50
|
+
max-width: convert.to-rem(832px);
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
@@ -182,23 +182,23 @@
|
|
|
182
182
|
.#{$prefix}--inline-notification__details {
|
|
183
183
|
display: flex;
|
|
184
184
|
flex-grow: 1;
|
|
185
|
-
margin: 0 $spacing-09 0 rem(13px);
|
|
185
|
+
margin: 0 $spacing-09 0 convert.to-rem(13px);
|
|
186
186
|
|
|
187
187
|
@include breakpoint(md) {
|
|
188
|
-
margin: 0 rem(13px);
|
|
188
|
+
margin: 0 convert.to-rem(13px);
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
.#{$prefix}--inline-notification__icon {
|
|
193
193
|
flex-shrink: 0;
|
|
194
|
-
margin-top: rem(14px);
|
|
194
|
+
margin-top: convert.to-rem(14px);
|
|
195
195
|
margin-right: $spacing-05;
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
.#{$prefix}--inline-notification__text-wrapper {
|
|
199
199
|
display: flex;
|
|
200
200
|
flex-wrap: wrap;
|
|
201
|
-
padding: rem(15px) 0;
|
|
201
|
+
padding: convert.to-rem(15px) 0;
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
.#{$prefix}--inline-notification__title {
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
.#{$prefix}--inline-notification__action-button.#{$prefix}--btn--ghost {
|
|
217
|
-
height: rem(32px);
|
|
217
|
+
height: convert.to-rem(32px);
|
|
218
218
|
margin-bottom: $spacing-03;
|
|
219
219
|
margin-left: $spacing-08;
|
|
220
220
|
|
|
@@ -266,10 +266,10 @@
|
|
|
266
266
|
top: 0;
|
|
267
267
|
right: 0;
|
|
268
268
|
display: flex;
|
|
269
|
-
width: rem(48px);
|
|
270
|
-
min-width: rem(48px);
|
|
271
|
-
max-width: rem(48px);
|
|
272
|
-
height: rem(48px);
|
|
269
|
+
width: convert.to-rem(48px);
|
|
270
|
+
min-width: convert.to-rem(48px);
|
|
271
|
+
max-width: convert.to-rem(48px);
|
|
272
|
+
height: convert.to-rem(48px);
|
|
273
273
|
flex-direction: column;
|
|
274
274
|
align-items: center;
|
|
275
275
|
justify-content: center;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
@use '../../theme' as *;
|
|
17
17
|
@use '../../themes' as *;
|
|
18
18
|
@use '../../type' as *;
|
|
19
|
-
@use '../../utilities/convert'
|
|
19
|
+
@use '../../utilities/convert';
|
|
20
20
|
@use '../../utilities/high-contrast-mode' as *;
|
|
21
21
|
@use '../../utilities/focus-outline' as *;
|
|
22
22
|
@use './tokens' as *;
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
@include reset;
|
|
30
30
|
|
|
31
31
|
display: flex;
|
|
32
|
-
width: rem(288px);
|
|
32
|
+
width: convert.to-rem(288px);
|
|
33
33
|
height: auto;
|
|
34
|
-
padding-left: rem(13px);
|
|
34
|
+
padding-left: convert.to-rem(13px);
|
|
35
35
|
|
|
36
36
|
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2);
|
|
37
37
|
color: $text-inverse;
|
|
38
38
|
|
|
39
39
|
@include breakpoint(max) {
|
|
40
|
-
width: rem(352px);
|
|
40
|
+
width: convert.to-rem(352px);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -153,10 +153,10 @@
|
|
|
153
153
|
@include focus-outline('reset');
|
|
154
154
|
|
|
155
155
|
display: flex;
|
|
156
|
-
width: rem(48px);
|
|
157
|
-
min-width: rem(48px);
|
|
158
|
-
height: rem(48px);
|
|
159
|
-
min-height: rem(48px);
|
|
156
|
+
width: convert.to-rem(48px);
|
|
157
|
+
min-width: convert.to-rem(48px);
|
|
158
|
+
height: convert.to-rem(48px);
|
|
159
|
+
min-height: convert.to-rem(48px);
|
|
160
160
|
flex-direction: column;
|
|
161
161
|
align-items: center;
|
|
162
162
|
justify-content: center;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
@use '../../utilities/button-reset';
|
|
17
17
|
@use '../../utilities/high-contrast-mode' as *;
|
|
18
18
|
@use '../../utilities/focus-outline' as *;
|
|
19
|
-
@use '../../utilities/convert'
|
|
19
|
+
@use '../../utilities/convert';
|
|
20
20
|
@use '../../utilities/z-index' as *;
|
|
21
21
|
|
|
22
22
|
/// Number input styles
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
.#{$prefix}--number
|
|
36
36
|
.#{$prefix}--number__input-wrapper--warning
|
|
37
37
|
input[type='number'] {
|
|
38
|
-
padding-right: rem(128px);
|
|
38
|
+
padding-right: convert.to-rem(128px);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.#{$prefix}--number input[type='number'] {
|
|
@@ -45,15 +45,16 @@
|
|
|
45
45
|
display: inline-flex;
|
|
46
46
|
width: 100%;
|
|
47
47
|
min-width: 9.375rem;
|
|
48
|
-
height: rem(40px);
|
|
48
|
+
height: convert.to-rem(40px);
|
|
49
49
|
box-sizing: border-box;
|
|
50
|
-
padding-right: rem(96px);
|
|
50
|
+
padding-right: convert.to-rem(96px);
|
|
51
51
|
padding-left: $spacing-05;
|
|
52
52
|
border: 0;
|
|
53
|
-
border-bottom: rem(1px) solid $border-strong;
|
|
53
|
+
border-bottom: convert.to-rem(1px) solid $border-strong;
|
|
54
54
|
|
|
55
55
|
// Firefox: Hide spinner (up and down buttons)
|
|
56
56
|
-moz-appearance: textfield;
|
|
57
|
+
appearance: textfield;
|
|
57
58
|
background-color: $field;
|
|
58
59
|
border-radius: 0;
|
|
59
60
|
color: $text-primary;
|
|
@@ -86,35 +87,35 @@
|
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
&[data-invalid] {
|
|
89
|
-
padding-right: rem(128px);
|
|
90
|
+
padding-right: convert.to-rem(128px);
|
|
90
91
|
}
|
|
91
92
|
}
|
|
92
93
|
|
|
93
94
|
.#{$prefix}--number--lg.#{$prefix}--number {
|
|
94
95
|
input[type='number'] {
|
|
95
|
-
padding-right: rem(112px);
|
|
96
|
+
padding-right: convert.to-rem(112px);
|
|
96
97
|
|
|
97
98
|
&[data-invalid] {
|
|
98
|
-
padding-right: rem(144px);
|
|
99
|
+
padding-right: convert.to-rem(144px);
|
|
99
100
|
}
|
|
100
101
|
}
|
|
101
102
|
|
|
102
103
|
.#{$prefix}--number__input-wrapper--warning input[type='number'] {
|
|
103
|
-
padding-right: rem(144px);
|
|
104
|
+
padding-right: convert.to-rem(144px);
|
|
104
105
|
}
|
|
105
106
|
}
|
|
106
107
|
|
|
107
108
|
.#{$prefix}--number--sm.#{$prefix}--number {
|
|
108
109
|
input[type='number'] {
|
|
109
|
-
padding-right: rem(80px);
|
|
110
|
+
padding-right: convert.to-rem(80px);
|
|
110
111
|
|
|
111
112
|
&[data-invalid] {
|
|
112
|
-
padding-right: rem(112px);
|
|
113
|
+
padding-right: convert.to-rem(112px);
|
|
113
114
|
}
|
|
114
115
|
}
|
|
115
116
|
|
|
116
117
|
.#{$prefix}--number__input-wrapper--warning input[type='number'] {
|
|
117
|
-
padding-right: rem(112px);
|
|
118
|
+
padding-right: convert.to-rem(112px);
|
|
118
119
|
}
|
|
119
120
|
}
|
|
120
121
|
|
|
@@ -139,7 +140,7 @@
|
|
|
139
140
|
top: 50%;
|
|
140
141
|
right: 0;
|
|
141
142
|
display: flex;
|
|
142
|
-
width: rem(80px);
|
|
143
|
+
width: convert.to-rem(80px);
|
|
143
144
|
height: 100%;
|
|
144
145
|
flex-direction: row;
|
|
145
146
|
align-items: center;
|
|
@@ -155,17 +156,17 @@
|
|
|
155
156
|
height: 100%;
|
|
156
157
|
align-items: center;
|
|
157
158
|
justify-content: center;
|
|
158
|
-
border-bottom: rem(1px) solid $border-strong;
|
|
159
|
+
border-bottom: convert.to-rem(1px) solid $border-strong;
|
|
159
160
|
color: $icon-primary;
|
|
160
161
|
|
|
161
162
|
&::before,
|
|
162
163
|
&::after {
|
|
163
164
|
position: absolute;
|
|
164
|
-
top: rem(2px);
|
|
165
|
+
top: convert.to-rem(2px);
|
|
165
166
|
display: block;
|
|
166
|
-
width: rem(2px);
|
|
167
|
+
width: convert.to-rem(2px);
|
|
167
168
|
// height: calc(100% - 4px) is calculated differently in Safari
|
|
168
|
-
height: rem(36px);
|
|
169
|
+
height: convert.to-rem(36px);
|
|
169
170
|
background-color: $field;
|
|
170
171
|
content: '';
|
|
171
172
|
}
|
|
@@ -279,8 +280,8 @@
|
|
|
279
280
|
.#{$prefix}--number__rule-divider {
|
|
280
281
|
position: absolute;
|
|
281
282
|
z-index: z('overlay');
|
|
282
|
-
width: rem(1px);
|
|
283
|
-
height: rem(16px);
|
|
283
|
+
width: convert.to-rem(1px);
|
|
284
|
+
height: convert.to-rem(16px);
|
|
284
285
|
background-color: $border-subtle;
|
|
285
286
|
|
|
286
287
|
&:first-of-type {
|
|
@@ -330,33 +331,33 @@
|
|
|
330
331
|
|
|
331
332
|
.#{$prefix}--number__invalid {
|
|
332
333
|
position: absolute;
|
|
333
|
-
right: rem(96px);
|
|
334
|
+
right: convert.to-rem(96px);
|
|
334
335
|
fill: $support-error;
|
|
335
336
|
}
|
|
336
337
|
|
|
337
338
|
.#{$prefix}--number--lg .#{$prefix}--number__invalid {
|
|
338
|
-
right: rem(112px);
|
|
339
|
+
right: convert.to-rem(112px);
|
|
339
340
|
}
|
|
340
341
|
|
|
341
342
|
.#{$prefix}--number--sm .#{$prefix}--number__invalid {
|
|
342
|
-
right: rem(80px);
|
|
343
|
+
right: convert.to-rem(80px);
|
|
343
344
|
}
|
|
344
345
|
|
|
345
346
|
.#{$prefix}--number__invalid + .#{$prefix}--number__rule-divider {
|
|
346
347
|
position: absolute;
|
|
347
|
-
right: rem(80px);
|
|
348
|
+
right: convert.to-rem(80px);
|
|
348
349
|
}
|
|
349
350
|
|
|
350
351
|
.#{$prefix}--number--lg
|
|
351
352
|
.#{$prefix}--number__invalid
|
|
352
353
|
+ .#{$prefix}--number__rule-divider {
|
|
353
|
-
right: rem(96px);
|
|
354
|
+
right: convert.to-rem(96px);
|
|
354
355
|
}
|
|
355
356
|
|
|
356
357
|
.#{$prefix}--number--sm
|
|
357
358
|
.#{$prefix}--number__invalid
|
|
358
359
|
+ .#{$prefix}--number__rule-divider {
|
|
359
|
-
right: rem(64px);
|
|
360
|
+
right: convert.to-rem(64px);
|
|
360
361
|
}
|
|
361
362
|
|
|
362
363
|
.#{$prefix}--number__control-btn.down-icon:hover
|
|
@@ -413,38 +414,38 @@
|
|
|
413
414
|
|
|
414
415
|
// Size Variant styles
|
|
415
416
|
.#{$prefix}--number--lg input[type='number'] {
|
|
416
|
-
height: rem(48px);
|
|
417
|
+
height: convert.to-rem(48px);
|
|
417
418
|
}
|
|
418
419
|
|
|
419
420
|
.#{$prefix}--number--lg .#{$prefix}--number__controls {
|
|
420
|
-
width: rem(96px);
|
|
421
|
+
width: convert.to-rem(96px);
|
|
421
422
|
}
|
|
422
423
|
|
|
423
424
|
.#{$prefix}--number--lg .#{$prefix}--number__control-btn {
|
|
424
|
-
width: rem(48px);
|
|
425
|
+
width: convert.to-rem(48px);
|
|
425
426
|
|
|
426
427
|
&::before,
|
|
427
428
|
&::after {
|
|
428
429
|
// height: calc(100% - 4px) is calculated differently in Safari
|
|
429
|
-
height: rem(44px);
|
|
430
|
+
height: convert.to-rem(44px);
|
|
430
431
|
}
|
|
431
432
|
}
|
|
432
433
|
|
|
433
434
|
.#{$prefix}--number--sm input[type='number'] {
|
|
434
|
-
height: rem(32px);
|
|
435
|
+
height: convert.to-rem(32px);
|
|
435
436
|
}
|
|
436
437
|
|
|
437
438
|
.#{$prefix}--number--sm .#{$prefix}--number__controls {
|
|
438
|
-
width: rem(64px);
|
|
439
|
+
width: convert.to-rem(64px);
|
|
439
440
|
}
|
|
440
441
|
|
|
441
442
|
.#{$prefix}--number--sm .#{$prefix}--number__control-btn {
|
|
442
|
-
width: rem(32px);
|
|
443
|
+
width: convert.to-rem(32px);
|
|
443
444
|
|
|
444
445
|
&::before,
|
|
445
446
|
&::after {
|
|
446
447
|
// height: calc(100% - 4px) is calculated differently in Safari
|
|
447
|
-
height: rem(28px);
|
|
448
|
+
height: convert.to-rem(28px);
|
|
448
449
|
}
|
|
449
450
|
}
|
|
450
451
|
|
|
@@ -457,11 +458,11 @@
|
|
|
457
458
|
|
|
458
459
|
// No steppers
|
|
459
460
|
.#{$prefix}--number--nosteppers input[type='number'] {
|
|
460
|
-
padding-right: rem(48px);
|
|
461
|
+
padding-right: convert.to-rem(48px);
|
|
461
462
|
}
|
|
462
463
|
|
|
463
464
|
.#{$prefix}--number--nosteppers .#{$prefix}--number__invalid {
|
|
464
|
-
right: rem(16px);
|
|
465
|
+
right: convert.to-rem(16px);
|
|
465
466
|
}
|
|
466
467
|
|
|
467
468
|
// Readonly
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
@use '../../utilities/component-reset';
|
|
19
19
|
@use '../../utilities/focus-outline' as *;
|
|
20
20
|
@use '../../utilities/high-contrast-mode' as *;
|
|
21
|
-
@use '../../utilities/convert'
|
|
21
|
+
@use '../../utilities/convert';
|
|
22
22
|
@use '../../utilities/z-index' as *;
|
|
23
23
|
|
|
24
24
|
/// Overflow menu styles
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
|
|
34
34
|
position: relative;
|
|
35
35
|
display: flex;
|
|
36
|
-
width: rem(40px);
|
|
37
|
-
height: rem(40px);
|
|
38
|
-
min-height: rem(40px);
|
|
36
|
+
width: convert.to-rem(40px);
|
|
37
|
+
height: convert.to-rem(40px);
|
|
38
|
+
min-height: convert.to-rem(40px);
|
|
39
39
|
align-items: center;
|
|
40
40
|
justify-content: center;
|
|
41
41
|
cursor: pointer;
|
|
@@ -56,13 +56,13 @@
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
.#{$prefix}--overflow-menu--sm {
|
|
59
|
-
width: rem(32px);
|
|
60
|
-
height: rem(32px);
|
|
59
|
+
width: convert.to-rem(32px);
|
|
60
|
+
height: convert.to-rem(32px);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
.#{$prefix}--overflow-menu--lg {
|
|
64
|
-
width: rem(48px);
|
|
65
|
-
height: rem(48px);
|
|
64
|
+
width: convert.to-rem(48px);
|
|
65
|
+
height: convert.to-rem(48px);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
// Overwrite Icon Tooltip focus styles
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
.#{$prefix}--overflow-menu__icon {
|
|
93
|
-
width: rem(16px);
|
|
94
|
-
height: rem(16px);
|
|
93
|
+
width: convert.to-rem(16px);
|
|
94
|
+
height: convert.to-rem(16px);
|
|
95
95
|
fill: $icon-primary;
|
|
96
96
|
}
|
|
97
97
|
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
top: 32px;
|
|
109
109
|
left: 0;
|
|
110
110
|
display: none;
|
|
111
|
-
width: rem(160px);
|
|
111
|
+
width: convert.to-rem(160px);
|
|
112
112
|
flex-direction: column;
|
|
113
113
|
align-items: flex-start;
|
|
114
114
|
background-color: $layer;
|
|
@@ -147,54 +147,54 @@
|
|
|
147
147
|
.#{$prefix}--overflow-menu-options[data-floating-menu-direction='bottom']:not(
|
|
148
148
|
.#{$prefix}--breadcrumb-menu-options
|
|
149
149
|
)::after {
|
|
150
|
-
top: rem(-3px);
|
|
150
|
+
top: convert.to-rem(-3px);
|
|
151
151
|
left: 0;
|
|
152
|
-
width: rem(40px);
|
|
153
|
-
height: rem(3px);
|
|
152
|
+
width: convert.to-rem(40px);
|
|
153
|
+
height: convert.to-rem(3px);
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
.#{$prefix}--overflow-menu-options[data-floating-menu-direction='top']::after {
|
|
157
|
-
bottom: rem(-8px);
|
|
157
|
+
bottom: convert.to-rem(-8px);
|
|
158
158
|
left: 0;
|
|
159
|
-
width: rem(40px);
|
|
160
|
-
height: rem(8px);
|
|
159
|
+
width: convert.to-rem(40px);
|
|
160
|
+
height: convert.to-rem(8px);
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
.#{$prefix}--overflow-menu-options[data-floating-menu-direction='left']::after {
|
|
164
164
|
top: 0;
|
|
165
|
-
right: rem(-6px);
|
|
166
|
-
width: rem(6px);
|
|
167
|
-
height: rem(40px);
|
|
165
|
+
right: convert.to-rem(-6px);
|
|
166
|
+
width: convert.to-rem(6px);
|
|
167
|
+
height: convert.to-rem(40px);
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
.#{$prefix}--overflow-menu-options[data-floating-menu-direction='right']::after {
|
|
171
171
|
top: 0;
|
|
172
|
-
left: rem(-6px);
|
|
173
|
-
width: rem(6px);
|
|
174
|
-
height: rem(40px);
|
|
172
|
+
left: convert.to-rem(-6px);
|
|
173
|
+
width: convert.to-rem(6px);
|
|
174
|
+
height: convert.to-rem(40px);
|
|
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
|
-
width: rem(32px);
|
|
180
|
+
width: 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
|
-
height: rem(32px);
|
|
185
|
+
height: 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
|
-
width: rem(48px);
|
|
192
|
+
width: 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
|
-
height: rem(48px);
|
|
197
|
+
height: convert.to-rem(48px);
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
|
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
|
|
224
224
|
display: flex;
|
|
225
225
|
width: 100%;
|
|
226
|
-
height: rem(40px);
|
|
226
|
+
height: convert.to-rem(40px);
|
|
227
227
|
align-items: center;
|
|
228
228
|
padding: 0;
|
|
229
229
|
background-color: transparent;
|
|
@@ -232,12 +232,12 @@
|
|
|
232
232
|
|
|
233
233
|
.#{$prefix}--overflow-menu-options--sm
|
|
234
234
|
.#{$prefix}--overflow-menu-options__option {
|
|
235
|
-
height: rem(32px);
|
|
235
|
+
height: convert.to-rem(32px);
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
.#{$prefix}--overflow-menu-options--lg
|
|
239
239
|
.#{$prefix}--overflow-menu-options__option {
|
|
240
|
-
height: rem(48px);
|
|
240
|
+
height: convert.to-rem(48px);
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
.#{$prefix}--overflow-menu--divider {
|