@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
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
@use '../../utilities/visually-hidden' as *;
|
|
21
21
|
@use '../../utilities/high-contrast-mode' as *;
|
|
22
22
|
@use '../../utilities/skeleton' as *;
|
|
23
|
-
@use '../../utilities/convert'
|
|
23
|
+
@use '../../utilities/convert';
|
|
24
24
|
|
|
25
25
|
/// @type Number
|
|
26
26
|
/// @access public
|
|
@@ -81,11 +81,12 @@ $radio-border-width: 1px !default;
|
|
|
81
81
|
.#{$prefix}--radio-button__appearance {
|
|
82
82
|
@include reset;
|
|
83
83
|
|
|
84
|
-
width: rem(18px);
|
|
85
|
-
height: rem(18px);
|
|
84
|
+
width: convert.to-rem(18px);
|
|
85
|
+
height: convert.to-rem(18px);
|
|
86
86
|
flex-shrink: 0;
|
|
87
87
|
border: $radio-border-width solid $icon-primary;
|
|
88
|
-
margin: rem(1px) $spacing-03 rem(2px)
|
|
88
|
+
margin: convert.to-rem(1px) $spacing-03 convert.to-rem(2px)
|
|
89
|
+
convert.to-rem(2px);
|
|
89
90
|
background-color: transparent;
|
|
90
91
|
border-radius: 50%;
|
|
91
92
|
}
|
|
@@ -163,11 +164,11 @@ $radio-border-width: 1px !default;
|
|
|
163
164
|
.#{$prefix}--radio-button__validation-msg {
|
|
164
165
|
display: none;
|
|
165
166
|
align-items: flex-end;
|
|
166
|
-
margin-top: rem(6px);
|
|
167
|
+
margin-top: convert.to-rem(6px);
|
|
167
168
|
}
|
|
168
169
|
|
|
169
170
|
.#{$prefix}--radio-button__invalid-icon {
|
|
170
|
-
margin: 0 rem(1px) 0 rem(3px);
|
|
171
|
+
margin: 0 convert.to-rem(1px) 0 convert.to-rem(3px);
|
|
171
172
|
fill: $support-error;
|
|
172
173
|
}
|
|
173
174
|
|
|
@@ -206,7 +207,7 @@ $radio-border-width: 1px !default;
|
|
|
206
207
|
}
|
|
207
208
|
|
|
208
209
|
.#{$prefix}--radio-button-group ~ .#{$prefix}--form__helper-text {
|
|
209
|
-
margin-top: rem(6px);
|
|
210
|
+
margin-top: convert.to-rem(6px);
|
|
210
211
|
}
|
|
211
212
|
|
|
212
213
|
// Focus
|
|
@@ -222,8 +223,8 @@ $radio-border-width: 1px !default;
|
|
|
222
223
|
.#{$prefix}--radio-button__label.#{$prefix}--skeleton {
|
|
223
224
|
@include skeleton;
|
|
224
225
|
|
|
225
|
-
width: rem(100px);
|
|
226
|
-
height: rem(18px);
|
|
226
|
+
width: convert.to-rem(100px);
|
|
227
|
+
height: convert.to-rem(18px);
|
|
227
228
|
}
|
|
228
229
|
|
|
229
230
|
.#{$prefix}--radio-button__label.#{$prefix}--skeleton
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
@use '../../utilities/component-reset' as *;
|
|
22
22
|
@use '../../utilities/skeleton' as *;
|
|
23
23
|
@use '../../utilities/high-contrast-mode' as *;
|
|
24
|
-
@use '../../utilities/convert'
|
|
24
|
+
@use '../../utilities/convert';
|
|
25
25
|
@use '../../utilities/button-reset';
|
|
26
26
|
|
|
27
27
|
/// Search styles
|
|
@@ -91,33 +91,33 @@
|
|
|
91
91
|
.#{$prefix}--search--sm .#{$prefix}--search-input,
|
|
92
92
|
.#{$prefix}--search--sm.#{$prefix}--search--expandable.#{$prefix}--search--expanded
|
|
93
93
|
.#{$prefix}--search-input {
|
|
94
|
-
height: rem(32px);
|
|
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
97
|
}
|
|
98
98
|
|
|
99
99
|
.#{$prefix}--search--sm .#{$prefix}--search-magnifier-icon {
|
|
100
|
-
left: rem(8px);
|
|
100
|
+
left: convert.to-rem(8px);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
// Medium styles
|
|
104
104
|
.#{$prefix}--search--md .#{$prefix}--search-input,
|
|
105
105
|
.#{$prefix}--search--md.#{$prefix}--search--expandable.#{$prefix}--search--expanded
|
|
106
106
|
.#{$prefix}--search-input {
|
|
107
|
-
height: rem(40px);
|
|
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
110
|
}
|
|
111
111
|
|
|
112
112
|
.#{$prefix}--search--md .#{$prefix}--search-magnifier-icon {
|
|
113
|
-
left: rem(12px);
|
|
113
|
+
left: convert.to-rem(12px);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
// Large styles
|
|
117
117
|
.#{$prefix}--search--lg .#{$prefix}--search-input,
|
|
118
118
|
.#{$prefix}--search--lg.#{$prefix}--search--expandable.#{$prefix}--search--expanded
|
|
119
119
|
.#{$prefix}--search-input {
|
|
120
|
-
height: rem(48px);
|
|
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
123
|
}
|
|
@@ -129,8 +129,8 @@
|
|
|
129
129
|
z-index: 2;
|
|
130
130
|
top: 50%;
|
|
131
131
|
left: $spacing-05;
|
|
132
|
-
width: rem(16px);
|
|
133
|
-
height: rem(16px);
|
|
132
|
+
width: convert.to-rem(16px);
|
|
133
|
+
height: convert.to-rem(16px);
|
|
134
134
|
fill: $icon-secondary;
|
|
135
135
|
pointer-events: none;
|
|
136
136
|
transform: translateY(-50%);
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
|
|
147
147
|
&::before {
|
|
148
148
|
position: absolute;
|
|
149
|
-
top: rem(1px);
|
|
149
|
+
top: convert.to-rem(1px);
|
|
150
150
|
left: 0;
|
|
151
151
|
display: block;
|
|
152
152
|
width: 2px;
|
|
@@ -188,8 +188,8 @@
|
|
|
188
188
|
.#{$prefix}--search-close,
|
|
189
189
|
.#{$prefix}--search-button {
|
|
190
190
|
display: flex;
|
|
191
|
-
width: rem(40px);
|
|
192
|
-
height: rem(40px);
|
|
191
|
+
width: convert.to-rem(40px);
|
|
192
|
+
height: convert.to-rem(40px);
|
|
193
193
|
align-items: center;
|
|
194
194
|
justify-content: center;
|
|
195
195
|
border-width: 1px 0;
|
|
@@ -256,12 +256,12 @@
|
|
|
256
256
|
~ .#{$prefix}--search-button,
|
|
257
257
|
&.#{$prefix}--search--expandable,
|
|
258
258
|
&.#{$prefix}--search--expandable .#{$prefix}--search-magnifier {
|
|
259
|
-
width: rem(32px);
|
|
260
|
-
height: rem(32px);
|
|
259
|
+
width: convert.to-rem(32px);
|
|
260
|
+
height: convert.to-rem(32px);
|
|
261
261
|
}
|
|
262
262
|
|
|
263
263
|
&.#{$prefix}--search--expandable .#{$prefix}--search-input::placeholder {
|
|
264
|
-
padding: 0 rem(32px);
|
|
264
|
+
padding: 0 convert.to-rem(32px);
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
|
|
@@ -271,12 +271,12 @@
|
|
|
271
271
|
~ .#{$prefix}--search-button,
|
|
272
272
|
&.#{$prefix}--search--expandable,
|
|
273
273
|
&.#{$prefix}--search--expandable .#{$prefix}--search-magnifier {
|
|
274
|
-
width: rem(40px);
|
|
275
|
-
height: rem(40px);
|
|
274
|
+
width: convert.to-rem(40px);
|
|
275
|
+
height: convert.to-rem(40px);
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
&.#{$prefix}--search--expandable .#{$prefix}--search-input::placeholder {
|
|
279
|
-
padding: 0 rem(40px);
|
|
279
|
+
padding: 0 convert.to-rem(40px);
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
|
|
@@ -286,12 +286,12 @@
|
|
|
286
286
|
~ .#{$prefix}--search-button,
|
|
287
287
|
&.#{$prefix}--search--expandable,
|
|
288
288
|
&.#{$prefix}--search--expandable .#{$prefix}--search-magnifier {
|
|
289
|
-
width: rem(48px);
|
|
290
|
-
height: rem(48px);
|
|
289
|
+
width: convert.to-rem(48px);
|
|
290
|
+
height: convert.to-rem(48px);
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
&.#{$prefix}--search--expandable .#{$prefix}--search-input::placeholder {
|
|
294
|
-
padding: 0 rem(48px);
|
|
294
|
+
padding: 0 convert.to-rem(48px);
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
297
|
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
@use '../../breakpoint' as *;
|
|
14
14
|
@use '../../theme' as *;
|
|
15
15
|
@use '../../utilities/component-reset';
|
|
16
|
-
@use '../../utilities/convert'
|
|
16
|
+
@use '../../utilities/convert';
|
|
17
17
|
@use '../../utilities/focus-outline' as *;
|
|
18
18
|
@use '../../utilities/high-contrast-mode' as *;
|
|
19
19
|
@use '../../utilities/skeleton' as *;
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
|
|
46
46
|
display: block;
|
|
47
47
|
width: 100%;
|
|
48
|
-
height: rem(40px);
|
|
48
|
+
height: convert.to-rem(40px);
|
|
49
49
|
padding: 0 $spacing-09 0 $spacing-05;
|
|
50
50
|
border: none;
|
|
51
51
|
border-bottom: 1px solid $border-strong;
|
|
@@ -98,13 +98,13 @@
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
.#{$prefix}--select-input--sm {
|
|
101
|
-
height: rem(32px);
|
|
102
|
-
max-height: rem(32px);
|
|
101
|
+
height: convert.to-rem(32px);
|
|
102
|
+
max-height: convert.to-rem(32px);
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
.#{$prefix}--select-input--lg {
|
|
106
|
-
height: rem(48px);
|
|
107
|
-
max-height: rem(48px);
|
|
106
|
+
height: convert.to-rem(48px);
|
|
107
|
+
max-height: convert.to-rem(48px);
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
.#{$prefix}--select--disabled .#{$prefix}--label,
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
.#{$prefix}--form__helper-text {
|
|
197
197
|
align-self: flex-start;
|
|
198
198
|
// Offset label text margin
|
|
199
|
-
margin-top: rem(13px);
|
|
199
|
+
margin-top: convert.to-rem(13px);
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
.#{$prefix}--select--inline .#{$prefix}--form__helper-text {
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
|
|
236
236
|
.#{$prefix}--select--inline.#{$prefix}--select--invalid
|
|
237
237
|
.#{$prefix}--select-input {
|
|
238
|
-
padding-right: rem(56px);
|
|
238
|
+
padding-right: convert.to-rem(56px);
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
.#{$prefix}--select--inline.#{$prefix}--select--invalid
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
@use '../../config' as *;
|
|
9
9
|
@use '../../utilities/skeleton' as *;
|
|
10
|
-
@use '../../utilities/convert'
|
|
10
|
+
@use '../../utilities/convert';
|
|
11
11
|
@use '../../spacing' as *;
|
|
12
12
|
|
|
13
13
|
/// Skeleton styles
|
|
@@ -19,17 +19,17 @@
|
|
|
19
19
|
@include skeleton;
|
|
20
20
|
|
|
21
21
|
display: inline-block;
|
|
22
|
-
width: rem(16px);
|
|
23
|
-
height: rem(16px);
|
|
22
|
+
width: convert.to-rem(16px);
|
|
23
|
+
height: convert.to-rem(16px);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
//skeleton placeholder
|
|
27
27
|
.#{$prefix}--skeleton__placeholder {
|
|
28
28
|
@include skeleton;
|
|
29
29
|
|
|
30
|
-
width: rem(100px);
|
|
30
|
+
width: convert.to-rem(100px);
|
|
31
31
|
|
|
32
|
-
height: rem(100px);
|
|
32
|
+
height: convert.to-rem(100px);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
//skeleton text
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
@use '../../utilities/focus-outline' as *;
|
|
21
21
|
@use '../../utilities/skeleton' as *;
|
|
22
22
|
@use '../../utilities/high-contrast-mode' as *;
|
|
23
|
-
@use '../../utilities/convert'
|
|
23
|
+
@use '../../utilities/convert';
|
|
24
24
|
|
|
25
25
|
/// Slider styles
|
|
26
26
|
/// @access public
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
.#{$prefix}--slider {
|
|
37
37
|
position: relative;
|
|
38
38
|
width: 100%;
|
|
39
|
-
min-width: rem(200px);
|
|
40
|
-
max-width: rem(640px);
|
|
39
|
+
min-width: convert.to-rem(200px);
|
|
40
|
+
max-width: convert.to-rem(640px);
|
|
41
41
|
padding: $spacing-05 0;
|
|
42
42
|
margin: 0 $spacing-05;
|
|
43
43
|
cursor: pointer;
|
|
@@ -57,18 +57,18 @@
|
|
|
57
57
|
.#{$prefix}--slider__track {
|
|
58
58
|
position: absolute;
|
|
59
59
|
width: 100%;
|
|
60
|
-
height: rem(2px);
|
|
60
|
+
height: convert.to-rem(2px);
|
|
61
61
|
background: $border-subtle;
|
|
62
62
|
transform: translate(0%, -50%);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.#{$prefix}--slider__track:before {
|
|
66
66
|
position: absolute;
|
|
67
|
-
top: rem(-5px);
|
|
67
|
+
top: convert.to-rem(-5px);
|
|
68
68
|
left: 50%;
|
|
69
69
|
display: inline-block;
|
|
70
|
-
width: rem(2px);
|
|
71
|
-
height: rem(4px);
|
|
70
|
+
width: convert.to-rem(2px);
|
|
71
|
+
height: convert.to-rem(4px);
|
|
72
72
|
background: $border-subtle;
|
|
73
73
|
content: '';
|
|
74
74
|
transform: translate(-50%, 0);
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
.#{$prefix}--slider__filled-track {
|
|
78
78
|
position: absolute;
|
|
79
79
|
width: 100%;
|
|
80
|
-
height: rem(2px);
|
|
80
|
+
height: convert.to-rem(2px);
|
|
81
81
|
background: $layer-selected-inverse;
|
|
82
82
|
pointer-events: none;
|
|
83
83
|
transform: translate(0%, -50%);
|
|
@@ -88,8 +88,8 @@
|
|
|
88
88
|
.#{$prefix}--slider__thumb {
|
|
89
89
|
position: absolute;
|
|
90
90
|
z-index: 3;
|
|
91
|
-
width: rem(14px);
|
|
92
|
-
height: rem(14px);
|
|
91
|
+
width: convert.to-rem(14px);
|
|
92
|
+
height: convert.to-rem(14px);
|
|
93
93
|
background: $layer-selected-inverse;
|
|
94
94
|
border-radius: 50%;
|
|
95
95
|
box-shadow: inset 0 0 0 1px transparent, inset 0 0 0 2px transparent;
|
|
@@ -123,9 +123,10 @@
|
|
|
123
123
|
|
|
124
124
|
.#{$prefix}--slider-text-input,
|
|
125
125
|
.#{$prefix}-slider-text-input {
|
|
126
|
-
width: rem(64px);
|
|
127
|
-
height: rem(40px);
|
|
126
|
+
width: convert.to-rem(64px);
|
|
127
|
+
height: convert.to-rem(40px);
|
|
128
128
|
-moz-appearance: textfield;
|
|
129
|
+
appearance: textfield;
|
|
129
130
|
|
|
130
131
|
&::-webkit-outer-spin-button,
|
|
131
132
|
&::-webkit-inner-spin-button {
|
|
@@ -254,8 +255,8 @@
|
|
|
254
255
|
.#{$prefix}--slider__range-label {
|
|
255
256
|
@include skeleton;
|
|
256
257
|
|
|
257
|
-
width: rem(20px);
|
|
258
|
-
height: rem(12px);
|
|
258
|
+
width: convert.to-rem(20px);
|
|
259
|
+
height: convert.to-rem(12px);
|
|
259
260
|
}
|
|
260
261
|
|
|
261
262
|
.#{$prefix}--slider-container.#{$prefix}--skeleton
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
@use '../../utilities/focus-outline' as *;
|
|
16
16
|
@use '../../utilities/skeleton' as *;
|
|
17
17
|
@use '../../utilities/high-contrast-mode' as *;
|
|
18
|
-
@use '../../utilities/convert'
|
|
18
|
+
@use '../../utilities/convert';
|
|
19
19
|
@use '../../utilities/component-reset';
|
|
20
20
|
|
|
21
21
|
@mixin structured-list {
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
@include type-style('heading-compact-01');
|
|
150
150
|
|
|
151
151
|
display: table-cell;
|
|
152
|
-
height: rem(40px);
|
|
152
|
+
height: convert.to-rem(40px);
|
|
153
153
|
color: $text-primary;
|
|
154
154
|
font-weight: 600;
|
|
155
155
|
text-align: left;
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
@use '../../utilities/visually-hidden' as *;
|
|
31
31
|
@use '../../utilities/button-reset';
|
|
32
32
|
@use '../../utilities/high-contrast-mode' as *;
|
|
33
|
-
@use '../../utilities/convert'
|
|
33
|
+
@use '../../utilities/convert';
|
|
34
34
|
@use '../../utilities/layout';
|
|
35
35
|
|
|
36
36
|
/// Tabs styles
|
|
@@ -254,7 +254,7 @@
|
|
|
254
254
|
&:not(.#{$prefix}--tabs--contained)
|
|
255
255
|
.#{$prefix}--tabs__nav-item-label-wrapper {
|
|
256
256
|
position: relative;
|
|
257
|
-
top: rem(1px);
|
|
257
|
+
top: convert.to-rem(1px);
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
//-----------------------------
|
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
}
|
|
273
273
|
|
|
274
274
|
.#{$prefix}--tabs__nav-item + .#{$prefix}--tabs__nav-item {
|
|
275
|
-
margin-left: rem(1px);
|
|
275
|
+
margin-left: convert.to-rem(1px);
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
&.#{$prefix}--tabs--contained .#{$prefix}--tabs__nav-item {
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
+ .#{$prefix}--tabs__nav-item {
|
|
285
285
|
margin-left: 0;
|
|
286
286
|
// Draws the border without affecting the inner-content
|
|
287
|
-
box-shadow: rem(-1px) 0 0 0 $border-strong;
|
|
287
|
+
box-shadow: convert.to-rem(-1px) 0 0 0 $border-strong;
|
|
288
288
|
}
|
|
289
289
|
|
|
290
290
|
.#{$prefix}--tabs__nav-item .#{$prefix}--tabs__nav-link {
|
|
@@ -390,13 +390,13 @@
|
|
|
390
390
|
&.#{$prefix}--tabs--contained:not(.#{$prefix}--tabs--tall)
|
|
391
391
|
.#{$prefix}--tabs__nav-item-label {
|
|
392
392
|
// height - vertical padding
|
|
393
|
-
line-height: calc(#{rem(48px)} - (#{$spacing-03} * 2));
|
|
393
|
+
line-height: calc(#{convert.to-rem(48px)} - (#{$spacing-03} * 2));
|
|
394
394
|
}
|
|
395
395
|
|
|
396
396
|
&.#{$prefix}--tabs--contained .#{$prefix}--tabs__nav-item-secondary-label {
|
|
397
397
|
@include type-style('label-01');
|
|
398
398
|
|
|
399
|
-
min-height: rem(16px);
|
|
399
|
+
min-height: convert.to-rem(16px);
|
|
400
400
|
}
|
|
401
401
|
|
|
402
402
|
//-----------------------------
|
|
@@ -478,7 +478,7 @@
|
|
|
478
478
|
&.#{$prefix}--tabs--contained:not(.#{$prefix}--tabs--tall)
|
|
479
479
|
.#{$prefix}--tabs__nav-item--selected:hover {
|
|
480
480
|
// height - vertical padding
|
|
481
|
-
line-height: calc(#{rem(48px)} - (#{$spacing-03} * 2));
|
|
481
|
+
line-height: calc(#{convert.to-rem(48px)} - (#{$spacing-03} * 2));
|
|
482
482
|
}
|
|
483
483
|
|
|
484
484
|
&.#{$prefix}--tabs--contained .#{$prefix}--tabs__nav-item--selected,
|
|
@@ -598,7 +598,7 @@
|
|
|
598
598
|
|
|
599
599
|
display: block;
|
|
600
600
|
width: 100%;
|
|
601
|
-
height: rem(14px);
|
|
601
|
+
height: convert.to-rem(14px);
|
|
602
602
|
}
|
|
603
603
|
|
|
604
604
|
// Windows HCM fix
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
@use '../../motion' as *;
|
|
12
12
|
@use '../../config' as *;
|
|
13
13
|
@use '../../utilities/component-tokens' as *;
|
|
14
|
-
@use '../../utilities/convert'
|
|
14
|
+
@use '../../utilities/convert';
|
|
15
15
|
@use '../../utilities/high-contrast-mode' as *;
|
|
16
16
|
@use '../../utilities/layout';
|
|
17
17
|
@use '../../spacing' as *;
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
(
|
|
29
29
|
size: (
|
|
30
30
|
height: (
|
|
31
|
-
xs: rem(18px),
|
|
32
|
-
sm: rem(18px),
|
|
33
|
-
md: rem(24px),
|
|
31
|
+
xs: convert.to-rem(18px),
|
|
32
|
+
sm: convert.to-rem(18px),
|
|
33
|
+
md: convert.to-rem(24px),
|
|
34
34
|
),
|
|
35
35
|
),
|
|
36
36
|
)
|
|
@@ -43,14 +43,14 @@
|
|
|
43
43
|
|
|
44
44
|
display: inline-flex;
|
|
45
45
|
// ensures tag stays pill shaped;
|
|
46
|
-
min-width: rem(32px);
|
|
46
|
+
min-width: convert.to-rem(32px);
|
|
47
47
|
// restricts size of contained elements
|
|
48
48
|
max-width: 100%;
|
|
49
49
|
min-height: layout.size('height');
|
|
50
50
|
align-items: center;
|
|
51
51
|
justify-content: center;
|
|
52
52
|
margin: $spacing-02;
|
|
53
|
-
border-radius: rem(15px);
|
|
53
|
+
border-radius: convert.to-rem(15px);
|
|
54
54
|
cursor: default;
|
|
55
55
|
padding-inline: $spacing-03;
|
|
56
56
|
vertical-align: middle;
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
justify-content: center;
|
|
189
189
|
padding: 0;
|
|
190
190
|
border: 0;
|
|
191
|
-
margin: 0 0 0 rem(2px);
|
|
191
|
+
margin: 0 0 0 convert.to-rem(2px);
|
|
192
192
|
background-color: transparent;
|
|
193
193
|
border-radius: 50%;
|
|
194
194
|
color: currentColor;
|
|
@@ -202,8 +202,8 @@
|
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
.#{$prefix}--tag__custom-icon {
|
|
205
|
-
width: rem(16px);
|
|
206
|
-
height: rem(16px);
|
|
205
|
+
width: convert.to-rem(16px);
|
|
206
|
+
height: convert.to-rem(16px);
|
|
207
207
|
flex-shrink: 0;
|
|
208
208
|
padding: 0;
|
|
209
209
|
border: 0;
|
|
@@ -245,7 +245,7 @@
|
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
.#{$prefix}--tag--sm .#{$prefix}--tag__close-icon {
|
|
248
|
-
margin-left: rem(5px);
|
|
248
|
+
margin-left: convert.to-rem(5px);
|
|
249
249
|
}
|
|
250
250
|
|
|
251
251
|
// Skeleton state
|
|
@@ -256,7 +256,7 @@
|
|
|
256
256
|
);
|
|
257
257
|
|
|
258
258
|
overflow: hidden;
|
|
259
|
-
width: rem(60px);
|
|
259
|
+
width: convert.to-rem(60px);
|
|
260
260
|
|
|
261
261
|
// Safari specific bug (#7672)
|
|
262
262
|
@media not all and (min-resolution: 0.001dpcm) {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
@use '../../theme' as *;
|
|
14
14
|
@use '../../type' as *;
|
|
15
15
|
@use '../../utilities/component-reset';
|
|
16
|
-
@use '../../utilities/convert'
|
|
16
|
+
@use '../../utilities/convert';
|
|
17
17
|
@use '../../utilities/focus-outline' as *;
|
|
18
18
|
@use '../../utilities/placeholder-colors' as *;
|
|
19
19
|
@use '../../utilities/skeleton' as *;
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
|
|
30
30
|
min-width: 10rem;
|
|
31
31
|
height: 100%;
|
|
32
|
-
min-height: rem(40px);
|
|
33
|
-
padding: rem(11px) $spacing-05;
|
|
32
|
+
min-height: convert.to-rem(40px);
|
|
33
|
+
padding: convert.to-rem(11px) $spacing-05;
|
|
34
34
|
border: none;
|
|
35
35
|
border-bottom: 1px solid $border-strong;
|
|
36
36
|
background-color: $field;
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
@include skeleton;
|
|
128
128
|
|
|
129
129
|
width: 100%;
|
|
130
|
-
height: rem(100px);
|
|
130
|
+
height: convert.to-rem(100px);
|
|
131
131
|
|
|
132
132
|
&::placeholder {
|
|
133
133
|
color: transparent;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
@use '../../utilities/tooltip' as *;
|
|
21
21
|
@use '../../utilities/skeleton' as *;
|
|
22
22
|
@use '../../utilities/high-contrast-mode' as *;
|
|
23
|
-
@use '../../utilities/convert'
|
|
23
|
+
@use '../../utilities/convert';
|
|
24
24
|
@use '../../utilities/layout';
|
|
25
25
|
@use '../../utilities/focus-outline' as *;
|
|
26
26
|
@use '../../utilities/button-reset';
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
position: absolute;
|
|
118
118
|
right: 0;
|
|
119
119
|
display: flex;
|
|
120
|
-
width: rem(40px);
|
|
120
|
+
width: convert.to-rem(40px);
|
|
121
121
|
height: 100%;
|
|
122
122
|
min-height: auto;
|
|
123
123
|
align-items: center;
|
|
@@ -131,12 +131,12 @@
|
|
|
131
131
|
|
|
132
132
|
.#{$prefix}--text-input--sm
|
|
133
133
|
+ .#{$prefix}--btn.#{$prefix}--text-input--password__visibility__toggle.#{$prefix}--tooltip__trigger {
|
|
134
|
-
width: rem(32px);
|
|
134
|
+
width: convert.to-rem(32px);
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
.#{$prefix}--text-input--lg
|
|
138
138
|
+ .#{$prefix}--btn.#{$prefix}--text-input--password__visibility__toggle.#{$prefix}--tooltip__trigger {
|
|
139
|
-
width: rem(48px);
|
|
139
|
+
width: convert.to-rem(48px);
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
.#{$prefix}--btn.#{$prefix}--text-input--password__visibility__toggle.#{$prefix}--tooltip__trigger
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
.#{$prefix}--text-input--invalid.#{$prefix}--password-input {
|
|
172
|
-
padding-right: rem(64px);
|
|
172
|
+
padding-right: convert.to-rem(64px);
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
.#{$prefix}--text-input--invalid
|
|
@@ -266,10 +266,10 @@
|
|
|
266
266
|
.#{$prefix}--form--fluid .#{$prefix}--label {
|
|
267
267
|
position: absolute;
|
|
268
268
|
z-index: 1;
|
|
269
|
-
top: rem(13px);
|
|
269
|
+
top: convert.to-rem(13px);
|
|
270
270
|
left: $spacing-05;
|
|
271
271
|
display: flex;
|
|
272
|
-
height: rem(16px);
|
|
272
|
+
height: convert.to-rem(16px);
|
|
273
273
|
align-items: center;
|
|
274
274
|
margin: 0;
|
|
275
275
|
}
|
|
@@ -279,8 +279,8 @@
|
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
.#{$prefix}--form--fluid .#{$prefix}--text-input {
|
|
282
|
-
min-height: rem(64px);
|
|
283
|
-
padding: rem(32px) $spacing-05 rem(13px);
|
|
282
|
+
min-height: convert.to-rem(64px);
|
|
283
|
+
padding: convert.to-rem(32px) $spacing-05 convert.to-rem(13px);
|
|
284
284
|
}
|
|
285
285
|
|
|
286
286
|
.#{$prefix}--text-input__divider,
|
|
@@ -307,7 +307,7 @@
|
|
|
307
307
|
}
|
|
308
308
|
|
|
309
309
|
.#{$prefix}--form--fluid .#{$prefix}--text-input__invalid-icon {
|
|
310
|
-
top: rem(80px);
|
|
310
|
+
top: convert.to-rem(80px);
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
.#{$prefix}--form--fluid
|
|
@@ -353,29 +353,29 @@
|
|
|
353
353
|
|
|
354
354
|
.#{$prefix}--text-input-wrapper .#{$prefix}--label--inline {
|
|
355
355
|
flex: 1;
|
|
356
|
-
margin: rem(13px) 0 0 0;
|
|
356
|
+
margin: convert.to-rem(13px) 0 0 0;
|
|
357
357
|
overflow-wrap: break-word;
|
|
358
358
|
word-break: break-word;
|
|
359
359
|
}
|
|
360
360
|
|
|
361
361
|
.#{$prefix}--text-input-wrapper .#{$prefix}--label--inline--sm {
|
|
362
|
-
margin-top: rem(9px);
|
|
362
|
+
margin-top: convert.to-rem(9px);
|
|
363
363
|
}
|
|
364
364
|
|
|
365
365
|
.#{$prefix}--text-input-wrapper .#{$prefix}--label--inline--lg {
|
|
366
|
-
margin-top: rem(17px);
|
|
366
|
+
margin-top: convert.to-rem(17px);
|
|
367
367
|
}
|
|
368
368
|
|
|
369
369
|
.#{$prefix}--text-input__label-helper-wrapper {
|
|
370
|
-
max-width: rem(128px);
|
|
370
|
+
max-width: convert.to-rem(128px);
|
|
371
371
|
flex: 2;
|
|
372
372
|
flex-direction: column;
|
|
373
|
-
margin-right: rem(24px);
|
|
373
|
+
margin-right: convert.to-rem(24px);
|
|
374
374
|
overflow-wrap: break-word;
|
|
375
375
|
}
|
|
376
376
|
|
|
377
377
|
.#{$prefix}--text-input-wrapper .#{$prefix}--form__helper-text--inline {
|
|
378
|
-
margin-top: rem(2px);
|
|
378
|
+
margin-top: convert.to-rem(2px);
|
|
379
379
|
}
|
|
380
380
|
|
|
381
381
|
.#{$prefix}--text-input__field-outer-wrapper {
|
|
@@ -394,7 +394,7 @@
|
|
|
394
394
|
.#{$prefix}--text-input-wrapper--inline .cds--form-requirement {
|
|
395
395
|
display: block;
|
|
396
396
|
overflow: visible;
|
|
397
|
-
max-height: rem(200px);
|
|
397
|
+
max-height: convert.to-rem(200px);
|
|
398
398
|
font-weight: 400;
|
|
399
399
|
}
|
|
400
400
|
|