@carbon/styles 0.14.0 → 0.15.1
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/_motion.scss +7 -36
- package/scss/_reset.scss +1 -1
- package/scss/components/accordion/_accordion.scss +4 -2
- package/scss/components/aspect-ratio/_aspect-ratio.scss +5 -4
- 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 +3 -3
- 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 +108 -55
- 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
|
@@ -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,31 +38,27 @@ $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
|
+
position: relative;
|
|
43
44
|
display: flex;
|
|
44
45
|
width: 100%;
|
|
45
46
|
height: auto;
|
|
46
47
|
min-height: rem(40px);
|
|
48
|
+
max-height: 4rem;
|
|
47
49
|
color: $text-primary;
|
|
48
50
|
|
|
49
51
|
&.#{$prefix}--tabs--contained {
|
|
50
52
|
min-height: rem(48px);
|
|
51
53
|
}
|
|
52
54
|
|
|
53
|
-
.#{$prefix}--
|
|
55
|
+
.#{$prefix}--tab--list {
|
|
54
56
|
display: flex;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
flex-direction: row;
|
|
59
|
-
padding: 0;
|
|
60
|
-
margin: 0;
|
|
61
|
-
list-style: none;
|
|
62
|
-
outline: 0;
|
|
63
|
-
// hide scroll bars
|
|
57
|
+
width: 100%;
|
|
58
|
+
overflow-x: auto;
|
|
59
|
+
scroll-behavior: smooth;
|
|
64
60
|
scrollbar-width: none;
|
|
65
|
-
|
|
61
|
+
will-change: scroll-position;
|
|
66
62
|
|
|
67
63
|
&::-webkit-scrollbar {
|
|
68
64
|
display: none;
|
|
@@ -72,37 +68,121 @@ $icon-tab-size: custom-property.get-var('icon-tab-size', rem(40px));
|
|
|
72
68
|
//-----------------------------
|
|
73
69
|
// Overflow Nav Buttons
|
|
74
70
|
//-----------------------------
|
|
75
|
-
.#{$prefix}--
|
|
76
|
-
|
|
71
|
+
.#{$prefix}--tab--overflow-nav-button {
|
|
72
|
+
@include button-reset.reset;
|
|
73
|
+
|
|
74
|
+
display: flex;
|
|
75
|
+
width: $spacing-08;
|
|
76
|
+
flex-shrink: 0;
|
|
77
|
+
align-items: center;
|
|
78
|
+
justify-content: center;
|
|
79
|
+
background-color: $background;
|
|
80
|
+
|
|
81
|
+
&:focus {
|
|
82
|
+
@include focus-outline('outline');
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.#{$prefix}--tab--overflow-nav-button--hidden {
|
|
87
|
+
display: none;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&.#{$prefix}--tabs--contained .#{$prefix}--tab--overflow-nav-button {
|
|
91
|
+
width: $spacing-09;
|
|
92
|
+
margin: 0;
|
|
93
|
+
background-color: $layer-accent;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.#{$prefix}--tab--overflow-nav-button svg {
|
|
97
|
+
fill: $icon-primary;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.#{$prefix}--tab--overflow-nav-button--next {
|
|
101
|
+
position: absolute;
|
|
102
|
+
top: 0;
|
|
103
|
+
right: 0;
|
|
104
|
+
bottom: 0;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.#{$prefix}--tab--overflow-nav-button--next::before {
|
|
108
|
+
position: absolute;
|
|
77
109
|
z-index: 1;
|
|
110
|
+
left: -$spacing-03;
|
|
78
111
|
width: $spacing-03;
|
|
79
|
-
|
|
112
|
+
height: 100%;
|
|
113
|
+
background: linear-gradient(
|
|
114
|
+
to right,
|
|
115
|
+
rgba(255, 255, 255, 0),
|
|
116
|
+
$background
|
|
117
|
+
);
|
|
118
|
+
content: '';
|
|
80
119
|
}
|
|
81
120
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
background-image: linear-gradient(
|
|
121
|
+
&.#{$prefix}--tabs--contained
|
|
122
|
+
.#{$prefix}--tab--overflow-nav-button--next::before {
|
|
123
|
+
background-image: linear-gradient(
|
|
124
|
+
to right,
|
|
125
|
+
rgba(255, 255, 255, 0),
|
|
126
|
+
$layer-accent
|
|
127
|
+
);
|
|
85
128
|
}
|
|
86
129
|
|
|
87
|
-
.#{$prefix}--
|
|
88
|
-
|
|
89
|
-
|
|
130
|
+
.#{$prefix}--tab--overflow-nav-button--previous {
|
|
131
|
+
position: absolute;
|
|
132
|
+
top: 0;
|
|
133
|
+
bottom: 0;
|
|
134
|
+
left: 0;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.#{$prefix}--tab--overflow-nav-button--previous::before {
|
|
138
|
+
position: absolute;
|
|
139
|
+
z-index: 1;
|
|
140
|
+
right: -$spacing-03;
|
|
141
|
+
width: $spacing-03;
|
|
142
|
+
height: 100%;
|
|
143
|
+
background: linear-gradient(to left, rgba(255, 255, 255, 0), $background);
|
|
144
|
+
content: '';
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&.#{$prefix}--tabs--contained
|
|
148
|
+
.#{$prefix}--tab--overflow-nav-button--previous::before {
|
|
149
|
+
background-image: linear-gradient(
|
|
150
|
+
to left,
|
|
151
|
+
rgba(255, 255, 255, 0),
|
|
152
|
+
$layer-accent
|
|
153
|
+
);
|
|
90
154
|
}
|
|
91
155
|
|
|
92
156
|
.#{$prefix}--tabs--light .#{$prefix}--tabs__overflow-indicator--left {
|
|
93
|
-
background-image: linear-gradient(
|
|
157
|
+
background-image: linear-gradient(
|
|
158
|
+
to left,
|
|
159
|
+
rgba(255, 255, 255, 0),
|
|
160
|
+
$layer
|
|
161
|
+
);
|
|
94
162
|
}
|
|
95
163
|
|
|
96
164
|
.#{$prefix}--tabs--light .#{$prefix}--tabs__overflow-indicator--right {
|
|
97
|
-
background-image: linear-gradient(
|
|
165
|
+
background-image: linear-gradient(
|
|
166
|
+
to right,
|
|
167
|
+
rgba(255, 255, 255, 0),
|
|
168
|
+
$layer
|
|
169
|
+
);
|
|
98
170
|
}
|
|
99
171
|
|
|
100
172
|
&.#{$prefix}--tabs--contained .#{$prefix}--tabs__overflow-indicator--left {
|
|
101
|
-
background-image: linear-gradient(
|
|
173
|
+
background-image: linear-gradient(
|
|
174
|
+
to left,
|
|
175
|
+
rgba(255, 255, 255, 0),
|
|
176
|
+
$layer-accent
|
|
177
|
+
);
|
|
102
178
|
}
|
|
103
179
|
|
|
104
180
|
&.#{$prefix}--tabs--contained .#{$prefix}--tabs__overflow-indicator--right {
|
|
105
|
-
background-image: linear-gradient(
|
|
181
|
+
background-image: linear-gradient(
|
|
182
|
+
to right,
|
|
183
|
+
rgba(255, 255, 255, 0),
|
|
184
|
+
$layer-accent
|
|
185
|
+
);
|
|
106
186
|
}
|
|
107
187
|
|
|
108
188
|
// Safari-only media query
|
|
@@ -146,34 +226,6 @@ $icon-tab-size: custom-property.get-var('icon-tab-size', rem(40px));
|
|
|
146
226
|
}
|
|
147
227
|
}
|
|
148
228
|
|
|
149
|
-
.#{$prefix}--tab--overflow-nav-button {
|
|
150
|
-
@include button-reset.reset;
|
|
151
|
-
|
|
152
|
-
display: flex;
|
|
153
|
-
width: $spacing-08;
|
|
154
|
-
flex-shrink: 0;
|
|
155
|
-
align-items: center;
|
|
156
|
-
justify-content: center;
|
|
157
|
-
|
|
158
|
-
&:focus {
|
|
159
|
-
@include focus-outline('outline');
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.#{$prefix}--tab--overflow-nav-button--hidden {
|
|
164
|
-
display: none;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
&.#{$prefix}--tabs--contained .#{$prefix}--tab--overflow-nav-button {
|
|
168
|
-
width: $spacing-09;
|
|
169
|
-
margin: 0;
|
|
170
|
-
background-color: $layer-accent;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.#{$prefix}--tab--overflow-nav-button svg {
|
|
174
|
-
fill: $icon-primary;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
229
|
//-----------------------------
|
|
178
230
|
// Item
|
|
179
231
|
//-----------------------------
|
|
@@ -181,6 +233,7 @@ $icon-tab-size: custom-property.get-var('icon-tab-size', rem(40px));
|
|
|
181
233
|
@include reset;
|
|
182
234
|
|
|
183
235
|
display: flex;
|
|
236
|
+
flex: 1 0 auto;
|
|
184
237
|
padding: 0;
|
|
185
238
|
cursor: pointer;
|
|
186
239
|
transition: background-color $duration-fast-01
|
|
@@ -215,7 +268,7 @@ $icon-tab-size: custom-property.get-var('icon-tab-size', rem(40px));
|
|
|
215
268
|
.#{$prefix}--tabs__nav-link {
|
|
216
269
|
@include button-reset.reset($width: false);
|
|
217
270
|
@include focus-outline('reset');
|
|
218
|
-
@include type-style('body-
|
|
271
|
+
@include type-style('body-compact-01');
|
|
219
272
|
|
|
220
273
|
@if not feature-flag-enabled('enable-v11-release') {
|
|
221
274
|
width: rem(160px);
|
|
@@ -298,7 +351,7 @@ $icon-tab-size: custom-property.get-var('icon-tab-size', rem(40px));
|
|
|
298
351
|
.#{$prefix}--tabs__nav-link:focus,
|
|
299
352
|
.#{$prefix}--tabs__nav-item--selected:active
|
|
300
353
|
.#{$prefix}--tabs__nav-link:active {
|
|
301
|
-
@include type-style('
|
|
354
|
+
@include type-style('heading-compact-01');
|
|
302
355
|
|
|
303
356
|
color: $text-primary;
|
|
304
357
|
}
|
|
@@ -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;
|