@carbon/styles 0.14.0-rc.0 → 0.15.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/package.json +8 -8
- package/scss/_config.scss +6 -0
- package/scss/_grid.scss +3 -1
- package/scss/_motion.scss +7 -36
- package/scss/_reset.scss +1 -1
- package/scss/components/_index.scss +1 -0
- package/scss/components/accordion/_accordion.scss +4 -2
- package/scss/components/aspect-ratio/_aspect-ratio.scss +73 -0
- package/scss/components/aspect-ratio/_index.scss +11 -0
- package/scss/components/breadcrumb/_breadcrumb.scss +1 -1
- package/scss/components/button/_tokens.scss +2 -2
- package/scss/components/checkbox/_checkbox.scss +1 -1
- package/scss/components/code-snippet/_code-snippet.scss +3 -3
- package/scss/components/content-switcher/_content-switcher.scss +5 -1
- package/scss/components/copy-button/_copy-button.scss +1 -1
- package/scss/components/data-table/_data-table.scss +4 -4
- package/scss/components/data-table/action/_data-table-action.scss +3 -3
- package/scss/components/data-table/sort/_data-table-sort.scss +1 -1
- package/scss/components/date-picker/_flatpickr.scss +27 -20
- package/scss/components/dropdown/_dropdown.scss +3 -3
- package/scss/components/file-uploader/_file-uploader.scss +4 -4
- package/scss/components/form/_form.scss +2 -2
- package/scss/components/link/_link.scss +3 -3
- package/scss/components/list/_list.scss +2 -2
- package/scss/components/list-box/_list-box.scss +13 -15
- package/scss/components/loading/_loading.scss +3 -0
- package/scss/components/menu/_menu.scss +1 -1
- package/scss/components/modal/_modal.scss +3 -3
- package/scss/components/notification/_actionable-notification.scss +2 -2
- package/scss/components/notification/_inline-notification.scss +3 -3
- package/scss/components/notification/_toast-notification.scss +5 -5
- package/scss/components/number-input/_number-input.scss +29 -18
- package/scss/components/overflow-menu/_overflow-menu.scss +5 -2
- package/scss/components/pagination/_index.scss +3 -0
- package/scss/components/pagination/_pagination.scss +1 -0
- package/scss/components/pagination/_unstable_pagination.scss +173 -0
- package/scss/components/pagination-nav/_pagination-nav.scss +2 -2
- package/scss/components/popover/_popover.scss +27 -12
- package/scss/components/progress-bar/_progress-bar.scss +9 -1
- package/scss/components/progress-indicator/_progress-indicator.scss +12 -14
- package/scss/components/search/_search.scss +14 -17
- package/scss/components/select/_select.scss +8 -2
- package/scss/components/slider/_slider.scss +6 -4
- package/scss/components/structured-list/_structured-list.scss +2 -3
- package/scss/components/tabs/_tabs.scss +3 -3
- package/scss/components/tag/_tag.scss +1 -0
- package/scss/components/text-area/_text-area.scss +2 -2
- package/scss/components/text-input/_text-input.scss +18 -4
- package/scss/components/tile/_tile.scss +2 -2
- package/scss/components/toggle/_toggle.scss +3 -3
- package/scss/components/toggletip/_toggletip.scss +1 -1
- package/scss/components/tooltip/_tooltip.scss +3 -3
- package/scss/components/treeview/_treeview.scss +1 -1
- package/scss/components/ui-shell/header/_header.scss +3 -3
- package/scss/components/ui-shell/side-nav/_side-nav.scss +7 -6
- package/scss/components/ui-shell/switcher/_switcher.scss +1 -1
- package/scss/fonts/_src.scss +1 -1
- package/scss/utilities/_keyframes.scss +10 -0
- package/scss/utilities/_tooltip.scss +3 -1
|
@@ -185,13 +185,16 @@ $popover-caret-height: custom-property.get-var(
|
|
|
185
185
|
.#{$prefix}--popover--bottom-left .#{$prefix}--popover-content {
|
|
186
186
|
bottom: 0;
|
|
187
187
|
left: 0;
|
|
188
|
-
transform: translate(
|
|
188
|
+
transform: translate(
|
|
189
|
+
calc(-1 * $popover-offset),
|
|
190
|
+
calc(100% + $popover-offset)
|
|
191
|
+
);
|
|
189
192
|
}
|
|
190
193
|
|
|
191
194
|
.#{$prefix}--popover--bottom-right .#{$prefix}--popover-content {
|
|
192
195
|
right: 0;
|
|
193
196
|
bottom: 0;
|
|
194
|
-
transform: translate(
|
|
197
|
+
transform: translate($popover-offset, calc(100% + $popover-offset));
|
|
195
198
|
}
|
|
196
199
|
|
|
197
200
|
// Popover hover area placement
|
|
@@ -231,13 +234,16 @@ $popover-caret-height: custom-property.get-var(
|
|
|
231
234
|
.#{$prefix}--popover--top-left .#{$prefix}--popover-content {
|
|
232
235
|
top: 0;
|
|
233
236
|
left: 0;
|
|
234
|
-
transform: translate(
|
|
237
|
+
transform: translate(
|
|
238
|
+
calc(-1 * $popover-offset),
|
|
239
|
+
calc(-100% - $popover-offset)
|
|
240
|
+
);
|
|
235
241
|
}
|
|
236
242
|
|
|
237
243
|
.#{$prefix}--popover--top-right .#{$prefix}--popover-content {
|
|
238
244
|
top: 0;
|
|
239
245
|
right: 0;
|
|
240
|
-
transform: translate(
|
|
246
|
+
transform: translate($popover-offset, calc(-100% - $popover-offset));
|
|
241
247
|
}
|
|
242
248
|
|
|
243
249
|
// Popover hover area placement
|
|
@@ -277,15 +283,18 @@ $popover-caret-height: custom-property.get-var(
|
|
|
277
283
|
}
|
|
278
284
|
|
|
279
285
|
.#{$prefix}--popover--right-top .#{$prefix}--popover-content {
|
|
280
|
-
top:
|
|
286
|
+
top: 50%;
|
|
281
287
|
left: 100%;
|
|
282
|
-
transform: translate(
|
|
288
|
+
transform: translate(
|
|
289
|
+
$popover-offset,
|
|
290
|
+
calc(0.5 * $popover-offset * -1 - 16px)
|
|
291
|
+
);
|
|
283
292
|
}
|
|
284
293
|
|
|
285
294
|
.#{$prefix}--popover--right-bottom .#{$prefix}--popover-content {
|
|
286
|
-
bottom:
|
|
295
|
+
bottom: 50%;
|
|
287
296
|
left: 100%;
|
|
288
|
-
transform: translate($popover-offset, 0);
|
|
297
|
+
transform: translate($popover-offset, calc(0.5 * $popover-offset + 16px));
|
|
289
298
|
}
|
|
290
299
|
|
|
291
300
|
// Popover hover area placement
|
|
@@ -325,19 +334,25 @@ $popover-caret-height: custom-property.get-var(
|
|
|
325
334
|
}
|
|
326
335
|
|
|
327
336
|
.#{$prefix}--popover--left-top .#{$prefix}--popover-content {
|
|
328
|
-
top:
|
|
337
|
+
top: -50%;
|
|
329
338
|
right: 100%;
|
|
330
339
|
// Add in 0.1px to prevent rounding errors where the content is
|
|
331
340
|
// moved farther than the caret
|
|
332
|
-
transform: translate(
|
|
341
|
+
transform: translate(
|
|
342
|
+
calc(-1 * $popover-offset),
|
|
343
|
+
calc(-1 * 0.5 * $popover-offset + 16px)
|
|
344
|
+
);
|
|
333
345
|
}
|
|
334
346
|
|
|
335
347
|
.#{$prefix}--popover--left-bottom .#{$prefix}--popover-content {
|
|
336
348
|
right: 100%;
|
|
337
|
-
bottom:
|
|
349
|
+
bottom: -50%;
|
|
338
350
|
// Add in 0.1px to prevent rounding errors where the content is
|
|
339
351
|
// moved farther than the caret
|
|
340
|
-
transform: translate(
|
|
352
|
+
transform: translate(
|
|
353
|
+
calc(-1 * $popover-offset),
|
|
354
|
+
calc(0.5 * $popover-offset - 16px)
|
|
355
|
+
);
|
|
341
356
|
}
|
|
342
357
|
|
|
343
358
|
// Popover hover area placement
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
/// @group progress-bar
|
|
18
18
|
@mixin progress-bar {
|
|
19
19
|
.#{$prefix}--progress-bar__label {
|
|
20
|
-
@include type-style('body-
|
|
20
|
+
@include type-style('body-compact-01');
|
|
21
21
|
|
|
22
22
|
display: block;
|
|
23
23
|
margin-bottom: $spacing-03;
|
|
@@ -31,6 +31,14 @@
|
|
|
31
31
|
background-color: $layer;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
.#{$prefix}--progress-bar--big .#{$prefix}--progress-bar__track {
|
|
35
|
+
height: rem(8px);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.#{$prefix}--progress-bar--small .#{$prefix}--progress-bar__track {
|
|
39
|
+
height: rem(4px);
|
|
40
|
+
}
|
|
41
|
+
|
|
34
42
|
.#{$prefix}--progress-bar__bar {
|
|
35
43
|
display: block;
|
|
36
44
|
width: 100%;
|
|
@@ -78,7 +78,7 @@ $progress-indicator-bar-width: 1px inset transparent !default;
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
.#{$prefix}--progress-label {
|
|
81
|
-
@include type-style('body-
|
|
81
|
+
@include type-style('body-compact-01');
|
|
82
82
|
|
|
83
83
|
overflow: hidden;
|
|
84
84
|
max-width: rem(88px);
|
|
@@ -113,8 +113,8 @@ $progress-indicator-bar-width: 1px inset transparent !default;
|
|
|
113
113
|
margin-right: 0.75rem;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
.#{$prefix}--progress-
|
|
117
|
-
|
|
116
|
+
.#{$prefix}--progress-step-button:not(.#{$prefix}--progress-step-button--unclickable)
|
|
117
|
+
.#{$prefix}--progress-label:active {
|
|
118
118
|
box-shadow: 0 rem(3px) 0 0 $background-brand;
|
|
119
119
|
color: $background-brand;
|
|
120
120
|
}
|
|
@@ -137,7 +137,7 @@ $progress-indicator-bar-width: 1px inset transparent !default;
|
|
|
137
137
|
|
|
138
138
|
//single line tooltip
|
|
139
139
|
.#{$prefix}--progress-step .#{$prefix}--tooltip {
|
|
140
|
-
@include type-style('body-
|
|
140
|
+
@include type-style('body-01');
|
|
141
141
|
|
|
142
142
|
display: block;
|
|
143
143
|
width: rem(125px);
|
|
@@ -153,7 +153,7 @@ $progress-indicator-bar-width: 1px inset transparent !default;
|
|
|
153
153
|
|
|
154
154
|
//multiline tooltip
|
|
155
155
|
.#{$prefix}--progress-step .#{$prefix}--tooltip_multi {
|
|
156
|
-
@include type-style('body-
|
|
156
|
+
@include type-style('body-01');
|
|
157
157
|
|
|
158
158
|
width: rem(150px);
|
|
159
159
|
height: auto;
|
|
@@ -225,12 +225,6 @@ $progress-indicator-bar-width: 1px inset transparent !default;
|
|
|
225
225
|
cursor: pointer;
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
.#{$prefix}--progress-step-button:not(.#{$prefix}--progress-step-button--unclickable)
|
|
229
|
-
.#{$prefix}--progress-label:active {
|
|
230
|
-
box-shadow: 0 rem(3px) 0 0 $interactive;
|
|
231
|
-
color: $interactive;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
228
|
//DISABLED STYLING
|
|
235
229
|
.#{$prefix}--progress-step--disabled {
|
|
236
230
|
cursor: not-allowed;
|
|
@@ -286,12 +280,17 @@ $progress-indicator-bar-width: 1px inset transparent !default;
|
|
|
286
280
|
flex-direction: column;
|
|
287
281
|
}
|
|
288
282
|
|
|
283
|
+
.#{$prefix}--progress--vertical,
|
|
284
|
+
.#{$prefix}--progress-text {
|
|
285
|
+
display: flex;
|
|
286
|
+
flex-direction: column;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
289
|
.#{$prefix}--progress--vertical .#{$prefix}--progress-step,
|
|
290
290
|
.#{$prefix}--progress--vertical .#{$prefix}--progress-step-button {
|
|
291
291
|
width: initial;
|
|
292
292
|
min-width: initial;
|
|
293
293
|
min-height: 3.625rem;
|
|
294
|
-
flex-wrap: wrap;
|
|
295
294
|
align-content: flex-start;
|
|
296
295
|
}
|
|
297
296
|
|
|
@@ -320,8 +319,7 @@ $progress-indicator-bar-width: 1px inset transparent !default;
|
|
|
320
319
|
.#{$prefix}--progress--vertical .#{$prefix}--progress-optional {
|
|
321
320
|
position: static;
|
|
322
321
|
width: 100%;
|
|
323
|
-
margin
|
|
324
|
-
margin-left: $spacing-07;
|
|
322
|
+
margin: auto 0;
|
|
325
323
|
}
|
|
326
324
|
|
|
327
325
|
.#{$prefix}--progress--vertical .#{$prefix}--progress-line {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
|
|
41
41
|
.#{$prefix}--search-input {
|
|
42
42
|
@include reset;
|
|
43
|
-
@include type.type-style('body-
|
|
43
|
+
@include type.type-style('body-compact-01');
|
|
44
44
|
@include focus-outline('reset');
|
|
45
45
|
|
|
46
46
|
width: 100%;
|
|
@@ -99,24 +99,21 @@
|
|
|
99
99
|
left: rem(8px);
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
//
|
|
103
|
-
|
|
104
|
-
.#{$prefix}--search--
|
|
105
|
-
.#{$prefix}--search--lg.#{$prefix}--search--expandable.#{$prefix}--search--expanded
|
|
102
|
+
// Medium styles
|
|
103
|
+
.#{$prefix}--search--md .#{$prefix}--search-input,
|
|
104
|
+
.#{$prefix}--search--md.#{$prefix}--search--expandable.#{$prefix}--search--expanded
|
|
106
105
|
.#{$prefix}--search-input {
|
|
107
106
|
height: rem(40px);
|
|
108
107
|
// 12px padding on either side of icon + 16px icon (40px)
|
|
109
108
|
padding: 0 $spacing-08;
|
|
110
109
|
}
|
|
111
|
-
|
|
112
|
-
// V11: change lg to md
|
|
113
|
-
.#{$prefix}--search--lg .#{$prefix}--search-magnifier-icon {
|
|
110
|
+
.#{$prefix}--search--md .#{$prefix}--search-magnifier-icon {
|
|
114
111
|
left: rem(12px);
|
|
115
112
|
}
|
|
116
113
|
|
|
117
|
-
//
|
|
118
|
-
.#{$prefix}--search--
|
|
119
|
-
.#{$prefix}--search--
|
|
114
|
+
// Large styles
|
|
115
|
+
.#{$prefix}--search--lg .#{$prefix}--search-input,
|
|
116
|
+
.#{$prefix}--search--lg.#{$prefix}--search--expandable.#{$prefix}--search--expanded
|
|
120
117
|
.#{$prefix}--search-input {
|
|
121
118
|
height: rem(48px);
|
|
122
119
|
// 16px padding on either side of icon + 16px icon (48px)
|
|
@@ -245,6 +242,7 @@
|
|
|
245
242
|
@include focus-outline('outline');
|
|
246
243
|
}
|
|
247
244
|
|
|
245
|
+
// Small
|
|
248
246
|
.#{$prefix}--search--sm {
|
|
249
247
|
.#{$prefix}--search-close,
|
|
250
248
|
~ .#{$prefix}--search-button,
|
|
@@ -259,8 +257,8 @@
|
|
|
259
257
|
}
|
|
260
258
|
}
|
|
261
259
|
|
|
262
|
-
//
|
|
263
|
-
.#{$prefix}--search--
|
|
260
|
+
// Medium
|
|
261
|
+
.#{$prefix}--search--md {
|
|
264
262
|
.#{$prefix}--search-close,
|
|
265
263
|
~ .#{$prefix}--search-button,
|
|
266
264
|
&.#{$prefix}--search--expandable,
|
|
@@ -274,8 +272,8 @@
|
|
|
274
272
|
}
|
|
275
273
|
}
|
|
276
274
|
|
|
277
|
-
//
|
|
278
|
-
.#{$prefix}--search--
|
|
275
|
+
// Large
|
|
276
|
+
.#{$prefix}--search--lg {
|
|
279
277
|
.#{$prefix}--search-close,
|
|
280
278
|
~ .#{$prefix}--search-button,
|
|
281
279
|
&.#{$prefix}--search--expandable,
|
|
@@ -294,9 +292,8 @@
|
|
|
294
292
|
visibility: hidden;
|
|
295
293
|
}
|
|
296
294
|
|
|
297
|
-
// V11: change xl to lg, lg to md
|
|
298
|
-
.#{$prefix}--search--xl.#{$prefix}--skeleton .#{$prefix}--search-input,
|
|
299
295
|
.#{$prefix}--search--lg.#{$prefix}--skeleton .#{$prefix}--search-input,
|
|
296
|
+
.#{$prefix}--search--md.#{$prefix}--skeleton .#{$prefix}--search-input,
|
|
300
297
|
.#{$prefix}--search--sm.#{$prefix}--skeleton .#{$prefix}--search-input {
|
|
301
298
|
@include skeleton;
|
|
302
299
|
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.#{$prefix}--select-input {
|
|
43
|
-
@include type-style('body-
|
|
43
|
+
@include type-style('body-compact-01');
|
|
44
44
|
@include focus-outline('reset');
|
|
45
45
|
|
|
46
46
|
display: block;
|
|
@@ -175,10 +175,15 @@
|
|
|
175
175
|
opacity: 1;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
.#{$prefix}--select-optgroup,
|
|
178
|
+
optgroup.#{$prefix}--select-optgroup,
|
|
179
179
|
.#{$prefix}--select-option {
|
|
180
180
|
// For the options to show in IE11
|
|
181
|
+
background-color: $background-hover;
|
|
181
182
|
color: $text-primary;
|
|
183
|
+
|
|
184
|
+
&:disabled {
|
|
185
|
+
color: $text-disabled;
|
|
186
|
+
}
|
|
182
187
|
}
|
|
183
188
|
|
|
184
189
|
.#{$prefix}--select--inline {
|
|
@@ -214,6 +219,7 @@
|
|
|
214
219
|
color: $text-primary;
|
|
215
220
|
}
|
|
216
221
|
|
|
222
|
+
.#{$prefix}--select--inline .#{$prefix}--select-input:focus,
|
|
217
223
|
.#{$prefix}--select--inline .#{$prefix}--select-input:focus option,
|
|
218
224
|
.#{$prefix}--select--inline .#{$prefix}--select-input:focus optgroup {
|
|
219
225
|
background-color: $background;
|
|
@@ -38,7 +38,9 @@
|
|
|
38
38
|
width: 100%;
|
|
39
39
|
min-width: rem(200px);
|
|
40
40
|
max-width: rem(640px);
|
|
41
|
+
padding: $spacing-05 0;
|
|
41
42
|
margin: 0 $spacing-05;
|
|
43
|
+
cursor: pointer;
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
.#{$prefix}--slider__range-label {
|
|
@@ -57,7 +59,6 @@
|
|
|
57
59
|
width: 100%;
|
|
58
60
|
height: rem(2px);
|
|
59
61
|
background: $border-subtle;
|
|
60
|
-
cursor: pointer;
|
|
61
62
|
transform: translate(0%, -50%);
|
|
62
63
|
}
|
|
63
64
|
|
|
@@ -87,13 +88,11 @@
|
|
|
87
88
|
.#{$prefix}--slider__thumb {
|
|
88
89
|
position: absolute;
|
|
89
90
|
z-index: 3;
|
|
90
|
-
top: 0;
|
|
91
91
|
width: rem(14px);
|
|
92
92
|
height: 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;
|
|
96
|
-
cursor: pointer;
|
|
97
96
|
outline: none;
|
|
98
97
|
transform: translate(-50%, -50%);
|
|
99
98
|
transition: transform $duration-fast-02 motion(standard, productive),
|
|
@@ -150,6 +149,10 @@
|
|
|
150
149
|
color: $text-disabled;
|
|
151
150
|
}
|
|
152
151
|
|
|
152
|
+
.#{$prefix}--slider--disabled.#{$prefix}--slider {
|
|
153
|
+
cursor: not-allowed;
|
|
154
|
+
}
|
|
155
|
+
|
|
153
156
|
.#{$prefix}--slider--disabled .#{$prefix}--slider__thumb {
|
|
154
157
|
background-color: $border-subtle;
|
|
155
158
|
|
|
@@ -177,7 +180,6 @@
|
|
|
177
180
|
.#{$prefix}--slider__thumb:focus
|
|
178
181
|
~ .#{$prefix}--slider__filled-track {
|
|
179
182
|
background-color: $border-subtle;
|
|
180
|
-
cursor: not-allowed;
|
|
181
183
|
}
|
|
182
184
|
|
|
183
185
|
.#{$prefix}--slider--disabled
|
|
@@ -44,7 +44,6 @@
|
|
|
44
44
|
border-collapse: collapse;
|
|
45
45
|
border-spacing: 0;
|
|
46
46
|
overflow-x: auto;
|
|
47
|
-
overflow-y: hidden;
|
|
48
47
|
|
|
49
48
|
// Condensed list
|
|
50
49
|
&.#{$prefix}--structured-list--condensed .#{$prefix}--structured-list-td,
|
|
@@ -134,7 +133,7 @@
|
|
|
134
133
|
.#{$prefix}--structured-list-th {
|
|
135
134
|
@include reset;
|
|
136
135
|
@include padding-th;
|
|
137
|
-
@include type-style('
|
|
136
|
+
@include type-style('heading-compact-01');
|
|
138
137
|
|
|
139
138
|
display: table-cell;
|
|
140
139
|
height: rem(40px);
|
|
@@ -152,7 +151,7 @@
|
|
|
152
151
|
|
|
153
152
|
.#{$prefix}--structured-list-td {
|
|
154
153
|
@include reset;
|
|
155
|
-
@include type-style('body-
|
|
154
|
+
@include type-style('body-01');
|
|
156
155
|
@include padding-td;
|
|
157
156
|
|
|
158
157
|
position: relative;
|
|
@@ -38,7 +38,7 @@ $icon-tab-size: custom-property.get-var('icon-tab-size', rem(40px));
|
|
|
38
38
|
@mixin tabs {
|
|
39
39
|
.#{$prefix}--tabs {
|
|
40
40
|
@include reset;
|
|
41
|
-
@include type-style('body-
|
|
41
|
+
@include type-style('body-compact-01');
|
|
42
42
|
|
|
43
43
|
display: flex;
|
|
44
44
|
width: 100%;
|
|
@@ -215,7 +215,7 @@ $icon-tab-size: custom-property.get-var('icon-tab-size', rem(40px));
|
|
|
215
215
|
.#{$prefix}--tabs__nav-link {
|
|
216
216
|
@include button-reset.reset($width: false);
|
|
217
217
|
@include focus-outline('reset');
|
|
218
|
-
@include type-style('body-
|
|
218
|
+
@include type-style('body-compact-01');
|
|
219
219
|
|
|
220
220
|
@if not feature-flag-enabled('enable-v11-release') {
|
|
221
221
|
width: rem(160px);
|
|
@@ -298,7 +298,7 @@ $icon-tab-size: custom-property.get-var('icon-tab-size', rem(40px));
|
|
|
298
298
|
.#{$prefix}--tabs__nav-link:focus,
|
|
299
299
|
.#{$prefix}--tabs__nav-item--selected:active
|
|
300
300
|
.#{$prefix}--tabs__nav-link:active {
|
|
301
|
-
@include type-style('
|
|
301
|
+
@include type-style('heading-compact-01');
|
|
302
302
|
|
|
303
303
|
color: $text-primary;
|
|
304
304
|
}
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
@mixin text-area {
|
|
23
23
|
.#{$prefix}--text-area {
|
|
24
24
|
@include reset;
|
|
25
|
-
@include type-style('body-
|
|
25
|
+
@include type-style('body-01');
|
|
26
26
|
@include focus-outline('reset');
|
|
27
27
|
|
|
28
28
|
width: 100%;
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
|
|
48
48
|
.#{$prefix}--text-area::placeholder {
|
|
49
49
|
@include placeholder-colors;
|
|
50
|
-
@include type-style('body-
|
|
50
|
+
@include type-style('body-01');
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
// V11: Possibly deprecate
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
@mixin text-input {
|
|
33
33
|
.#{$prefix}--text-input {
|
|
34
34
|
@include reset;
|
|
35
|
-
@include type-style('body-
|
|
35
|
+
@include type-style('body-compact-01');
|
|
36
36
|
@include focus-outline('reset');
|
|
37
37
|
|
|
38
38
|
width: 100%;
|
|
@@ -96,15 +96,19 @@
|
|
|
96
96
|
width: 100%;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
.#{$prefix}--text-input__invalid-icon
|
|
99
|
+
.#{$prefix}--text-input__invalid-icon,
|
|
100
|
+
.#{$prefix}--text-input__readonly-icon {
|
|
100
101
|
position: absolute;
|
|
101
102
|
// top/transform used to center invalid icon in IE11
|
|
102
103
|
top: 50%;
|
|
103
104
|
right: $spacing-05;
|
|
104
|
-
fill: $support-error;
|
|
105
105
|
transform: translateY(-50%);
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
+
.#{$prefix}--text-input__invalid-icon {
|
|
109
|
+
fill: $support-error;
|
|
110
|
+
}
|
|
111
|
+
|
|
108
112
|
.#{$prefix}--text-input__invalid-icon--warning {
|
|
109
113
|
fill: $support-warning;
|
|
110
114
|
}
|
|
@@ -175,7 +179,8 @@
|
|
|
175
179
|
}
|
|
176
180
|
|
|
177
181
|
.#{$prefix}--text-input--invalid,
|
|
178
|
-
.#{$prefix}--text-input--warning
|
|
182
|
+
.#{$prefix}--text-input--warning,
|
|
183
|
+
.#{$prefix}--text-input-wrapper--readonly .#{$prefix}--text-input {
|
|
179
184
|
padding-right: $spacing-08;
|
|
180
185
|
}
|
|
181
186
|
|
|
@@ -381,6 +386,15 @@
|
|
|
381
386
|
flex-direction: column;
|
|
382
387
|
}
|
|
383
388
|
|
|
389
|
+
//-----------------------------
|
|
390
|
+
// Readonly
|
|
391
|
+
//-----------------------------
|
|
392
|
+
|
|
393
|
+
.#{$prefix}--form--fluid .#{$prefix}--text-input-wrapper--readonly,
|
|
394
|
+
.#{$prefix}--text-input-wrapper--readonly .#{$prefix}--text-input {
|
|
395
|
+
background: transparent;
|
|
396
|
+
}
|
|
397
|
+
|
|
384
398
|
// Windows HCM fix
|
|
385
399
|
.#{$prefix}--text-input--password__visibility,
|
|
386
400
|
// TODO: remove selector above
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
|
|
41
41
|
// V11: Possibly deprecate
|
|
42
42
|
.#{$prefix}--tile--light {
|
|
43
|
-
background-color: $layer
|
|
43
|
+
background-color: $layer;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.#{$prefix}--tile--clickable,
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
|
|
76
76
|
.#{$prefix}--tile--clickable {
|
|
77
77
|
@include reset;
|
|
78
|
-
@include type-style('body-
|
|
78
|
+
@include type-style('body-compact-01');
|
|
79
79
|
|
|
80
80
|
color: $text-primary;
|
|
81
81
|
text-decoration: none;
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
.#{$prefix}--toggle__text {
|
|
88
|
-
@include type-style('body-
|
|
88
|
+
@include type-style('body-01');
|
|
89
89
|
|
|
90
90
|
color: $text-primary;
|
|
91
91
|
}
|
|
@@ -232,7 +232,7 @@
|
|
|
232
232
|
|
|
233
233
|
.#{$prefix}--toggle__text--left,
|
|
234
234
|
.#{$prefix}--toggle__text--right {
|
|
235
|
-
@include type-style('body-
|
|
235
|
+
@include type-style('body-compact-01');
|
|
236
236
|
|
|
237
237
|
position: relative;
|
|
238
238
|
margin-left: $spacing-03;
|
|
@@ -456,7 +456,7 @@
|
|
|
456
456
|
|
|
457
457
|
.#{$prefix}--toggle__text--off,
|
|
458
458
|
.#{$prefix}--toggle__text--on {
|
|
459
|
-
@include type-style('body-
|
|
459
|
+
@include type-style('body-compact-01');
|
|
460
460
|
|
|
461
461
|
position: absolute;
|
|
462
462
|
// top offset needed to vertically center absolutely positioned flex child in IE11
|
|
@@ -30,7 +30,7 @@ $tooltip-padding-inline: custom-property.get-var(
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.#{$prefix}--tooltip-content {
|
|
33
|
-
@include type.type-style('body-
|
|
33
|
+
@include type.type-style('body-01');
|
|
34
34
|
|
|
35
35
|
max-width: convert.rem(288px);
|
|
36
36
|
padding: $tooltip-padding-block $tooltip-padding-inline;
|
|
@@ -60,7 +60,7 @@ $tooltip-padding-inline: custom-property.get-var(
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
.#{$prefix}--definition-tooltip {
|
|
63
|
-
@include type.type-style('body-
|
|
63
|
+
@include type.type-style('body-01');
|
|
64
64
|
|
|
65
65
|
max-width: convert.rem(176px);
|
|
66
66
|
padding: convert.rem(8px) convert.rem(16px);
|
|
@@ -85,6 +85,6 @@ $tooltip-padding-inline: custom-property.get-var(
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
.#{$prefix}--icon-tooltip .#{$prefix}--tooltip-content {
|
|
88
|
-
@include type.type-style('body-
|
|
88
|
+
@include type.type-style('body-compact-01');
|
|
89
89
|
}
|
|
90
90
|
}
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
display: inline-flex;
|
|
40
40
|
width: mini-units(6);
|
|
41
41
|
height: mini-units(6);
|
|
42
|
-
border: rem(
|
|
42
|
+
border: rem(1px) solid transparent;
|
|
43
43
|
transition: background-color $duration-fast-02,
|
|
44
44
|
border-color $duration-fast-02;
|
|
45
45
|
}
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
// Header - Name
|
|
125
125
|
//--------------------------------------------------------------------------
|
|
126
126
|
a.#{$prefix}--header__name {
|
|
127
|
-
@include type-style('body-
|
|
127
|
+
@include type-style('body-compact-01');
|
|
128
128
|
|
|
129
129
|
display: flex;
|
|
130
130
|
height: 100%;
|
|
@@ -324,7 +324,7 @@
|
|
|
324
324
|
width: mini-units(25);
|
|
325
325
|
flex-direction: column;
|
|
326
326
|
background-color: $layer;
|
|
327
|
-
box-shadow: 0 4px 8px 0
|
|
327
|
+
box-shadow: 0 4px 8px 0 rgb(0 0 0 / 50%);
|
|
328
328
|
transform: translateY(100%);
|
|
329
329
|
}
|
|
330
330
|
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
height: 0;
|
|
82
82
|
background-color: transparent;
|
|
83
83
|
opacity: 0;
|
|
84
|
-
transition: opacity $transition
|
|
85
|
-
background-color $transition
|
|
84
|
+
transition: opacity $transition-expansion $standard-easing,
|
|
85
|
+
background-color $transition-expansion $standard-easing;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
.#{$prefix}--side-nav__overlay-active {
|
|
@@ -91,8 +91,8 @@
|
|
|
91
91
|
height: 100vh;
|
|
92
92
|
background-color: $overlay;
|
|
93
93
|
opacity: 1;
|
|
94
|
-
transition: opacity $transition
|
|
95
|
-
background-color $transition
|
|
94
|
+
transition: opacity $transition-expansion $standard-easing,
|
|
95
|
+
background-color $transition-expansion $standard-easing;
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
//----------------------------------------------------------------------------
|
|
193
193
|
.#{$prefix}--side-nav__submenu {
|
|
194
194
|
@include button-reset.reset($width: true);
|
|
195
|
-
@include type-style('
|
|
195
|
+
@include type-style('heading-compact-01');
|
|
196
196
|
@include focus-outline('reset');
|
|
197
197
|
|
|
198
198
|
display: flex;
|
|
@@ -254,6 +254,7 @@
|
|
|
254
254
|
position: relative;
|
|
255
255
|
background-color: $background-selected;
|
|
256
256
|
color: $text-primary;
|
|
257
|
+
|
|
257
258
|
&::before {
|
|
258
259
|
position: absolute;
|
|
259
260
|
top: 0;
|
|
@@ -317,7 +318,7 @@
|
|
|
317
318
|
.#{$prefix}--header__menu-title[aria-expanded='true']
|
|
318
319
|
+ .#{$prefix}--header__menu {
|
|
319
320
|
@include focus-outline('reset');
|
|
320
|
-
@include type-style('
|
|
321
|
+
@include type-style('heading-compact-01');
|
|
321
322
|
|
|
322
323
|
position: relative;
|
|
323
324
|
display: flex;
|