@carbon/styles 0.14.0-rc.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -8
- package/scss/_config.scss +6 -0
- package/scss/_grid.scss +3 -1
- package/scss/_motion.scss +7 -36
- package/scss/_reset.scss +1 -1
- package/scss/components/_index.scss +1 -0
- package/scss/components/accordion/_accordion.scss +4 -2
- package/scss/components/aspect-ratio/_aspect-ratio.scss +73 -0
- package/scss/components/aspect-ratio/_index.scss +11 -0
- package/scss/components/breadcrumb/_breadcrumb.scss +1 -1
- package/scss/components/button/_tokens.scss +2 -2
- package/scss/components/checkbox/_checkbox.scss +1 -1
- package/scss/components/code-snippet/_code-snippet.scss +3 -3
- package/scss/components/content-switcher/_content-switcher.scss +5 -1
- package/scss/components/copy-button/_copy-button.scss +1 -1
- package/scss/components/data-table/_data-table.scss +4 -4
- package/scss/components/data-table/action/_data-table-action.scss +3 -3
- package/scss/components/data-table/sort/_data-table-sort.scss +1 -1
- package/scss/components/date-picker/_flatpickr.scss +27 -20
- package/scss/components/dropdown/_dropdown.scss +3 -3
- package/scss/components/file-uploader/_file-uploader.scss +4 -4
- package/scss/components/form/_form.scss +2 -2
- package/scss/components/link/_link.scss +3 -3
- package/scss/components/list/_list.scss +2 -2
- package/scss/components/list-box/_list-box.scss +13 -15
- package/scss/components/loading/_loading.scss +3 -0
- package/scss/components/menu/_menu.scss +1 -1
- package/scss/components/modal/_modal.scss +3 -3
- package/scss/components/notification/_actionable-notification.scss +2 -2
- package/scss/components/notification/_inline-notification.scss +3 -3
- package/scss/components/notification/_toast-notification.scss +5 -5
- package/scss/components/number-input/_number-input.scss +29 -18
- package/scss/components/overflow-menu/_overflow-menu.scss +5 -2
- package/scss/components/pagination/_index.scss +3 -0
- package/scss/components/pagination/_pagination.scss +1 -0
- package/scss/components/pagination/_unstable_pagination.scss +173 -0
- package/scss/components/pagination-nav/_pagination-nav.scss +2 -2
- package/scss/components/popover/_popover.scss +27 -12
- package/scss/components/progress-bar/_progress-bar.scss +9 -1
- package/scss/components/progress-indicator/_progress-indicator.scss +12 -14
- package/scss/components/search/_search.scss +14 -17
- package/scss/components/select/_select.scss +8 -2
- package/scss/components/slider/_slider.scss +6 -4
- package/scss/components/structured-list/_structured-list.scss +2 -3
- package/scss/components/tabs/_tabs.scss +3 -3
- package/scss/components/tag/_tag.scss +1 -0
- package/scss/components/text-area/_text-area.scss +2 -2
- package/scss/components/text-input/_text-input.scss +18 -4
- package/scss/components/tile/_tile.scss +2 -2
- package/scss/components/toggle/_toggle.scss +3 -3
- package/scss/components/toggletip/_toggletip.scss +1 -1
- package/scss/components/tooltip/_tooltip.scss +3 -3
- package/scss/components/treeview/_treeview.scss +1 -1
- package/scss/components/ui-shell/header/_header.scss +3 -3
- package/scss/components/ui-shell/side-nav/_side-nav.scss +7 -6
- package/scss/components/ui-shell/switcher/_switcher.scss +1 -1
- package/scss/fonts/_src.scss +1 -1
- package/scss/utilities/_keyframes.scss +10 -0
- package/scss/utilities/_tooltip.scss +3 -1
|
@@ -30,7 +30,7 @@ $link-focus-text-color: custom-property.get-var(
|
|
|
30
30
|
@mixin link {
|
|
31
31
|
.#{$prefix}--link {
|
|
32
32
|
@include component-reset.reset;
|
|
33
|
-
@include type.type-style('body-
|
|
33
|
+
@include type.type-style('body-compact-01');
|
|
34
34
|
|
|
35
35
|
display: inline-flex;
|
|
36
36
|
color: $link-text-color;
|
|
@@ -68,7 +68,7 @@ $link-focus-text-color: custom-property.get-var(
|
|
|
68
68
|
.#{$prefix}--link--disabled,
|
|
69
69
|
.#{$prefix}--link--disabled:hover {
|
|
70
70
|
@include component-reset.reset;
|
|
71
|
-
@include type.type-style('body-
|
|
71
|
+
@include type.type-style('body-compact-01');
|
|
72
72
|
|
|
73
73
|
color: $text-disabled;
|
|
74
74
|
cursor: not-allowed;
|
|
@@ -102,7 +102,7 @@ $link-focus-text-color: custom-property.get-var(
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
.#{$prefix}--link--lg {
|
|
105
|
-
@include type.type-style('body-
|
|
105
|
+
@include type.type-style('body-compact-02');
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
.#{$prefix}--link__icon {
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
.#{$prefix}--list--ordered,
|
|
26
26
|
.#{$prefix}--list--ordered--native {
|
|
27
27
|
@include component-reset.reset;
|
|
28
|
-
@include type.type-style('body-
|
|
28
|
+
@include type.type-style('body-01');
|
|
29
29
|
|
|
30
30
|
list-style: none;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.#{$prefix}--list--expressive,
|
|
34
34
|
.#{$prefix}--list--expressive .#{$prefix}--list--nested {
|
|
35
|
-
@include type.type-style('body-
|
|
35
|
+
@include type.type-style('body-02');
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.#{$prefix}--list--ordered--native {
|
|
@@ -55,7 +55,7 @@ $list-box-menu-width: rem(300px);
|
|
|
55
55
|
grid-template: auto auto / auto auto;
|
|
56
56
|
|
|
57
57
|
.#{$prefix}--label {
|
|
58
|
-
@include type-style('body-
|
|
58
|
+
@include type-style('body-compact-01');
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
.#{$prefix}--label,
|
|
@@ -112,7 +112,7 @@ $list-box-menu-width: rem(300px);
|
|
|
112
112
|
|
|
113
113
|
// V11: Possibly deprecate
|
|
114
114
|
.#{$prefix}--list-box--expanded:hover.#{$prefix}--list-box--light:hover {
|
|
115
|
-
background-color: $field
|
|
115
|
+
background-color: $field;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
.#{$prefix}--list-box .#{$prefix}--text-input {
|
|
@@ -153,21 +153,21 @@ $list-box-menu-width: rem(300px);
|
|
|
153
153
|
// V11: Possibly deprecate
|
|
154
154
|
// Light variation for 'list-box'
|
|
155
155
|
.#{$prefix}--list-box--light {
|
|
156
|
-
background-color: $field
|
|
156
|
+
background-color: $field;
|
|
157
157
|
|
|
158
158
|
&:hover {
|
|
159
|
-
background-color: $layer-hover
|
|
159
|
+
background-color: $layer-hover;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
// V11: Possibly deprecate
|
|
164
164
|
.#{$prefix}--list-box--light .#{$prefix}--list-box__menu {
|
|
165
|
-
background: $field
|
|
165
|
+
background: $field;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
// V11: Possibly deprecate
|
|
169
169
|
.#{$prefix}--list-box--light .#{$prefix}--list-box__menu-item__option {
|
|
170
|
-
border-top-color: $border-subtle
|
|
170
|
+
border-top-color: $border-subtle;
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
.#{$prefix}--list-box--light.#{$prefix}--list-box--expanded {
|
|
@@ -181,7 +181,7 @@ $list-box-menu-width: rem(300px);
|
|
|
181
181
|
|
|
182
182
|
// V11: Possibly deprecate
|
|
183
183
|
.#{$prefix}--list-box--light.#{$prefix}--list-box--disabled {
|
|
184
|
-
background-color: $field
|
|
184
|
+
background-color: $field;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
.#{$prefix}--list-box--disabled,
|
|
@@ -371,7 +371,7 @@ $list-box-menu-width: rem(300px);
|
|
|
371
371
|
|
|
372
372
|
// Label for a `list-box__field`
|
|
373
373
|
.#{$prefix}--list-box__label {
|
|
374
|
-
@include type-style('body-
|
|
374
|
+
@include type-style('body-compact-01');
|
|
375
375
|
|
|
376
376
|
overflow: hidden;
|
|
377
377
|
color: $text-primary;
|
|
@@ -536,7 +536,7 @@ $list-box-menu-width: rem(300px);
|
|
|
536
536
|
|
|
537
537
|
// Descendant of a `list-box__menu` that represents a selection for a control
|
|
538
538
|
.#{$prefix}--list-box__menu-item {
|
|
539
|
-
@include type-style('body-
|
|
539
|
+
@include type-style('body-compact-01');
|
|
540
540
|
|
|
541
541
|
position: relative;
|
|
542
542
|
height: rem(40px);
|
|
@@ -556,7 +556,7 @@ $list-box-menu-width: rem(300px);
|
|
|
556
556
|
|
|
557
557
|
// V11: Possibly deprecate
|
|
558
558
|
.#{$prefix}--list-box--light .#{$prefix}--list-box__menu-item:hover {
|
|
559
|
-
background-color: $layer-hover
|
|
559
|
+
background-color: $layer-hover;
|
|
560
560
|
}
|
|
561
561
|
|
|
562
562
|
.#{$prefix}--list-box--sm .#{$prefix}--list-box__menu-item {
|
|
@@ -573,8 +573,7 @@ $list-box-menu-width: rem(300px);
|
|
|
573
573
|
|
|
574
574
|
// V11: Possibly deprecate
|
|
575
575
|
.#{$prefix}--list-box--light .#{$prefix}--list-box__menu-item:active {
|
|
576
|
-
|
|
577
|
-
// background-color: $selected-light-ui;
|
|
576
|
+
background-color: $layer-selected;
|
|
578
577
|
}
|
|
579
578
|
|
|
580
579
|
.#{$prefix}--list-box--disabled
|
|
@@ -727,9 +726,8 @@ $list-box-menu-width: rem(300px);
|
|
|
727
726
|
|
|
728
727
|
// V11: Possibly deprecate
|
|
729
728
|
.#{$prefix}--list-box--light .#{$prefix}--list-box__menu-item--active {
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
// background-color: $selected-light-ui;
|
|
729
|
+
border-bottom-color: $layer-selected;
|
|
730
|
+
background-color: $layer-selected;
|
|
733
731
|
}
|
|
734
732
|
|
|
735
733
|
.#{$prefix}--list-box__menu-item--active:hover,
|
|
@@ -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
|
}
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
// Modal content
|
|
111
111
|
// -----------------------------
|
|
112
112
|
.#{$prefix}--modal-content {
|
|
113
|
-
@include type-style('body-
|
|
113
|
+
@include type-style('body-01');
|
|
114
114
|
|
|
115
115
|
position: relative;
|
|
116
116
|
// Required to accommodate focus outline's negative offset:
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
.#{$prefix}--modal-content p,
|
|
136
136
|
.#{$prefix}--modal-content__regular-content {
|
|
137
137
|
padding-right: 20%;
|
|
138
|
-
@include type-style('body-
|
|
138
|
+
@include type-style('body-01');
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
//TO-DO: remove .#{$prefix}--modal-content--with-form in v11 since hasForm has been deprecated\
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
.#{$prefix}--modal-header__heading {
|
|
167
|
-
@include type-style('
|
|
167
|
+
@include type-style('heading-03');
|
|
168
168
|
|
|
169
169
|
color: $text-primary;
|
|
170
170
|
}
|
|
@@ -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
|
}
|
|
@@ -129,7 +130,7 @@
|
|
|
129
130
|
background-color: $field-02;
|
|
130
131
|
}
|
|
131
132
|
|
|
132
|
-
.#{$prefix}--overflow-menu-options[data-floating-menu-direction='bottom']::after {
|
|
133
|
+
.#{$prefix}--overflow-menu-options[data-floating-menu-direction='bottom']:not(.#{$prefix}--breadcrumb-menu-options)::after {
|
|
133
134
|
top: rem(-3px);
|
|
134
135
|
left: 0;
|
|
135
136
|
width: rem(40px);
|
|
@@ -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;
|
|
@@ -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;
|