@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
|
@@ -102,6 +102,7 @@
|
|
|
102
102
|
0% {
|
|
103
103
|
transform: rotate(0deg);
|
|
104
104
|
}
|
|
105
|
+
|
|
105
106
|
100% {
|
|
106
107
|
transform: rotate(360deg);
|
|
107
108
|
}
|
|
@@ -124,6 +125,7 @@
|
|
|
124
125
|
0% {
|
|
125
126
|
stroke-dashoffset: loading-progress($circumference, 0);
|
|
126
127
|
}
|
|
128
|
+
|
|
127
129
|
100% {
|
|
128
130
|
stroke-dashoffset: loading-progress($circumference, 81);
|
|
129
131
|
}
|
|
@@ -133,6 +135,7 @@
|
|
|
133
135
|
0% {
|
|
134
136
|
stroke-dashoffset: loading-progress($circumference, 81);
|
|
135
137
|
}
|
|
138
|
+
|
|
136
139
|
100% {
|
|
137
140
|
stroke-dashoffset: loading-progress($circumference, 0);
|
|
138
141
|
}
|
|
@@ -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,16 +94,6 @@
|
|
|
90
94
|
width: 84%;
|
|
91
95
|
height: auto;
|
|
92
96
|
max-height: 90%;
|
|
93
|
-
|
|
94
|
-
.#{$prefix}--modal-content p,
|
|
95
|
-
.#{$prefix}--modal-content__regular-content {
|
|
96
|
-
padding-right: 20%;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.#{$prefix}--modal-content--with-form {
|
|
100
|
-
// Override for `.#{$prefix}--modal-content`
|
|
101
|
-
padding-right: $spacing-05;
|
|
102
|
-
}
|
|
103
97
|
}
|
|
104
98
|
|
|
105
99
|
@include breakpoint(lg) {
|
|
@@ -112,30 +106,81 @@
|
|
|
112
106
|
}
|
|
113
107
|
}
|
|
114
108
|
|
|
115
|
-
|
|
109
|
+
// -----------------------------
|
|
110
|
+
// Modal content
|
|
111
|
+
// -----------------------------
|
|
116
112
|
.#{$prefix}--modal-content {
|
|
113
|
+
@include type-style('body-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;
|
|
117
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
|
+
}
|
|
118
131
|
}
|
|
119
132
|
|
|
120
|
-
.#{$prefix}--modal-
|
|
121
|
-
|
|
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,
|
|
122
136
|
.#{$prefix}--modal-content__regular-content {
|
|
123
|
-
padding-right:
|
|
137
|
+
padding-right: 20%;
|
|
138
|
+
@include type-style('body-01');
|
|
124
139
|
}
|
|
125
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
|
|
126
143
|
.#{$prefix}--modal-content--with-form {
|
|
127
144
|
padding-right: $spacing-05;
|
|
128
145
|
}
|
|
129
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('heading-03');
|
|
168
|
+
|
|
169
|
+
color: $text-primary;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// -----------------------------
|
|
173
|
+
// XS Modal
|
|
174
|
+
// -----------------------------
|
|
130
175
|
.#{$prefix}--modal-container--xs {
|
|
131
|
-
|
|
132
|
-
|
|
176
|
+
//text always spans full width in xs modals
|
|
177
|
+
.#{$prefix}--modal-content__regular-content {
|
|
178
|
+
padding-right: $spacing-05;
|
|
133
179
|
}
|
|
134
180
|
|
|
135
|
-
.#{$prefix}--modal-content
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
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;
|
|
139
184
|
}
|
|
140
185
|
|
|
141
186
|
@include breakpoint(md) {
|
|
@@ -152,15 +197,18 @@
|
|
|
152
197
|
}
|
|
153
198
|
}
|
|
154
199
|
|
|
200
|
+
// -----------------------------
|
|
201
|
+
// SM Modal
|
|
202
|
+
// -----------------------------
|
|
155
203
|
.#{$prefix}--modal-container--sm {
|
|
156
|
-
|
|
157
|
-
|
|
204
|
+
//text spans full width in sm modals below 1056
|
|
205
|
+
.#{$prefix}--modal-content__regular-content {
|
|
206
|
+
padding-right: $spacing-05;
|
|
158
207
|
}
|
|
159
208
|
|
|
160
|
-
.#{$prefix}--modal-content
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
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;
|
|
164
212
|
}
|
|
165
213
|
|
|
166
214
|
@include breakpoint(md) {
|
|
@@ -170,46 +218,24 @@
|
|
|
170
218
|
@include breakpoint(lg) {
|
|
171
219
|
width: 42%;
|
|
172
220
|
max-height: 72%;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
@include breakpoint(xlg) {
|
|
176
|
-
width: 36%;
|
|
177
221
|
|
|
178
222
|
.#{$prefix}--modal-content p,
|
|
179
223
|
.#{$prefix}--modal-content__regular-content {
|
|
180
224
|
padding-right: 20%;
|
|
181
225
|
}
|
|
226
|
+
}
|
|
182
227
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
padding-right: $spacing-05;
|
|
186
|
-
}
|
|
228
|
+
@include breakpoint(xlg) {
|
|
229
|
+
width: 36%;
|
|
187
230
|
}
|
|
188
231
|
}
|
|
189
232
|
|
|
233
|
+
// -----------------------------
|
|
234
|
+
// LG Modal
|
|
235
|
+
// -----------------------------
|
|
190
236
|
.#{$prefix}--modal-container--lg {
|
|
191
|
-
.#{$prefix}--modal-header {
|
|
192
|
-
padding-right: $spacing-09;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.#{$prefix}--modal-content,
|
|
196
|
-
.#{$prefix}--modal-content__regular-content,
|
|
197
|
-
.#{$prefix}--modal-content--with-form {
|
|
198
|
-
padding-right: $spacing-05;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
237
|
@include breakpoint(md) {
|
|
202
238
|
width: 96%;
|
|
203
|
-
|
|
204
|
-
.#{$prefix}--modal-content p,
|
|
205
|
-
.#{$prefix}--modal-content__regular-content {
|
|
206
|
-
padding-right: 20%;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
.#{$prefix}--modal-content--with-form {
|
|
210
|
-
// Override for `.#{$prefix}--modal-content`
|
|
211
|
-
padding-right: $spacing-05;
|
|
212
|
-
}
|
|
213
239
|
}
|
|
214
240
|
|
|
215
241
|
@include breakpoint(lg) {
|
|
@@ -222,49 +248,9 @@
|
|
|
222
248
|
}
|
|
223
249
|
}
|
|
224
250
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
margin-bottom: $spacing-03;
|
|
229
|
-
grid-column: 1/-1;
|
|
230
|
-
grid-row: 1/1;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
.#{$prefix}--modal-header__label {
|
|
234
|
-
@include type-style('label-01');
|
|
235
|
-
|
|
236
|
-
margin-bottom: $spacing-02;
|
|
237
|
-
color: $text-secondary;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
.#{$prefix}--modal-header__heading {
|
|
241
|
-
@include type-style('productive-heading-03');
|
|
242
|
-
|
|
243
|
-
color: $text-primary;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.#{$prefix}--modal-content {
|
|
247
|
-
@include type-style('body-long-01');
|
|
248
|
-
|
|
249
|
-
position: relative;
|
|
250
|
-
// Required to accommodate focus outline's negative offset:
|
|
251
|
-
padding-top: $spacing-03;
|
|
252
|
-
margin-bottom: $spacing-09;
|
|
253
|
-
color: $text-primary;
|
|
254
|
-
font-weight: 400;
|
|
255
|
-
grid-column: 1/-1;
|
|
256
|
-
grid-row: 2/-2;
|
|
257
|
-
overflow-y: auto;
|
|
258
|
-
|
|
259
|
-
&:focus {
|
|
260
|
-
@include focus-outline('outline');
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
.#{$prefix}--modal-content > p {
|
|
265
|
-
@include type-style('body-long-01');
|
|
266
|
-
}
|
|
267
|
-
|
|
251
|
+
// -----------------------------
|
|
252
|
+
// Modal overflow
|
|
253
|
+
// -----------------------------
|
|
268
254
|
// Required so overflow-indicator disappears at end of content
|
|
269
255
|
.#{$prefix}--modal-scroll-content > *:last-child {
|
|
270
256
|
padding-bottom: $spacing-07;
|
|
@@ -310,6 +296,9 @@
|
|
|
310
296
|
}
|
|
311
297
|
}
|
|
312
298
|
|
|
299
|
+
// -----------------------------
|
|
300
|
+
// Modal footer
|
|
301
|
+
// -----------------------------
|
|
313
302
|
.#{$prefix}--modal-footer {
|
|
314
303
|
display: flex;
|
|
315
304
|
height: rem(64px);
|
|
@@ -333,6 +322,9 @@
|
|
|
333
322
|
align-items: flex-start;
|
|
334
323
|
}
|
|
335
324
|
|
|
325
|
+
// -----------------------------
|
|
326
|
+
// Modal close btn
|
|
327
|
+
// -----------------------------
|
|
336
328
|
.#{$prefix}--modal-close {
|
|
337
329
|
position: absolute;
|
|
338
330
|
z-index: 2;
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
min-width: rem(288px);
|
|
62
62
|
max-width: rem(288px);
|
|
63
63
|
flex-wrap: wrap;
|
|
64
|
-
box-shadow: 0 2px 6px 0
|
|
64
|
+
box-shadow: 0 2px 6px 0 rgb(0 0 0 / 20%);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.#{$prefix}--actionable-notification:not(.#{$prefix}--actionable-notification--low-contrast)
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
.#{$prefix}--actionable-notification__content {
|
|
224
|
-
@include type-style('body-
|
|
224
|
+
@include type-style('body-compact-01');
|
|
225
225
|
|
|
226
226
|
word-break: break-word;
|
|
227
227
|
}
|
|
@@ -202,19 +202,19 @@
|
|
|
202
202
|
|
|
203
203
|
@if feature-flags.enabled('enable-v11-release') {
|
|
204
204
|
.#{$prefix}--inline-notification__content {
|
|
205
|
-
@include type-style('body-
|
|
205
|
+
@include type-style('body-compact-01');
|
|
206
206
|
|
|
207
207
|
word-break: break-word;
|
|
208
208
|
}
|
|
209
209
|
} @else {
|
|
210
210
|
.#{$prefix}--inline-notification__title {
|
|
211
|
-
@include type-style('
|
|
211
|
+
@include type-style('heading-compact-01');
|
|
212
212
|
|
|
213
213
|
margin: 0 $spacing-02 0 0;
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
.#{$prefix}--inline-notification__subtitle {
|
|
217
|
-
@include type-style('body-
|
|
217
|
+
@include type-style('body-compact-01');
|
|
218
218
|
|
|
219
219
|
word-break: break-word;
|
|
220
220
|
}
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
|
|
154
154
|
@if feature-flags.enabled('enable-v11-release') {
|
|
155
155
|
.#{$prefix}--toast-notification__content {
|
|
156
|
-
@include type-style('body-
|
|
156
|
+
@include type-style('body-compact-01');
|
|
157
157
|
|
|
158
158
|
margin-top: $spacing-05;
|
|
159
159
|
margin-right: $spacing-05;
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
margin-left: auto;
|
|
188
188
|
background-color: transparent;
|
|
189
189
|
cursor: pointer;
|
|
190
|
-
transition: outline $transition
|
|
190
|
+
transition: outline $transition-base, background-color $transition-base;
|
|
191
191
|
|
|
192
192
|
&:focus {
|
|
193
193
|
outline: 2px solid $focus-inverse;
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
|
|
213
213
|
@if not feature-flags.enabled('enable-v11-release') {
|
|
214
214
|
.#{$prefix}--toast-notification__title {
|
|
215
|
-
@include type-style('
|
|
215
|
+
@include type-style('heading-compact-01');
|
|
216
216
|
|
|
217
217
|
margin-top: $spacing-05;
|
|
218
218
|
font-weight: 600;
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
.#{$prefix}--toast-notification__subtitle {
|
|
223
|
-
@include type-style('body-
|
|
223
|
+
@include type-style('body-compact-01');
|
|
224
224
|
|
|
225
225
|
margin-top: 0;
|
|
226
226
|
margin-bottom: $spacing-05;
|
|
@@ -234,7 +234,7 @@
|
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
.#{$prefix}--toast-notification__caption {
|
|
237
|
-
@include type-style('body-
|
|
237
|
+
@include type-style('body-compact-01');
|
|
238
238
|
|
|
239
239
|
padding-top: $spacing-03;
|
|
240
240
|
margin-bottom: $spacing-05;
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
@use '../../utilities/high-contrast-mode' as *;
|
|
17
17
|
@use '../../utilities/focus-outline' as *;
|
|
18
18
|
@use '../../utilities/convert' as *;
|
|
19
|
+
@use '../../utilities/z-index' as *;
|
|
19
20
|
|
|
20
21
|
/// Number input styles
|
|
21
22
|
/// @access public
|
|
@@ -31,7 +32,7 @@
|
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
.#{$prefix}--number input[type='number'] {
|
|
34
|
-
@include type-style('
|
|
35
|
+
@include type-style('code-01');
|
|
35
36
|
@include focus-outline('reset');
|
|
36
37
|
|
|
37
38
|
display: inline-flex;
|
|
@@ -88,8 +89,7 @@
|
|
|
88
89
|
padding-right: rem(112px);
|
|
89
90
|
}
|
|
90
91
|
|
|
91
|
-
.#{$prefix}--number input[type='number']:disabled
|
|
92
|
-
.#{$prefix}--number--readonly input[type='number'] {
|
|
92
|
+
.#{$prefix}--number input[type='number']:disabled {
|
|
93
93
|
border-bottom-color: transparent;
|
|
94
94
|
background-color: $field;
|
|
95
95
|
color: $text-disabled;
|
|
@@ -301,10 +301,6 @@
|
|
|
301
301
|
background-color: transparent;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
.#{$prefix}--number--readonly .#{$prefix}--number__control-btn {
|
|
305
|
-
display: none;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
304
|
.#{$prefix}--number__invalid {
|
|
309
305
|
position: absolute;
|
|
310
306
|
right: rem(96px);
|
|
@@ -368,10 +364,7 @@
|
|
|
368
364
|
}
|
|
369
365
|
|
|
370
366
|
// V11: Possibly deprecate
|
|
371
|
-
.#{$prefix}--number--light input[type='number']:disabled
|
|
372
|
-
.#{$prefix}--number--light
|
|
373
|
-
.#{$prefix}--number--readonly
|
|
374
|
-
input[type='number'] {
|
|
367
|
+
.#{$prefix}--number--light input[type='number']:disabled {
|
|
375
368
|
background-color: $field-02;
|
|
376
369
|
}
|
|
377
370
|
|
|
@@ -381,18 +374,22 @@
|
|
|
381
374
|
background-color: $field-02;
|
|
382
375
|
}
|
|
383
376
|
|
|
384
|
-
// V11: Possibly deprecate
|
|
385
|
-
.#{$prefix}--number--light .#{$prefix}--number__control-btn:hover,
|
|
386
|
-
.#{$prefix}--number--light .#{$prefix}--number__control-btn:hover::before,
|
|
387
|
-
.#{$prefix}--number--light .#{$prefix}--number__control-btn:hover::after {
|
|
388
|
-
background-color: $layer-hover-02;
|
|
389
|
-
}
|
|
390
|
-
|
|
391
377
|
.#{$prefix}--number--light .#{$prefix}--number__control-btn:focus::before,
|
|
392
378
|
.#{$prefix}--number--light .#{$prefix}--number__control-btn:focus::after {
|
|
393
379
|
background-color: transparent;
|
|
394
380
|
}
|
|
395
381
|
|
|
382
|
+
// V11: Possibly deprecate
|
|
383
|
+
// We include `:not(:focus)` here because the pseudo elements will overlap the
|
|
384
|
+
// focus outline on the button if we set their background-color on focus
|
|
385
|
+
.#{$prefix}--number--light .#{$prefix}--number__control-btn:hover,
|
|
386
|
+
.#{$prefix}--number--light
|
|
387
|
+
.#{$prefix}--number__control-btn:not(:focus):hover::before,
|
|
388
|
+
.#{$prefix}--number--light
|
|
389
|
+
.#{$prefix}--number__control-btn:not(:focus):hover::after {
|
|
390
|
+
background-color: $layer-hover-02;
|
|
391
|
+
}
|
|
392
|
+
|
|
396
393
|
// Size Variant styles
|
|
397
394
|
// TODO V11: Remove xl selector
|
|
398
395
|
.#{$prefix}--number--xl input[type='number'],
|
|
@@ -452,6 +449,20 @@
|
|
|
452
449
|
right: rem(16px);
|
|
453
450
|
}
|
|
454
451
|
|
|
452
|
+
// Readonly
|
|
453
|
+
.#{$prefix}--number--readonly input[type='number'] {
|
|
454
|
+
background: transparent;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.#{$prefix}--number--readonly .#{$prefix}--number__controls {
|
|
458
|
+
display: none;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.#{$prefix}--number__readonly-icon {
|
|
462
|
+
position: absolute;
|
|
463
|
+
right: rem(16px);
|
|
464
|
+
}
|
|
465
|
+
|
|
455
466
|
// Skeleton State
|
|
456
467
|
.#{$prefix}--number.#{$prefix}--skeleton {
|
|
457
468
|
@include skeleton;
|
|
@@ -120,6 +120,7 @@
|
|
|
120
120
|
|
|
121
121
|
.#{$prefix}--overflow-menu-options--light {
|
|
122
122
|
background-color: $field-02;
|
|
123
|
+
|
|
123
124
|
&::after {
|
|
124
125
|
background-color: $field-02;
|
|
125
126
|
}
|
|
@@ -162,6 +163,7 @@
|
|
|
162
163
|
&[data-floating-menu-direction='top']::after {
|
|
163
164
|
width: rem(32px);
|
|
164
165
|
}
|
|
166
|
+
|
|
165
167
|
&[data-floating-menu-direction='left']::after,
|
|
166
168
|
&[data-floating-menu-direction='right']::after {
|
|
167
169
|
height: rem(32px);
|
|
@@ -175,6 +177,7 @@
|
|
|
175
177
|
&[data-floating-menu-direction='top']::after {
|
|
176
178
|
width: rem(48px);
|
|
177
179
|
}
|
|
180
|
+
|
|
178
181
|
&[data-floating-menu-direction='left']::after,
|
|
179
182
|
&[data-floating-menu-direction='right']::after {
|
|
180
183
|
height: rem(48px);
|
|
@@ -242,7 +245,7 @@
|
|
|
242
245
|
}
|
|
243
246
|
|
|
244
247
|
.#{$prefix}--overflow-menu-options__btn {
|
|
245
|
-
@include type-style('body-
|
|
248
|
+
@include type-style('body-compact-01');
|
|
246
249
|
@include focus-outline('reset');
|
|
247
250
|
|
|
248
251
|
display: inline-flex;
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
@use '../../utilities/convert' as *;
|
|
16
16
|
@use '../../utilities/focus-outline' as *;
|
|
17
17
|
@use '../../utilities/high-contrast-mode' as *;
|
|
18
|
+
@use '../select';
|
|
18
19
|
|
|
19
20
|
/// Pagination styles
|
|
20
21
|
/// @access public
|
|
@@ -81,12 +82,21 @@
|
|
|
81
82
|
}
|
|
82
83
|
|
|
83
84
|
.#{$prefix}--pagination .#{$prefix}--select-input {
|
|
85
|
+
@include type-style('body-compact-01');
|
|
86
|
+
|
|
84
87
|
width: auto;
|
|
85
88
|
min-width: auto;
|
|
86
89
|
height: 100%;
|
|
87
90
|
line-height: rem(40px);
|
|
88
91
|
}
|
|
89
92
|
|
|
93
|
+
// Extra specificity is needed to preserve padding
|
|
94
|
+
.#{$prefix}--pagination
|
|
95
|
+
.#{$prefix}--select--inline
|
|
96
|
+
.#{$prefix}--select-input {
|
|
97
|
+
padding: 0 2.25rem 0 $spacing-05;
|
|
98
|
+
}
|
|
99
|
+
|
|
90
100
|
.#{$prefix}--pagination--sm .#{$prefix}--select-input {
|
|
91
101
|
line-height: rem(32px);
|
|
92
102
|
}
|
|
@@ -95,16 +105,13 @@
|
|
|
95
105
|
line-height: rem(48px);
|
|
96
106
|
}
|
|
97
107
|
|
|
98
|
-
.#{$prefix}--pagination
|
|
99
|
-
.#{$prefix}--select--inline
|
|
100
|
-
.#{$prefix}--select-input {
|
|
101
|
-
padding: 0 2.25rem 0 $spacing-05;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
108
|
.#{$prefix}--pagination .#{$prefix}--select-input:hover {
|
|
105
109
|
background: $layer-hover;
|
|
106
110
|
}
|
|
107
111
|
|
|
112
|
+
.#{$prefix}--pagination
|
|
113
|
+
.#{$prefix}--select--inline
|
|
114
|
+
.#{$prefix}--select-input:focus,
|
|
108
115
|
.#{$prefix}--pagination
|
|
109
116
|
.#{$prefix}--select--inline
|
|
110
117
|
.#{$prefix}--select-input:focus
|