@carbon/styles 0.13.0 → 0.15.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/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/_button.scss +4 -3
- package/scss/components/button/_mixins.scss +2 -1
- package/scss/components/button/_tokens.scss +2 -2
- package/scss/components/checkbox/_checkbox.scss +8 -1
- package/scss/components/code-snippet/_code-snippet.scss +3 -3
- package/scss/components/content-switcher/_content-switcher.scss +33 -2
- 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 +99 -29
- 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 -19
- 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 -29
- package/scss/components/loading/_loading.scss +3 -0
- package/scss/components/menu/_menu.scss +1 -1
- package/scss/components/modal/_modal.scss +90 -98
- 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 +4 -1
- package/scss/components/pagination/_index.scss +3 -0
- package/scss/components/pagination/_pagination.scss +13 -6
- 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/radio-button/_radio-button.scss +3 -2
- 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 +8 -2
- package/scss/components/text-input/_text-input.scss +1 -1
- 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
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright IBM Corp. 2016, 2020
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
// LICENSE file in the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
@use '../../breakpoint' as *;
|
|
9
|
+
@use '../../config' as *;
|
|
10
|
+
@use '../../motion' as *;
|
|
11
|
+
@use '../../spacing' as *;
|
|
12
|
+
@use '../../theme' as *;
|
|
13
|
+
@use '../../type' as *;
|
|
14
|
+
@use '../../utilities/component-reset';
|
|
15
|
+
@use '../../utilities/convert' as *;
|
|
16
|
+
@use '../../utilities/focus-outline' as *;
|
|
17
|
+
@use '../select';
|
|
18
|
+
|
|
19
|
+
/// Unstable pagination styles
|
|
20
|
+
/// @access private
|
|
21
|
+
/// @group pagination
|
|
22
|
+
@mixin unstable_pagination {
|
|
23
|
+
.#{$prefix}--unstable-pagination {
|
|
24
|
+
@include component-reset.reset;
|
|
25
|
+
@include type-style('body-compact-01');
|
|
26
|
+
|
|
27
|
+
display: flex;
|
|
28
|
+
width: 100%;
|
|
29
|
+
min-height: rem(40px);
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: space-between;
|
|
32
|
+
border-top: 1px solid $border-subtle;
|
|
33
|
+
border-bottom: 1px solid transparent;
|
|
34
|
+
background-color: $layer;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.#{$prefix}--unstable-pagination__text {
|
|
38
|
+
@include breakpoint('md') {
|
|
39
|
+
display: inline-block;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
margin: 0 $spacing-05;
|
|
43
|
+
color: $text-secondary;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.#{$prefix}--unstable-pagination__left,
|
|
47
|
+
.#{$prefix}--unstable-pagination__right {
|
|
48
|
+
display: flex;
|
|
49
|
+
height: 100%;
|
|
50
|
+
align-items: center;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.#{$prefix}--unstable-pagination__left {
|
|
54
|
+
padding: 0 $spacing-05 0 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.#{$prefix}--unstable-pagination__left > .#{$prefix}--form-item,
|
|
58
|
+
.#{$prefix}--unstable-pagination__right > .#{$prefix}--form-item {
|
|
59
|
+
height: 100%;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.#{$prefix}--unstable-pagination__left
|
|
63
|
+
.#{$prefix}--unstable-pagination__text {
|
|
64
|
+
margin-right: rem(1px);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.#{$prefix}--unstable-pagination__right
|
|
68
|
+
.#{$prefix}--unstable-pagination__text {
|
|
69
|
+
margin-right: $spacing-05;
|
|
70
|
+
margin-left: rem(1px);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.#{$prefix}--unstable-pagination__button {
|
|
74
|
+
@include component-reset.reset;
|
|
75
|
+
|
|
76
|
+
display: flex;
|
|
77
|
+
width: rem(40px);
|
|
78
|
+
height: rem(40px);
|
|
79
|
+
min-height: rem(32px);
|
|
80
|
+
align-items: center;
|
|
81
|
+
justify-content: center;
|
|
82
|
+
border: none;
|
|
83
|
+
border-left: 1px solid $border-subtle;
|
|
84
|
+
margin: 0;
|
|
85
|
+
background: none;
|
|
86
|
+
color: $icon-primary;
|
|
87
|
+
cursor: pointer;
|
|
88
|
+
fill: $icon-primary;
|
|
89
|
+
transition: outline $duration-fast-02 motion(standard, productive),
|
|
90
|
+
background-color $duration-fast-02 motion(standard, productive);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// Unset height/width set by icon-only button:
|
|
94
|
+
.#{$prefix}--unstable-pagination__button .#{$prefix}--btn__icon {
|
|
95
|
+
width: initial;
|
|
96
|
+
height: initial;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.#{$prefix}--unstable-pagination__button.#{$prefix}--btn--icon-only.#{$prefix}--tooltip__trigger:focus {
|
|
100
|
+
@include focus-outline('outline');
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.#{$prefix}--unstable-pagination__button:hover {
|
|
104
|
+
background: $layer-hover;
|
|
105
|
+
color: $icon-primary;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.#{$prefix}--unstable-pagination__button--no-index {
|
|
109
|
+
cursor: not-allowed;
|
|
110
|
+
fill: $icon-disabled;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.#{$prefix}--unstable-pagination__button.#{$prefix}--btn:disabled {
|
|
114
|
+
border-color: $border-subtle;
|
|
115
|
+
background: transparent;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.#{$prefix}--unstable-pagination__button:disabled:hover,
|
|
119
|
+
.#{$prefix}--unstable-pagination__button--no-index:hover {
|
|
120
|
+
background: transparent;
|
|
121
|
+
cursor: not-allowed;
|
|
122
|
+
fill: $icon-disabled;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.#{$prefix}--unstable-pagination__page-selector,
|
|
126
|
+
.#{$prefix}--unstable-pagination__page-sizer {
|
|
127
|
+
height: 100%;
|
|
128
|
+
align-items: center;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.#{$prefix}--unstable-pagination__page-selector
|
|
132
|
+
.#{$prefix}--select-input--inline__wrapper,
|
|
133
|
+
.#{$prefix}--unstable-pagination__page-sizer
|
|
134
|
+
.#{$prefix}--select-input--inline__wrapper {
|
|
135
|
+
display: flex;
|
|
136
|
+
height: 100%;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.#{$prefix}--unstable-pagination__page-selector .#{$prefix}--select-input,
|
|
140
|
+
.#{$prefix}--unstable-pagination__page-sizer .#{$prefix}--select-input {
|
|
141
|
+
@include type-style('body-short-01');
|
|
142
|
+
|
|
143
|
+
width: auto;
|
|
144
|
+
min-width: auto;
|
|
145
|
+
height: 100%;
|
|
146
|
+
padding: 0 2.25rem 0 $spacing-05;
|
|
147
|
+
line-height: rem(40px);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.#{$prefix}--unstable-pagination__page-selector
|
|
151
|
+
.#{$prefix}--select-input:hover,
|
|
152
|
+
.#{$prefix}--unstable-pagination__page-sizer .#{$prefix}--select-input:hover {
|
|
153
|
+
background: $layer-hover;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.#{$prefix}--unstable-pagination__page-selector .#{$prefix}--select__arrow,
|
|
157
|
+
.#{$prefix}--unstable-pagination__page-sizer .#{$prefix}--select__arrow {
|
|
158
|
+
top: 50%;
|
|
159
|
+
transform: translateY(-50%);
|
|
160
|
+
|
|
161
|
+
@include breakpoint('md') {
|
|
162
|
+
right: $spacing-05;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.#{$prefix}--unstable-pagination__page-selector {
|
|
167
|
+
border-left: 1px solid $border-subtle;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.#{$prefix}--unstable-pagination__page-sizer {
|
|
171
|
+
border-right: 1px solid $border-subtle;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
) {
|
|
47
47
|
.#{$prefix}--pagination-nav {
|
|
48
48
|
@include reset;
|
|
49
|
-
@include type-style('body-
|
|
49
|
+
@include type-style('body-compact-01');
|
|
50
50
|
|
|
51
51
|
line-height: 0;
|
|
52
52
|
}
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
.#{$prefix}--pagination-nav__page {
|
|
73
|
-
@include type-style('body-
|
|
73
|
+
@include type-style('body-compact-01');
|
|
74
74
|
@include button-reset.reset($width: false);
|
|
75
75
|
|
|
76
76
|
position: relative;
|
|
@@ -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 {
|
|
@@ -34,6 +34,7 @@ $radio-border-width: 1px !default;
|
|
|
34
34
|
.#{$prefix}--radio-button-group {
|
|
35
35
|
@include reset;
|
|
36
36
|
|
|
37
|
+
position: relative;
|
|
37
38
|
display: flex;
|
|
38
39
|
align-items: center;
|
|
39
40
|
}
|
|
@@ -54,7 +55,7 @@ $radio-border-width: 1px !default;
|
|
|
54
55
|
|
|
55
56
|
.#{$prefix}--radio-button__label {
|
|
56
57
|
margin-right: 0;
|
|
57
|
-
line-height:
|
|
58
|
+
line-height: 1.25;
|
|
58
59
|
}
|
|
59
60
|
|
|
60
61
|
.#{$prefix}--radio-button__label:not(:last-of-type) {
|
|
@@ -69,7 +70,7 @@ $radio-border-width: 1px !default;
|
|
|
69
70
|
}
|
|
70
71
|
|
|
71
72
|
.#{$prefix}--radio-button__label {
|
|
72
|
-
@include type.type-style('body-
|
|
73
|
+
@include type.type-style('body-compact-01');
|
|
73
74
|
|
|
74
75
|
display: flex;
|
|
75
76
|
align-items: center;
|
|
@@ -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
|
|
@@ -102,4 +102,10 @@
|
|
|
102
102
|
color: transparent;
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
+
|
|
106
|
+
.#{$prefix}--text-area__label-wrapper {
|
|
107
|
+
display: flex;
|
|
108
|
+
width: 100%;
|
|
109
|
+
justify-content: space-between;
|
|
110
|
+
}
|
|
105
111
|
}
|
|
@@ -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;
|