@carbon/styles 0.12.0 → 0.14.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/_type.scss +1 -0
- package/scss/components/_index.scss +2 -0
- package/scss/components/accordion/_accordion.scss +7 -3
- package/scss/components/aspect-ratio/_aspect-ratio.scss +72 -0
- package/scss/components/aspect-ratio/_index.scss +11 -0
- package/scss/components/button/_button.scss +4 -3
- package/scss/components/button/_mixins.scss +7 -3
- package/scss/components/button/_tokens.scss +16 -16
- package/scss/components/checkbox/_checkbox.scss +7 -0
- package/scss/components/code-snippet/_code-snippet.scss +2 -2
- package/scss/components/content-switcher/_content-switcher.scss +28 -1
- package/scss/components/data-table/action/_data-table-action.scss +99 -25
- package/scss/components/date-picker/_date-picker.scss +1 -1
- package/scss/components/date-picker/_flatpickr.scss +1 -0
- package/scss/components/dropdown/_dropdown.scss +0 -16
- package/scss/components/link/_link.scss +15 -2
- package/scss/components/list-box/_list-box.scss +11 -27
- package/scss/components/modal/_modal.scss +91 -102
- package/scss/components/notification/_inline-notification.scss +3 -0
- package/scss/components/notification/_toast-notification.scss +3 -0
- package/scss/components/number-input/_number-input.scss +1 -1
- package/scss/components/pagination/_pagination.scss +56 -7
- package/scss/components/radio-button/_radio-button.scss +3 -2
- package/scss/components/select/_select.scss +7 -2
- package/scss/components/slider/_slider.scss +1 -1
- package/scss/components/tag/_tag.scss +1 -1
- package/scss/components/text-area/_text-area.scss +7 -1
- package/scss/components/text-input/_text-input.scss +1 -1
- package/scss/components/tile/_tile.scss +1 -1
- package/scss/components/toggle/_toggle.scss +2 -2
- package/scss/components/toggletip/_index.scss +11 -0
- package/scss/components/toggletip/_toggletip.scss +81 -0
- package/scss/components/tooltip/_index.scss +1 -0
- package/scss/components/tooltip/_tooltip.scss +30 -0
- package/scss/components/ui-shell/header/_header.scss +2 -0
|
@@ -11,8 +11,19 @@
|
|
|
11
11
|
@use '../../theme' as *;
|
|
12
12
|
@use '../../type';
|
|
13
13
|
@use '../../utilities/component-reset';
|
|
14
|
+
@use '../../utilities/custom-property';
|
|
14
15
|
@use '../../utilities/focus-outline' as *;
|
|
15
16
|
|
|
17
|
+
$link-text-color: custom-property.get-var('link-text-color', $link-primary);
|
|
18
|
+
$link-hover-text-color: custom-property.get-var(
|
|
19
|
+
'link-hover-text-color',
|
|
20
|
+
$link-primary-hover
|
|
21
|
+
);
|
|
22
|
+
$link-focus-text-color: custom-property.get-var(
|
|
23
|
+
'link-focus-text-color',
|
|
24
|
+
$focus
|
|
25
|
+
);
|
|
26
|
+
|
|
16
27
|
/// Link styles
|
|
17
28
|
/// @access public
|
|
18
29
|
/// @group link
|
|
@@ -22,13 +33,13 @@
|
|
|
22
33
|
@include type.type-style('body-short-01');
|
|
23
34
|
|
|
24
35
|
display: inline-flex;
|
|
25
|
-
color: $link-
|
|
36
|
+
color: $link-text-color;
|
|
26
37
|
outline: none;
|
|
27
38
|
text-decoration: none;
|
|
28
39
|
transition: color $duration-fast-01 motion(standard, productive);
|
|
29
40
|
|
|
30
41
|
&:hover {
|
|
31
|
-
color: $link-
|
|
42
|
+
color: $link-hover-text-color;
|
|
32
43
|
text-decoration: underline;
|
|
33
44
|
}
|
|
34
45
|
|
|
@@ -41,6 +52,8 @@
|
|
|
41
52
|
|
|
42
53
|
&:focus {
|
|
43
54
|
@include focus-outline;
|
|
55
|
+
|
|
56
|
+
outline-color: $link-focus-text-color;
|
|
44
57
|
}
|
|
45
58
|
|
|
46
59
|
&:visited {
|
|
@@ -92,8 +92,6 @@ $list-box-menu-width: rem(300px);
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
// TODO V11: Remove xl selector
|
|
96
|
-
.#{$prefix}--list-box--xl,
|
|
97
95
|
.#{$prefix}--list-box--lg {
|
|
98
96
|
height: rem(48px);
|
|
99
97
|
max-height: rem(48px);
|
|
@@ -114,7 +112,7 @@ $list-box-menu-width: rem(300px);
|
|
|
114
112
|
|
|
115
113
|
// V11: Possibly deprecate
|
|
116
114
|
.#{$prefix}--list-box--expanded:hover.#{$prefix}--list-box--light:hover {
|
|
117
|
-
background-color: $field
|
|
115
|
+
background-color: $field;
|
|
118
116
|
}
|
|
119
117
|
|
|
120
118
|
.#{$prefix}--list-box .#{$prefix}--text-input {
|
|
@@ -155,21 +153,21 @@ $list-box-menu-width: rem(300px);
|
|
|
155
153
|
// V11: Possibly deprecate
|
|
156
154
|
// Light variation for 'list-box'
|
|
157
155
|
.#{$prefix}--list-box--light {
|
|
158
|
-
background-color: $field
|
|
156
|
+
background-color: $field;
|
|
159
157
|
|
|
160
158
|
&:hover {
|
|
161
|
-
background-color: $layer-hover
|
|
159
|
+
background-color: $layer-hover;
|
|
162
160
|
}
|
|
163
161
|
}
|
|
164
162
|
|
|
165
163
|
// V11: Possibly deprecate
|
|
166
164
|
.#{$prefix}--list-box--light .#{$prefix}--list-box__menu {
|
|
167
|
-
background: $field
|
|
165
|
+
background: $field;
|
|
168
166
|
}
|
|
169
167
|
|
|
170
168
|
// V11: Possibly deprecate
|
|
171
169
|
.#{$prefix}--list-box--light .#{$prefix}--list-box__menu-item__option {
|
|
172
|
-
border-top-color: $border-subtle
|
|
170
|
+
border-top-color: $border-subtle;
|
|
173
171
|
}
|
|
174
172
|
|
|
175
173
|
.#{$prefix}--list-box--light.#{$prefix}--list-box--expanded {
|
|
@@ -183,7 +181,7 @@ $list-box-menu-width: rem(300px);
|
|
|
183
181
|
|
|
184
182
|
// V11: Possibly deprecate
|
|
185
183
|
.#{$prefix}--list-box--light.#{$prefix}--list-box--disabled {
|
|
186
|
-
background-color: $field
|
|
184
|
+
background-color: $field;
|
|
187
185
|
}
|
|
188
186
|
|
|
189
187
|
.#{$prefix}--list-box--disabled,
|
|
@@ -479,7 +477,7 @@ $list-box-menu-width: rem(300px);
|
|
|
479
477
|
}
|
|
480
478
|
|
|
481
479
|
.#{$prefix}--list-box--disabled .#{$prefix}--list-box__selection--multi {
|
|
482
|
-
@include tag-theme($text-disabled, $field
|
|
480
|
+
@include tag-theme($text-disabled, $field);
|
|
483
481
|
|
|
484
482
|
> svg {
|
|
485
483
|
fill: $icon-disabled;
|
|
@@ -524,9 +522,6 @@ $list-box-menu-width: rem(300px);
|
|
|
524
522
|
max-height: rem(220px);
|
|
525
523
|
}
|
|
526
524
|
|
|
527
|
-
// TODO V11: Remove xl selector
|
|
528
|
-
.#{$prefix}--list-box--expanded.#{$prefix}--list-box--xl
|
|
529
|
-
.#{$prefix}--list-box__menu,
|
|
530
525
|
.#{$prefix}--list-box--expanded.#{$prefix}--list-box--lg
|
|
531
526
|
.#{$prefix}--list-box__menu {
|
|
532
527
|
// 48px item height * 5.5 items shown
|
|
@@ -561,15 +556,13 @@ $list-box-menu-width: rem(300px);
|
|
|
561
556
|
|
|
562
557
|
// V11: Possibly deprecate
|
|
563
558
|
.#{$prefix}--list-box--light .#{$prefix}--list-box__menu-item:hover {
|
|
564
|
-
background-color: $layer-hover
|
|
559
|
+
background-color: $layer-hover;
|
|
565
560
|
}
|
|
566
561
|
|
|
567
562
|
.#{$prefix}--list-box--sm .#{$prefix}--list-box__menu-item {
|
|
568
563
|
height: rem(32px);
|
|
569
564
|
}
|
|
570
565
|
|
|
571
|
-
// TODO V11: Remove xl selector
|
|
572
|
-
.#{$prefix}--list-box--xl .#{$prefix}--list-box__menu-item,
|
|
573
566
|
.#{$prefix}--list-box--lg .#{$prefix}--list-box__menu-item {
|
|
574
567
|
height: rem(48px);
|
|
575
568
|
}
|
|
@@ -580,8 +573,7 @@ $list-box-menu-width: rem(300px);
|
|
|
580
573
|
|
|
581
574
|
// V11: Possibly deprecate
|
|
582
575
|
.#{$prefix}--list-box--light .#{$prefix}--list-box__menu-item:active {
|
|
583
|
-
|
|
584
|
-
// background-color: $selected-light-ui;
|
|
576
|
+
background-color: $layer-selected;
|
|
585
577
|
}
|
|
586
578
|
|
|
587
579
|
.#{$prefix}--list-box--disabled
|
|
@@ -653,8 +645,6 @@ $list-box-menu-width: rem(300px);
|
|
|
653
645
|
padding-bottom: rem(7px);
|
|
654
646
|
}
|
|
655
647
|
|
|
656
|
-
// TODO V11: Remove xl selector
|
|
657
|
-
.#{$prefix}--list-box--xl .#{$prefix}--list-box__menu-item__option,
|
|
658
648
|
.#{$prefix}--list-box--lg .#{$prefix}--list-box__menu-item__option {
|
|
659
649
|
height: rem(48px);
|
|
660
650
|
padding-top: rem(15px);
|
|
@@ -736,9 +726,8 @@ $list-box-menu-width: rem(300px);
|
|
|
736
726
|
|
|
737
727
|
// V11: Possibly deprecate
|
|
738
728
|
.#{$prefix}--list-box--light .#{$prefix}--list-box__menu-item--active {
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
// background-color: $selected-light-ui;
|
|
729
|
+
border-bottom-color: $layer-selected;
|
|
730
|
+
background-color: $layer-selected;
|
|
742
731
|
}
|
|
743
732
|
|
|
744
733
|
.#{$prefix}--list-box__menu-item--active:hover,
|
|
@@ -803,11 +792,6 @@ $list-box-menu-width: rem(300px);
|
|
|
803
792
|
bottom: 2rem;
|
|
804
793
|
}
|
|
805
794
|
|
|
806
|
-
// TODO V11: Remove xl selector
|
|
807
|
-
.#{$prefix}--list-box--up.#{$prefix}--dropdown--xl
|
|
808
|
-
.#{$prefix}--list-box__menu,
|
|
809
|
-
.#{$prefix}--list-box--up.#{$prefix}--list-box--xl
|
|
810
|
-
.#{$prefix}--list-box__menu,
|
|
811
795
|
.#{$prefix}--list-box--up.#{$prefix}--dropdown--lg
|
|
812
796
|
.#{$prefix}--list-box__menu,
|
|
813
797
|
.#{$prefix}--list-box--up.#{$prefix}--list-box--lg
|
|
@@ -57,7 +57,8 @@
|
|
|
57
57
|
.#{$prefix}--dropdown,
|
|
58
58
|
.#{$prefix}--dropdown-list,
|
|
59
59
|
.#{$prefix}--number input[type='number'],
|
|
60
|
-
.#{$prefix}--date-picker__input
|
|
60
|
+
.#{$prefix}--date-picker__input,
|
|
61
|
+
.#{$prefix}--multi-select {
|
|
61
62
|
background-color: $field-02;
|
|
62
63
|
}
|
|
63
64
|
}
|
|
@@ -67,6 +68,9 @@
|
|
|
67
68
|
transition: transform $duration-moderate-02 motion(entrance, expressive);
|
|
68
69
|
}
|
|
69
70
|
|
|
71
|
+
// -----------------------------
|
|
72
|
+
// Modal container
|
|
73
|
+
// -----------------------------
|
|
70
74
|
.#{$prefix}--modal-container {
|
|
71
75
|
position: fixed;
|
|
72
76
|
top: 0;
|
|
@@ -90,17 +94,6 @@
|
|
|
90
94
|
width: 84%;
|
|
91
95
|
height: auto;
|
|
92
96
|
max-height: 90%;
|
|
93
|
-
|
|
94
|
-
.#{$prefix}--modal-header,
|
|
95
|
-
.#{$prefix}--modal-content,
|
|
96
|
-
.#{$prefix}--modal-content__regular-content {
|
|
97
|
-
padding-right: 20%;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.#{$prefix}--modal-content--with-form {
|
|
101
|
-
// Override for `.#{$prefix}--modal-content`
|
|
102
|
-
padding-right: $spacing-05;
|
|
103
|
-
}
|
|
104
97
|
}
|
|
105
98
|
|
|
106
99
|
@include breakpoint(lg) {
|
|
@@ -113,30 +106,81 @@
|
|
|
113
106
|
}
|
|
114
107
|
}
|
|
115
108
|
|
|
116
|
-
|
|
109
|
+
// -----------------------------
|
|
110
|
+
// Modal content
|
|
111
|
+
// -----------------------------
|
|
117
112
|
.#{$prefix}--modal-content {
|
|
113
|
+
@include type-style('body-long-01');
|
|
114
|
+
|
|
115
|
+
position: relative;
|
|
116
|
+
// Required to accommodate focus outline's negative offset:
|
|
117
|
+
padding-top: $spacing-03;
|
|
118
|
+
// anything besides text/p spans full width, with just 16px padding
|
|
119
|
+
padding-right: $spacing-05;
|
|
118
120
|
padding-left: $spacing-05;
|
|
121
|
+
margin-bottom: $spacing-09;
|
|
122
|
+
color: $text-primary;
|
|
123
|
+
font-weight: 400;
|
|
124
|
+
grid-column: 1/-1;
|
|
125
|
+
grid-row: 2/-2;
|
|
126
|
+
overflow-y: auto;
|
|
127
|
+
|
|
128
|
+
&:focus {
|
|
129
|
+
@include focus-outline('outline');
|
|
130
|
+
}
|
|
119
131
|
}
|
|
120
132
|
|
|
121
|
-
.#{$prefix}--modal-
|
|
122
|
-
|
|
133
|
+
//TO-DO: remove .#{$prefix}--modal-content__regular-content in v11 since hasForm has been deprecated
|
|
134
|
+
// text/p gets 20% right padding
|
|
135
|
+
.#{$prefix}--modal-content p,
|
|
123
136
|
.#{$prefix}--modal-content__regular-content {
|
|
124
|
-
padding-right:
|
|
137
|
+
padding-right: 20%;
|
|
138
|
+
@include type-style('body-long-01');
|
|
125
139
|
}
|
|
126
140
|
|
|
141
|
+
//TO-DO: remove .#{$prefix}--modal-content--with-form in v11 since hasForm has been deprecated\
|
|
142
|
+
// anything besides text/p spans full width, with just 16px padding
|
|
127
143
|
.#{$prefix}--modal-content--with-form {
|
|
128
144
|
padding-right: $spacing-05;
|
|
129
145
|
}
|
|
130
146
|
|
|
147
|
+
// -----------------------------
|
|
148
|
+
// Modal header
|
|
149
|
+
// -----------------------------
|
|
150
|
+
.#{$prefix}--modal-header {
|
|
151
|
+
padding-top: $spacing-05;
|
|
152
|
+
padding-right: $spacing-09;
|
|
153
|
+
padding-left: $spacing-05;
|
|
154
|
+
margin-bottom: $spacing-03;
|
|
155
|
+
grid-column: 1/-1;
|
|
156
|
+
grid-row: 1/1;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.#{$prefix}--modal-header__label {
|
|
160
|
+
@include type-style('label-01');
|
|
161
|
+
|
|
162
|
+
margin-bottom: $spacing-02;
|
|
163
|
+
color: $text-secondary;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.#{$prefix}--modal-header__heading {
|
|
167
|
+
@include type-style('productive-heading-03');
|
|
168
|
+
|
|
169
|
+
color: $text-primary;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// -----------------------------
|
|
173
|
+
// XS Modal
|
|
174
|
+
// -----------------------------
|
|
131
175
|
.#{$prefix}--modal-container--xs {
|
|
132
|
-
|
|
133
|
-
|
|
176
|
+
//text always spans full width in xs modals
|
|
177
|
+
.#{$prefix}--modal-content__regular-content {
|
|
178
|
+
padding-right: $spacing-05;
|
|
134
179
|
}
|
|
135
180
|
|
|
136
|
-
.#{$prefix}--modal-content
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
padding-right: $spacing-05;
|
|
181
|
+
.#{$prefix}--modal-content p {
|
|
182
|
+
//.#{$prefix}--modal-content already has 16px padding so this doesn't need any
|
|
183
|
+
padding-right: 0;
|
|
140
184
|
}
|
|
141
185
|
|
|
142
186
|
@include breakpoint(md) {
|
|
@@ -153,15 +197,18 @@
|
|
|
153
197
|
}
|
|
154
198
|
}
|
|
155
199
|
|
|
200
|
+
// -----------------------------
|
|
201
|
+
// SM Modal
|
|
202
|
+
// -----------------------------
|
|
156
203
|
.#{$prefix}--modal-container--sm {
|
|
157
|
-
|
|
158
|
-
|
|
204
|
+
//text spans full width in sm modals below 1056
|
|
205
|
+
.#{$prefix}--modal-content__regular-content {
|
|
206
|
+
padding-right: $spacing-05;
|
|
159
207
|
}
|
|
160
208
|
|
|
161
|
-
.#{$prefix}--modal-content
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
padding-right: $spacing-05;
|
|
209
|
+
.#{$prefix}--modal-content p {
|
|
210
|
+
//.#{$prefix}--modal-content already has 16px padding so this doesn't need any
|
|
211
|
+
padding-right: 0;
|
|
165
212
|
}
|
|
166
213
|
|
|
167
214
|
@include breakpoint(md) {
|
|
@@ -171,48 +218,24 @@
|
|
|
171
218
|
@include breakpoint(lg) {
|
|
172
219
|
width: 42%;
|
|
173
220
|
max-height: 72%;
|
|
174
|
-
}
|
|
175
221
|
|
|
176
|
-
|
|
177
|
-
width: 36%;
|
|
178
|
-
|
|
179
|
-
.#{$prefix}--modal-header,
|
|
180
|
-
.#{$prefix}--modal-content,
|
|
222
|
+
.#{$prefix}--modal-content p,
|
|
181
223
|
.#{$prefix}--modal-content__regular-content {
|
|
182
224
|
padding-right: 20%;
|
|
183
225
|
}
|
|
226
|
+
}
|
|
184
227
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
padding-right: $spacing-05;
|
|
188
|
-
}
|
|
228
|
+
@include breakpoint(xlg) {
|
|
229
|
+
width: 36%;
|
|
189
230
|
}
|
|
190
231
|
}
|
|
191
232
|
|
|
233
|
+
// -----------------------------
|
|
234
|
+
// LG Modal
|
|
235
|
+
// -----------------------------
|
|
192
236
|
.#{$prefix}--modal-container--lg {
|
|
193
|
-
.#{$prefix}--modal-header {
|
|
194
|
-
padding-right: $spacing-09;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.#{$prefix}--modal-content,
|
|
198
|
-
.#{$prefix}--modal-content__regular-content,
|
|
199
|
-
.#{$prefix}--modal-content--with-form {
|
|
200
|
-
padding-right: $spacing-05;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
237
|
@include breakpoint(md) {
|
|
204
238
|
width: 96%;
|
|
205
|
-
|
|
206
|
-
.#{$prefix}--modal-header,
|
|
207
|
-
.#{$prefix}--modal-content,
|
|
208
|
-
.#{$prefix}--modal-content__regular-content {
|
|
209
|
-
padding-right: 20%;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
.#{$prefix}--modal-content--with-form {
|
|
213
|
-
// Override for `.#{$prefix}--modal-content`
|
|
214
|
-
padding-right: $spacing-05;
|
|
215
|
-
}
|
|
216
239
|
}
|
|
217
240
|
|
|
218
241
|
@include breakpoint(lg) {
|
|
@@ -225,49 +248,9 @@
|
|
|
225
248
|
}
|
|
226
249
|
}
|
|
227
250
|
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
margin-bottom: $spacing-03;
|
|
232
|
-
grid-column: 1/-1;
|
|
233
|
-
grid-row: 1/1;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
.#{$prefix}--modal-header__label {
|
|
237
|
-
@include type-style('label-01');
|
|
238
|
-
|
|
239
|
-
margin-bottom: $spacing-02;
|
|
240
|
-
color: $text-secondary;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
.#{$prefix}--modal-header__heading {
|
|
244
|
-
@include type-style('productive-heading-03');
|
|
245
|
-
|
|
246
|
-
color: $text-primary;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
.#{$prefix}--modal-content {
|
|
250
|
-
@include type-style('body-long-01');
|
|
251
|
-
|
|
252
|
-
position: relative;
|
|
253
|
-
// Required to accommodate focus outline's negative offset:
|
|
254
|
-
padding-top: $spacing-03;
|
|
255
|
-
margin-bottom: $spacing-09;
|
|
256
|
-
color: $text-primary;
|
|
257
|
-
font-weight: 400;
|
|
258
|
-
grid-column: 1/-1;
|
|
259
|
-
grid-row: 2/-2;
|
|
260
|
-
overflow-y: auto;
|
|
261
|
-
|
|
262
|
-
&:focus {
|
|
263
|
-
@include focus-outline('outline');
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
.#{$prefix}--modal-content > p {
|
|
268
|
-
@include type-style('body-long-01');
|
|
269
|
-
}
|
|
270
|
-
|
|
251
|
+
// -----------------------------
|
|
252
|
+
// Modal overflow
|
|
253
|
+
// -----------------------------
|
|
271
254
|
// Required so overflow-indicator disappears at end of content
|
|
272
255
|
.#{$prefix}--modal-scroll-content > *:last-child {
|
|
273
256
|
padding-bottom: $spacing-07;
|
|
@@ -313,6 +296,9 @@
|
|
|
313
296
|
}
|
|
314
297
|
}
|
|
315
298
|
|
|
299
|
+
// -----------------------------
|
|
300
|
+
// Modal footer
|
|
301
|
+
// -----------------------------
|
|
316
302
|
.#{$prefix}--modal-footer {
|
|
317
303
|
display: flex;
|
|
318
304
|
height: rem(64px);
|
|
@@ -336,6 +322,9 @@
|
|
|
336
322
|
align-items: flex-start;
|
|
337
323
|
}
|
|
338
324
|
|
|
325
|
+
// -----------------------------
|
|
326
|
+
// Modal close btn
|
|
327
|
+
// -----------------------------
|
|
339
328
|
.#{$prefix}--modal-close {
|
|
340
329
|
position: absolute;
|
|
341
330
|
z-index: 2;
|
|
@@ -255,6 +255,9 @@
|
|
|
255
255
|
.#{$prefix}--toast-notification__close-button:focus {
|
|
256
256
|
@include high-contrast-mode('focus');
|
|
257
257
|
}
|
|
258
|
+
.#{$prefix}--toast-notification__close-icon {
|
|
259
|
+
@include high-contrast-mode('icon-fill');
|
|
260
|
+
}
|
|
258
261
|
.#{$prefix}--toast-notification__icon {
|
|
259
262
|
@include high-contrast-mode('icon-fill');
|
|
260
263
|
}
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
.#{$prefix}--number input[type='number']:disabled,
|
|
92
92
|
.#{$prefix}--number--readonly input[type='number'] {
|
|
93
93
|
border-bottom-color: transparent;
|
|
94
|
-
background-color: $field
|
|
94
|
+
background-color: $field;
|
|
95
95
|
color: $text-disabled;
|
|
96
96
|
cursor: not-allowed;
|
|
97
97
|
}
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
|
|
27
27
|
.#{$prefix}--pagination {
|
|
28
28
|
@include component-reset.reset;
|
|
29
|
-
@include type-style('body-
|
|
29
|
+
@include type-style('body-compact-01');
|
|
30
30
|
|
|
31
31
|
display: flex;
|
|
32
32
|
width: calc(100% - 1px);
|
|
33
|
-
min-height:
|
|
33
|
+
min-height: rem(40px);
|
|
34
34
|
align-items: center;
|
|
35
35
|
justify-content: space-between;
|
|
36
36
|
border-top: 1px solid $border-subtle;
|
|
@@ -62,6 +62,14 @@
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
+
.#{$prefix}--pagination--sm {
|
|
66
|
+
min-height: rem(32px);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.#{$prefix}--pagination--lg {
|
|
70
|
+
min-height: rem(48px);
|
|
71
|
+
}
|
|
72
|
+
|
|
65
73
|
.#{$prefix}--pagination .#{$prefix}--select {
|
|
66
74
|
height: 100%;
|
|
67
75
|
align-items: center;
|
|
@@ -73,19 +81,45 @@
|
|
|
73
81
|
}
|
|
74
82
|
|
|
75
83
|
.#{$prefix}--pagination .#{$prefix}--select-input {
|
|
84
|
+
@include type-style('body-compact-01');
|
|
85
|
+
|
|
76
86
|
width: auto;
|
|
77
87
|
min-width: auto;
|
|
78
|
-
height:
|
|
88
|
+
height: 100%;
|
|
89
|
+
line-height: rem(40px);
|
|
79
90
|
}
|
|
80
91
|
|
|
92
|
+
// Extra specificity is needed to preserve padding
|
|
81
93
|
.#{$prefix}--pagination
|
|
82
94
|
.#{$prefix}--select--inline
|
|
83
95
|
.#{$prefix}--select-input {
|
|
84
96
|
padding: 0 2.25rem 0 $spacing-05;
|
|
85
97
|
}
|
|
86
98
|
|
|
99
|
+
.#{$prefix}--pagination--sm .#{$prefix}--select-input {
|
|
100
|
+
line-height: rem(32px);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.#{$prefix}--pagination--lg .#{$prefix}--select-input {
|
|
104
|
+
line-height: rem(48px);
|
|
105
|
+
}
|
|
106
|
+
|
|
87
107
|
.#{$prefix}--pagination .#{$prefix}--select-input:hover {
|
|
88
|
-
background: $
|
|
108
|
+
background: $layer-hover;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.#{$prefix}--pagination
|
|
112
|
+
.#{$prefix}--select--inline
|
|
113
|
+
.#{$prefix}--select-input:focus,
|
|
114
|
+
.#{$prefix}--pagination
|
|
115
|
+
.#{$prefix}--select--inline
|
|
116
|
+
.#{$prefix}--select-input:focus
|
|
117
|
+
option,
|
|
118
|
+
.#{$prefix}--pagination
|
|
119
|
+
.#{$prefix}--select--inline
|
|
120
|
+
.#{$prefix}--select-input:focus
|
|
121
|
+
optgroup {
|
|
122
|
+
background-color: $layer;
|
|
89
123
|
}
|
|
90
124
|
|
|
91
125
|
.#{$prefix}--pagination .#{$prefix}--select__arrow {
|
|
@@ -108,7 +142,7 @@
|
|
|
108
142
|
.#{$prefix}--pagination__left,
|
|
109
143
|
.#{$prefix}--pagination__right {
|
|
110
144
|
display: flex;
|
|
111
|
-
height:
|
|
145
|
+
height: 100%;
|
|
112
146
|
align-items: center;
|
|
113
147
|
}
|
|
114
148
|
|
|
@@ -155,8 +189,9 @@
|
|
|
155
189
|
@include component-reset.reset;
|
|
156
190
|
|
|
157
191
|
display: flex;
|
|
158
|
-
width:
|
|
159
|
-
height:
|
|
192
|
+
width: rem(40px);
|
|
193
|
+
height: rem(40px);
|
|
194
|
+
min-height: rem(32px);
|
|
160
195
|
align-items: center;
|
|
161
196
|
justify-content: center;
|
|
162
197
|
border: none;
|
|
@@ -169,6 +204,20 @@
|
|
|
169
204
|
background-color $duration-fast-02 motion(standard, productive);
|
|
170
205
|
}
|
|
171
206
|
|
|
207
|
+
.#{$prefix}--pagination--sm .#{$prefix}--pagination__button,
|
|
208
|
+
.#{$prefix}--pagination--sm
|
|
209
|
+
.#{$prefix}--btn--ghost.#{$prefix}--pagination__button {
|
|
210
|
+
width: rem(32px);
|
|
211
|
+
height: rem(32px);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.#{$prefix}--pagination--lg .#{$prefix}--pagination__button,
|
|
215
|
+
.#{$prefix}--pagination--lg
|
|
216
|
+
.#{$prefix}--btn--ghost.#{$prefix}--pagination__button {
|
|
217
|
+
width: rem(48px);
|
|
218
|
+
height: rem(48px);
|
|
219
|
+
}
|
|
220
|
+
|
|
172
221
|
.#{$prefix}--pagination__button:focus,
|
|
173
222
|
.#{$prefix}--btn--ghost:focus.#{$prefix}--pagination__button {
|
|
174
223
|
@include focus-outline('outline');
|
|
@@ -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;
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
&:disabled,
|
|
91
91
|
&:hover:disabled {
|
|
92
92
|
border-bottom-color: $border-disabled;
|
|
93
|
-
background-color: $field
|
|
93
|
+
background-color: $field;
|
|
94
94
|
color: $text-disabled;
|
|
95
95
|
cursor: not-allowed;
|
|
96
96
|
}
|
|
@@ -214,9 +214,14 @@
|
|
|
214
214
|
color: $text-primary;
|
|
215
215
|
}
|
|
216
216
|
|
|
217
|
+
.#{$prefix}--select--inline .#{$prefix}--select-input:focus option,
|
|
218
|
+
.#{$prefix}--select--inline .#{$prefix}--select-input:focus optgroup {
|
|
219
|
+
background-color: $background;
|
|
220
|
+
}
|
|
221
|
+
|
|
217
222
|
.#{$prefix}--select--inline .#{$prefix}--select-input[disabled],
|
|
218
223
|
.#{$prefix}--select--inline .#{$prefix}--select-input[disabled]:hover {
|
|
219
|
-
background-color: $field
|
|
224
|
+
background-color: $field;
|
|
220
225
|
}
|
|
221
226
|
|
|
222
227
|
.#{$prefix}--select--inline .#{$prefix}--select__arrow {
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
.#{$prefix}--slider-text-input,
|
|
186
186
|
.#{$prefix}--slider--disabled ~ .#{$prefix}--slider-text-input {
|
|
187
187
|
border: none;
|
|
188
|
-
background-color: $field
|
|
188
|
+
background-color: $field;
|
|
189
189
|
color: $text-disabled;
|
|
190
190
|
cursor: not-allowed;
|
|
191
191
|
transition: none;
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
.#{$prefix}--tag--disabled,
|
|
124
124
|
.#{$prefix}--tag--filter.#{$prefix}--tag--disabled,
|
|
125
125
|
.#{$prefix}--tag--interactive.#{$prefix}--tag--disabled {
|
|
126
|
-
@include tag-theme($layer
|
|
126
|
+
@include tag-theme($layer, $text-disabled);
|
|
127
127
|
|
|
128
128
|
&:hover {
|
|
129
129
|
cursor: not-allowed;
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
//-----------------------------
|
|
78
78
|
.#{$prefix}--text-area:disabled {
|
|
79
79
|
border-bottom: 1px solid transparent;
|
|
80
|
-
background-color: $field
|
|
80
|
+
background-color: $field;
|
|
81
81
|
color: $text-disabled;
|
|
82
82
|
cursor: not-allowed;
|
|
83
83
|
outline: none;
|
|
@@ -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
|
}
|