@carbon/styles 1.92.0 → 1.93.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/styles",
|
|
3
3
|
"description": "Styles for the Carbon Design System",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.93.0-rc.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"scss/**/*.css",
|
|
76
76
|
"css/**/*.css"
|
|
77
77
|
],
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "dff507858b43de91b300a98fa1bec24d38aaeb48"
|
|
79
79
|
}
|
|
@@ -36,11 +36,14 @@
|
|
|
36
36
|
justify-content: space-between;
|
|
37
37
|
background-color: $layer;
|
|
38
38
|
border-block-start: 1px solid $border-subtle;
|
|
39
|
+
container-name: pagination;
|
|
40
|
+
container-type: inline-size;
|
|
39
41
|
inline-size: calc(100% - 1px);
|
|
40
42
|
min-block-size: convert.to-rem(40px);
|
|
41
43
|
overflow-x: auto;
|
|
42
44
|
|
|
43
|
-
|
|
45
|
+
// 42rem = 'md' breakpoint
|
|
46
|
+
@container pagination (min-width: 42rem) {
|
|
44
47
|
overflow: initial;
|
|
45
48
|
|
|
46
49
|
.#{$prefix}--pagination__control-buttons {
|
|
@@ -49,7 +52,7 @@
|
|
|
49
52
|
}
|
|
50
53
|
|
|
51
54
|
// mobile friendly pagination
|
|
52
|
-
@
|
|
55
|
+
@container pagination (max-width: 42rem) {
|
|
53
56
|
.#{$prefix}--pagination__left > *,
|
|
54
57
|
.#{$prefix}--pagination__right > * {
|
|
55
58
|
display: none;
|
|
@@ -92,6 +95,13 @@
|
|
|
92
95
|
line-height: convert.to-rem(40px);
|
|
93
96
|
|
|
94
97
|
min-inline-size: auto;
|
|
98
|
+
|
|
99
|
+
// Firefox-specific fix for three-digit numbers
|
|
100
|
+
// stylelint-disable-next-line at-rule-no-vendor-prefix
|
|
101
|
+
@-moz-document url-prefix() {
|
|
102
|
+
padding-inline-end: $spacing-05;
|
|
103
|
+
text-overflow: clip;
|
|
104
|
+
}
|
|
95
105
|
}
|
|
96
106
|
|
|
97
107
|
// Extra specificity is needed to preserve padding
|
|
@@ -184,13 +194,14 @@
|
|
|
184
194
|
.#{$prefix}--pagination__left {
|
|
185
195
|
padding: 0 $spacing-05 0 0;
|
|
186
196
|
|
|
187
|
-
|
|
197
|
+
// 42rem = 'md' breakpoint width
|
|
198
|
+
@container pagination (min-width: 42rem) {
|
|
188
199
|
padding: 0 $spacing-05;
|
|
189
200
|
}
|
|
190
201
|
}
|
|
191
202
|
|
|
192
203
|
.#{$prefix}--pagination__text {
|
|
193
|
-
@
|
|
204
|
+
@container pagination (min-width: 42rem) {
|
|
194
205
|
display: inline-block;
|
|
195
206
|
}
|
|
196
207
|
}
|
|
@@ -30,12 +30,15 @@
|
|
|
30
30
|
background-color: $layer;
|
|
31
31
|
border-block-end: 1px solid transparent;
|
|
32
32
|
border-block-start: 1px solid $border-subtle;
|
|
33
|
+
container-name: pagination;
|
|
34
|
+
container-type: inline-size;
|
|
33
35
|
inline-size: 100%;
|
|
34
36
|
min-block-size: convert.to-rem(40px);
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
.#{$prefix}--unstable-pagination__text {
|
|
38
|
-
|
|
40
|
+
// 42rem = 'md' breakpoint width
|
|
41
|
+
@container pagination (min-width: 42rem) {
|
|
39
42
|
display: inline-block;
|
|
40
43
|
}
|
|
41
44
|
|
|
@@ -160,7 +163,8 @@
|
|
|
160
163
|
inset-block-start: 50%;
|
|
161
164
|
transform: translateY(-50%);
|
|
162
165
|
|
|
163
|
-
|
|
166
|
+
// 42rem = 'md' breakpoint width
|
|
167
|
+
@container pagination (min-width: 42rem) {
|
|
164
168
|
inset-inline-end: $spacing-05;
|
|
165
169
|
}
|
|
166
170
|
}
|