@solid-design-system/styles 1.4.1 → 1.5.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/CHANGELOG.md +7 -2
- package/cdn/modules/pagination.css +1 -1
- package/cdn/solid-styles.css +1 -1
- package/cdn-versioned/modules/chip.css +1 -1
- package/cdn-versioned/modules/container.css +1 -1
- package/cdn-versioned/modules/copyright.css +1 -1
- package/cdn-versioned/modules/display.css +1 -1
- package/cdn-versioned/modules/flag.css +1 -1
- package/cdn-versioned/modules/footnotes.css +1 -1
- package/cdn-versioned/modules/headline.css +1 -1
- package/cdn-versioned/modules/hidden-links.css +1 -1
- package/cdn-versioned/modules/interactive.css +1 -1
- package/cdn-versioned/modules/leadtext.css +1 -1
- package/cdn-versioned/modules/list.css +1 -1
- package/cdn-versioned/modules/mark.css +1 -1
- package/cdn-versioned/modules/media.css +1 -1
- package/cdn-versioned/modules/meta.css +1 -1
- package/cdn-versioned/modules/pagination.css +1 -1
- package/cdn-versioned/modules/paragraph.css +1 -1
- package/cdn-versioned/modules/prose.css +1 -1
- package/cdn-versioned/modules/status-badge.css +1 -1
- package/cdn-versioned/modules/table-cell.css +1 -1
- package/cdn-versioned/modules/table.css +1 -1
- package/cdn-versioned/solid-styles.css +1 -1
- package/dist/modules/pagination.css +113 -45
- package/dist/solid-styles.css +113 -45
- package/dist-versioned/modules/chip.css +6 -6
- package/dist-versioned/modules/container.css +45 -45
- package/dist-versioned/modules/copyright.css +11 -11
- package/dist-versioned/modules/display.css +9 -9
- package/dist-versioned/modules/flag.css +6 -6
- package/dist-versioned/modules/footnotes.css +26 -26
- package/dist-versioned/modules/headline.css +67 -67
- package/dist-versioned/modules/hidden-links.css +7 -7
- package/dist-versioned/modules/interactive.css +38 -38
- package/dist-versioned/modules/leadtext.css +8 -8
- package/dist-versioned/modules/list.css +47 -47
- package/dist-versioned/modules/mark.css +2 -2
- package/dist-versioned/modules/media.css +7 -7
- package/dist-versioned/modules/meta.css +12 -12
- package/dist-versioned/modules/pagination.css +140 -72
- package/dist-versioned/modules/paragraph.css +8 -8
- package/dist-versioned/modules/prose.css +231 -231
- package/dist-versioned/modules/status-badge.css +8 -8
- package/dist-versioned/modules/table-cell.css +23 -23
- package/dist-versioned/modules/table.css +4 -4
- package/dist-versioned/solid-styles.css +494 -426
- package/package.json +2 -2
@@ -27,7 +27,8 @@
|
|
27
27
|
gap: var(--sd-spacing-2, 0.5rem) /* 8px */
|
28
28
|
}
|
29
29
|
|
30
|
-
.sd-pagination ul li a
|
30
|
+
.sd-pagination ul li a,
|
31
|
+
.sd-pagination ul li button {
|
31
32
|
|
32
33
|
display: flex;
|
33
34
|
|
@@ -48,21 +49,23 @@
|
|
48
49
|
transition-duration: 150ms
|
49
50
|
}
|
50
51
|
|
51
|
-
.sd-pagination ul li a:hover:not([disabled])
|
52
|
+
.sd-pagination ul li a:hover:not([disabled]),
|
53
|
+
.sd-pagination ul li button:hover:not([disabled]) {
|
52
54
|
|
53
55
|
|
54
56
|
|
55
57
|
color: rgb(var(--sd-color-primary-500, 70 109 175) / var(--tw-text-opacity, 1)) /* Used for hover interaction */
|
56
58
|
}
|
57
59
|
|
58
|
-
.sd-pagination ul li a:active:not([disabled])
|
60
|
+
.sd-pagination ul li a:active:not([disabled]),
|
61
|
+
.sd-pagination ul li button:active:not([disabled]) {
|
59
62
|
|
60
63
|
|
61
64
|
|
62
65
|
color: rgb(var(--sd-color-primary-800, 5 21 48) / var(--tw-text-opacity, 1)) /* Used for pressed interaction */
|
63
66
|
}
|
64
67
|
|
65
|
-
.sd-pagination ul li a:focus-visible {
|
68
|
+
.sd-pagination ul li a:focus-visible, .sd-pagination ul li button:focus-visible {
|
66
69
|
|
67
70
|
outline-style: solid;
|
68
71
|
|
@@ -85,7 +88,10 @@
|
|
85
88
|
font-size: var(--sd-font-size-xl, 1.5rem) /* 24px */
|
86
89
|
}
|
87
90
|
|
88
|
-
.sd-pagination ul li:first-child a,
|
91
|
+
.sd-pagination ul li:first-child a,
|
92
|
+
.sd-pagination ul li:first-child button,
|
93
|
+
.sd-pagination ul li:last-child a,
|
94
|
+
.sd-pagination ul li:last-child button {
|
89
95
|
|
90
96
|
height: 100%;
|
91
97
|
|
@@ -109,7 +115,8 @@
|
|
109
115
|
text-align: center
|
110
116
|
}
|
111
117
|
|
112
|
-
.sd-pagination ul li:not(:first-child):not(:last-child) a
|
118
|
+
.sd-pagination ul li:not(:first-child):not(:last-child) a,
|
119
|
+
.sd-pagination ul li:not(:first-child):not(:last-child) button {
|
113
120
|
|
114
121
|
height: 100%;
|
115
122
|
|
@@ -120,7 +127,7 @@
|
|
120
127
|
border-bottom-color: transparent
|
121
128
|
}
|
122
129
|
|
123
|
-
.sd-pagination ul li:not(:first-child):not(:last-child) a[aria-current] {
|
130
|
+
.sd-pagination ul li:not(:first-child):not(:last-child) a[aria-current], .sd-pagination ul li:not(:first-child):not(:last-child) button[aria-current] {
|
124
131
|
|
125
132
|
--tw-border-opacity: 1;
|
126
133
|
|
@@ -128,14 +135,16 @@
|
|
128
135
|
*/
|
129
136
|
}
|
130
137
|
|
131
|
-
.sd-pagination ul li a[aria-current]
|
138
|
+
.sd-pagination ul li a[aria-current],
|
139
|
+
.sd-pagination ul li button[aria-current] {
|
132
140
|
|
133
141
|
|
134
142
|
|
135
143
|
color: rgb(var(--sd-color-black, 24 24 24) / var(--tw-text-opacity, 1)) /* Default text color */
|
136
144
|
}
|
137
145
|
|
138
|
-
.sd-pagination ul li a[aria-current]:hover:not([disabled])
|
146
|
+
.sd-pagination ul li a[aria-current]:hover:not([disabled]),
|
147
|
+
.sd-pagination ul li button[aria-current]:hover:not([disabled]) {
|
139
148
|
|
140
149
|
|
141
150
|
|
@@ -145,7 +154,9 @@
|
|
145
154
|
/* Previous and next arrow when it has no href */
|
146
155
|
|
147
156
|
.sd-pagination ul li:first-child:has(a:not([href])) a,
|
148
|
-
.sd-pagination ul li:last-child:has(a:not([href])) a
|
157
|
+
.sd-pagination ul li:last-child:has(a:not([href])) a,
|
158
|
+
.sd-pagination ul li:first-child:has(button[disabled]) button,
|
159
|
+
.sd-pagination ul li:last-child:has(button[disabled]) button {
|
149
160
|
|
150
161
|
cursor: not-allowed;
|
151
162
|
|
@@ -155,7 +166,9 @@
|
|
155
166
|
}
|
156
167
|
|
157
168
|
.sd-pagination ul li:first-child:has(a:not([href])) a:hover:not([disabled]),
|
158
|
-
.sd-pagination ul li:last-child:has(a:not([href])) a:hover:not([disabled])
|
169
|
+
.sd-pagination ul li:last-child:has(a:not([href])) a:hover:not([disabled]),
|
170
|
+
.sd-pagination ul li:first-child:has(button[disabled]) button:hover:not([disabled]),
|
171
|
+
.sd-pagination ul li:last-child:has(button[disabled]) button:hover:not([disabled]) {
|
159
172
|
|
160
173
|
|
161
174
|
|
@@ -166,30 +179,29 @@
|
|
166
179
|
|
167
180
|
/* Number which is not current */
|
168
181
|
|
169
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):not(:has(a[aria-current])) {
|
182
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):not(:has(a[aria-current], button[aria-current])) {
|
170
183
|
|
171
184
|
pointer-events: none;
|
172
185
|
|
173
186
|
position: absolute
|
174
187
|
}
|
175
188
|
|
176
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):not(:has(a[aria-current])) a
|
189
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):not(:has(a[aria-current], button[aria-current])) a,
|
190
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):not(:has(a[aria-current], button[aria-current])) button {
|
177
191
|
|
178
192
|
display: none
|
179
193
|
}
|
180
194
|
|
181
195
|
/* Apply ellipsis to (n + 2 && n - 1) */
|
182
196
|
|
183
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(+ li + li a[aria-current]),
|
184
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(a[aria-current]) + li + li:not(:last-child) {
|
197
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(+ li + li a[aria-current], + li + li button[aria-current]), .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(a[aria-current], button[aria-current]) + li + li:not(:last-child) {
|
185
198
|
|
186
199
|
pointer-events: auto !important;
|
187
200
|
|
188
201
|
position: relative !important
|
189
202
|
}
|
190
203
|
|
191
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(+ li + li a[aria-current])::after,
|
192
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(a[aria-current]) + li + li:not(:last-child)::after {
|
204
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(+ li + li a[aria-current], + li + li button[aria-current])::after, .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(a[aria-current], button[aria-current]) + li + li:not(:last-child)::after {
|
193
205
|
|
194
206
|
--tw-content: '...';
|
195
207
|
|
@@ -198,8 +210,12 @@
|
|
198
210
|
|
199
211
|
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(2),
|
200
212
|
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(2),
|
201
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
202
|
-
|
213
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
214
|
+
+ li a[aria-current],
|
215
|
+
+ li button[aria-current]),
|
216
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
217
|
+
a[aria-current],
|
218
|
+
button[aria-current]) + li {
|
203
219
|
|
204
220
|
pointer-events: auto !important;
|
205
221
|
|
@@ -208,15 +224,34 @@
|
|
208
224
|
|
209
225
|
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(2)::after,
|
210
226
|
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(2)::after,
|
211
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
212
|
-
|
227
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
228
|
+
+ li a[aria-current],
|
229
|
+
+ li button[aria-current])::after,
|
230
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
231
|
+
a[aria-current],
|
232
|
+
button[aria-current]) + li::after {
|
213
233
|
|
214
234
|
content: var(--tw-content) !important;
|
215
235
|
|
216
236
|
display: none !important
|
217
237
|
}
|
218
238
|
|
219
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(2) a,
|
239
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(2) a,
|
240
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(2) button,
|
241
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(2) a,
|
242
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(2) button,
|
243
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
244
|
+
+ li a[aria-current],
|
245
|
+
+ li button[aria-current]) a,
|
246
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
247
|
+
+ li a[aria-current],
|
248
|
+
+ li button[aria-current]) button,
|
249
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
250
|
+
a[aria-current],
|
251
|
+
button[aria-current]) + li a,
|
252
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
253
|
+
a[aria-current],
|
254
|
+
button[aria-current]) + li button {
|
220
255
|
|
221
256
|
display: flex !important
|
222
257
|
}
|
@@ -225,35 +260,36 @@
|
|
225
260
|
|
226
261
|
/* Show until the 5th page (forward) */
|
227
262
|
|
228
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(a[aria-current]) ~ :nth-child(-n + 6) {
|
263
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(a[aria-current], button[aria-current]) ~ :nth-child(-n + 6) {
|
229
264
|
|
230
265
|
pointer-events: auto;
|
231
266
|
|
232
267
|
position: relative
|
233
268
|
}
|
234
269
|
|
235
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(a[aria-current]) ~ :nth-child(-n + 6)::after {
|
270
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(a[aria-current], button[aria-current]) ~ :nth-child(-n + 6)::after {
|
236
271
|
|
237
272
|
content: var(--tw-content);
|
238
273
|
|
239
274
|
display: none
|
240
275
|
}
|
241
276
|
|
242
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(a[aria-current]) ~ :nth-child(-n + 6) a
|
277
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(a[aria-current], button[aria-current]) ~ :nth-child(-n + 6) a,
|
278
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(a[aria-current], button[aria-current]) ~ :nth-child(-n + 6) button {
|
243
279
|
|
244
280
|
display: flex
|
245
281
|
}
|
246
282
|
|
247
283
|
/* Show ellipsis on the 6th */
|
248
284
|
|
249
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(a[aria-current]) ~ :nth-child(6):not(:last-child) + li {
|
285
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(a[aria-current], button[aria-current]) ~ :nth-child(6):not(:last-child) + li {
|
250
286
|
|
251
287
|
pointer-events: none;
|
252
288
|
|
253
289
|
position: relative
|
254
290
|
}
|
255
291
|
|
256
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(a[aria-current]) ~ :nth-child(6):not(:last-child) + li::after {
|
292
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(a[aria-current], button[aria-current]) ~ :nth-child(6):not(:last-child) + li::after {
|
257
293
|
|
258
294
|
--tw-content: '...';
|
259
295
|
|
@@ -262,77 +298,98 @@
|
|
262
298
|
|
263
299
|
/* When one of the first 4 pages is selected, show until the 5th page (backward) */
|
264
300
|
|
265
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(~ :nth-child(-n + 5) a[aria-current]) {
|
301
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(~ :nth-child(-n + 5) a[aria-current], ~ :nth-child(-n + 5) button[aria-current]) {
|
266
302
|
|
267
303
|
pointer-events: auto;
|
268
304
|
|
269
305
|
position: relative
|
270
306
|
}
|
271
307
|
|
272
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(~ :nth-child(-n + 5) a[aria-current])::after {
|
308
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(~ :nth-child(-n + 5) a[aria-current], ~ :nth-child(-n + 5) button[aria-current])::after {
|
273
309
|
|
274
310
|
content: var(--tw-content);
|
275
311
|
|
276
312
|
display: none
|
277
313
|
}
|
278
314
|
|
279
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(~ :nth-child(-n + 5) a[aria-current]) a
|
315
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(~ :nth-child(-n + 5) a[aria-current], ~ :nth-child(-n + 5) button[aria-current]) a,
|
316
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(~ :nth-child(-n + 5) a[aria-current], ~ :nth-child(-n + 5) button[aria-current]) button {
|
280
317
|
|
281
318
|
display: flex
|
282
319
|
}
|
283
320
|
|
284
321
|
/* When one of the last 4 pages is selected, show the last 4 pages (forward) */
|
285
322
|
|
286
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 5):has(a[aria-current]) ~ :nth-last-child(-n + 5):not(:first-child):not(:last-child) {
|
323
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 5):has(a[aria-current], button[aria-current]) ~ :nth-last-child(-n + 5):not(:first-child):not(:last-child) {
|
287
324
|
|
288
325
|
pointer-events: auto;
|
289
326
|
|
290
327
|
position: relative
|
291
328
|
}
|
292
329
|
|
293
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 5):has(a[aria-current]) ~ :nth-last-child(-n + 5):not(:first-child):not(:last-child)::after {
|
330
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 5):has(a[aria-current], button[aria-current]) ~ :nth-last-child(-n + 5):not(:first-child):not(:last-child)::after {
|
294
331
|
|
295
332
|
content: var(--tw-content);
|
296
333
|
|
297
334
|
display: none
|
298
335
|
}
|
299
336
|
|
300
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 5):has(a[aria-current]) ~ :nth-last-child(-n + 5):not(:first-child):not(:last-child) a
|
337
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 5):has(a[aria-current], button[aria-current]) ~ :nth-last-child(-n + 5):not(:first-child):not(:last-child) a,
|
338
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 5):has(a[aria-current], button[aria-current]) ~ :nth-last-child(-n + 5):not(:first-child):not(:last-child) button {
|
301
339
|
|
302
340
|
display: flex
|
303
341
|
}
|
304
342
|
|
305
343
|
/* When one of the last 4 pages is selected, show the last 4 pages (backward) */
|
306
344
|
|
307
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 6):has(
|
345
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 6):has(
|
346
|
+
~ :nth-last-child(-n + 5) a[aria-current],
|
347
|
+
~ :nth-last-child(-n + 5) button[aria-current]
|
348
|
+
) {
|
308
349
|
|
309
350
|
pointer-events: auto;
|
310
351
|
|
311
352
|
position: relative
|
312
353
|
}
|
313
354
|
|
314
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 6):has(
|
355
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 6):has(
|
356
|
+
~ :nth-last-child(-n + 5) a[aria-current],
|
357
|
+
~ :nth-last-child(-n + 5) button[aria-current]
|
358
|
+
)::after {
|
315
359
|
|
316
360
|
content: var(--tw-content);
|
317
361
|
|
318
362
|
display: none
|
319
363
|
}
|
320
364
|
|
321
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 6):has(
|
365
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 6):has(
|
366
|
+
~ :nth-last-child(-n + 5) a[aria-current],
|
367
|
+
~ :nth-last-child(-n + 5) button[aria-current]
|
368
|
+
) a,
|
369
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 6):has(
|
370
|
+
~ :nth-last-child(-n + 5) a[aria-current],
|
371
|
+
~ :nth-last-child(-n + 5) button[aria-current]
|
372
|
+
) button {
|
322
373
|
|
323
374
|
display: flex
|
324
375
|
}
|
325
376
|
|
326
377
|
/* Show ellipsis on the 6th to last */
|
327
378
|
|
328
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(7):has(
|
379
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(7):has(
|
380
|
+
~ :nth-last-child(-n + 5) a[aria-current],
|
381
|
+
~ :nth-last-child(-n + 5) button[aria-current]
|
382
|
+
) {
|
329
383
|
|
330
384
|
pointer-events: none;
|
331
385
|
|
332
386
|
position: relative
|
333
387
|
}
|
334
388
|
|
335
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(7):has(
|
389
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(7):has(
|
390
|
+
~ :nth-last-child(-n + 5) a[aria-current],
|
391
|
+
~ :nth-last-child(-n + 5) button[aria-current]
|
392
|
+
)::after {
|
336
393
|
|
337
394
|
--tw-content: '...';
|
338
395
|
|
@@ -355,7 +412,8 @@
|
|
355
412
|
display: none
|
356
413
|
}
|
357
414
|
|
358
|
-
.sd-pagination:not(.sd-pagination--simple) ul:has(> li:last-child:nth-child(-n + 9)) li a
|
415
|
+
.sd-pagination:not(.sd-pagination--simple) ul:has(> li:last-child:nth-child(-n + 9)) li a,
|
416
|
+
.sd-pagination:not(.sd-pagination--simple) ul:has(> li:last-child:nth-child(-n + 9)) li button {
|
359
417
|
|
360
418
|
display: flex
|
361
419
|
}
|
@@ -408,7 +466,9 @@
|
|
408
466
|
}
|
409
467
|
|
410
468
|
.sd-pagination--inverted ul li:first-child:has(a:not([href])) a,
|
411
|
-
.sd-pagination--inverted ul li:last-child:has(a:not([href])) a
|
469
|
+
.sd-pagination--inverted ul li:last-child:has(a:not([href])) a,
|
470
|
+
.sd-pagination--inverted ul li:first-child:has(button[disabled]) button,
|
471
|
+
.sd-pagination--inverted ul li:last-child:has(button[disabled]) button {
|
412
472
|
|
413
473
|
|
414
474
|
|
@@ -416,7 +476,9 @@
|
|
416
476
|
}
|
417
477
|
|
418
478
|
.sd-pagination--inverted ul li:first-child:has(a:not([href])) a:hover:not([disabled]),
|
419
|
-
.sd-pagination--inverted ul li:last-child:has(a:not([href])) a:hover:not([disabled])
|
479
|
+
.sd-pagination--inverted ul li:last-child:has(a:not([href])) a:hover:not([disabled]),
|
480
|
+
.sd-pagination--inverted ul li:first-child:has(button[disabled]) button:hover:not([disabled]),
|
481
|
+
.sd-pagination--inverted ul li:last-child:has(button[disabled]) button:hover:not([disabled]) {
|
420
482
|
|
421
483
|
|
422
484
|
|
@@ -424,7 +486,9 @@
|
|
424
486
|
}
|
425
487
|
|
426
488
|
.sd-pagination--inverted ul li a,
|
427
|
-
.sd-pagination--inverted ul li a[aria-current]
|
489
|
+
.sd-pagination--inverted ul li a[aria-current],
|
490
|
+
.sd-pagination--inverted ul li button,
|
491
|
+
.sd-pagination--inverted ul li button[aria-current] {
|
428
492
|
|
429
493
|
|
430
494
|
|
@@ -432,7 +496,9 @@
|
|
432
496
|
}
|
433
497
|
|
434
498
|
.sd-pagination--inverted ul li a:hover:not([disabled]),
|
435
|
-
.sd-pagination--inverted ul li a[aria-current]:hover:not([disabled])
|
499
|
+
.sd-pagination--inverted ul li a[aria-current]:hover:not([disabled]),
|
500
|
+
.sd-pagination--inverted ul li button:hover:not([disabled]),
|
501
|
+
.sd-pagination--inverted ul li button[aria-current]:hover:not([disabled]) {
|
436
502
|
|
437
503
|
|
438
504
|
|
@@ -440,7 +506,9 @@
|
|
440
506
|
}
|
441
507
|
|
442
508
|
.sd-pagination--inverted ul li a:active:not([disabled]),
|
443
|
-
.sd-pagination--inverted ul li a[aria-current]:active:not([disabled])
|
509
|
+
.sd-pagination--inverted ul li a[aria-current]:active:not([disabled]),
|
510
|
+
.sd-pagination--inverted ul li button:active:not([disabled]),
|
511
|
+
.sd-pagination--inverted ul li button[aria-current]:active:not([disabled]) {
|
444
512
|
|
445
513
|
|
446
514
|
|
@@ -448,7 +516,7 @@
|
|
448
516
|
Used for inverted pressed interaction text link */
|
449
517
|
}
|
450
518
|
|
451
|
-
.sd-pagination--inverted ul li a:focus-visible, .sd-pagination--inverted ul li a[aria-current]:focus-visible {
|
519
|
+
.sd-pagination--inverted ul li a:focus-visible, .sd-pagination--inverted ul li a[aria-current]:focus-visible, .sd-pagination--inverted ul li button:focus-visible, .sd-pagination--inverted ul li button[aria-current]:focus-visible {
|
452
520
|
|
453
521
|
outline-color: rgb(var(--sd-color-white, 255 255 255) / 1) /* Used for buttons, inverted focus state */
|
454
522
|
}
|