@solid-design-system/styles 1.3.3 → 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 +21 -2
- package/cdn/modules/interactive.css +1 -1
- package/cdn/modules/pagination.css +1 -1
- package/cdn/modules/prose.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/interactive.css +5 -1
- package/dist/modules/pagination.css +113 -45
- package/dist/modules/prose.css +5 -1
- package/dist/solid-styles.css +118 -46
- 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 +43 -39
- 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 +236 -232
- 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 +499 -427
- package/package.json +2 -2
@@ -1,13 +1,13 @@
|
|
1
1
|
/**
|
2
2
|
* Used to split large content into several pages, allowing users to navigate between them instead of displaying all information on a single page.
|
3
|
-
* @name sd-1-
|
3
|
+
* @name sd-1-5-0-pagination
|
4
4
|
* @status stable
|
5
5
|
* @since 1.3
|
6
|
-
* @variant { simple } sd-1-
|
7
|
-
* @boolean sd-1-
|
6
|
+
* @variant { simple } sd-1-5-0-pagination--... The pagination format.
|
7
|
+
* @boolean sd-1-5-0-pagination--inverted Inverts the pagination style.
|
8
8
|
*/
|
9
9
|
|
10
|
-
.sd-1-
|
10
|
+
.sd-1-5-0-pagination > :not(ul) {
|
11
11
|
|
12
12
|
position: absolute;
|
13
13
|
|
@@ -18,7 +18,7 @@
|
|
18
18
|
overflow: hidden
|
19
19
|
}
|
20
20
|
|
21
|
-
.sd-1-
|
21
|
+
.sd-1-5-0-pagination ul {
|
22
22
|
|
23
23
|
display: flex;
|
24
24
|
|
@@ -27,7 +27,8 @@
|
|
27
27
|
gap: var(--sd-spacing-2, 0.5rem) /* 8px */
|
28
28
|
}
|
29
29
|
|
30
|
-
.sd-1-
|
30
|
+
.sd-1-5-0-pagination ul li a,
|
31
|
+
.sd-1-5-0-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-1-
|
52
|
+
.sd-1-5-0-pagination ul li a:hover:not([disabled]),
|
53
|
+
.sd-1-5-0-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-1-
|
60
|
+
.sd-1-5-0-pagination ul li a:active:not([disabled]),
|
61
|
+
.sd-1-5-0-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-1-
|
68
|
+
.sd-1-5-0-pagination ul li a:focus-visible, .sd-1-5-0-pagination ul li button:focus-visible {
|
66
69
|
|
67
70
|
outline-style: solid;
|
68
71
|
|
@@ -75,8 +78,8 @@
|
|
75
78
|
|
76
79
|
/* Previous and Next */
|
77
80
|
|
78
|
-
.sd-1-
|
79
|
-
.sd-1-
|
81
|
+
.sd-1-5-0-pagination ul li:first-child,
|
82
|
+
.sd-1-5-0-pagination ul li:last-child {
|
80
83
|
|
81
84
|
height: var(--sd-spacing-12, 3rem) /* 48px */;
|
82
85
|
|
@@ -85,7 +88,10 @@
|
|
85
88
|
font-size: var(--sd-font-size-xl, 1.5rem) /* 24px */
|
86
89
|
}
|
87
90
|
|
88
|
-
.sd-1-
|
91
|
+
.sd-1-5-0-pagination ul li:first-child a,
|
92
|
+
.sd-1-5-0-pagination ul li:first-child button,
|
93
|
+
.sd-1-5-0-pagination ul li:last-child a,
|
94
|
+
.sd-1-5-0-pagination ul li:last-child button {
|
89
95
|
|
90
96
|
height: 100%;
|
91
97
|
|
@@ -94,7 +100,7 @@
|
|
94
100
|
|
95
101
|
/* Numbers */
|
96
102
|
|
97
|
-
.sd-1-
|
103
|
+
.sd-1-5-0-pagination ul li {
|
98
104
|
|
99
105
|
display: flex;
|
100
106
|
|
@@ -109,7 +115,8 @@
|
|
109
115
|
text-align: center
|
110
116
|
}
|
111
117
|
|
112
|
-
.sd-1-
|
118
|
+
.sd-1-5-0-pagination ul li:not(:first-child):not(:last-child) a,
|
119
|
+
.sd-1-5-0-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-1-
|
130
|
+
.sd-1-5-0-pagination ul li:not(:first-child):not(:last-child) a[aria-current], .sd-1-5-0-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-1-
|
138
|
+
.sd-1-5-0-pagination ul li a[aria-current],
|
139
|
+
.sd-1-5-0-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-1-
|
146
|
+
.sd-1-5-0-pagination ul li a[aria-current]:hover:not([disabled]),
|
147
|
+
.sd-1-5-0-pagination ul li button[aria-current]:hover:not([disabled]) {
|
139
148
|
|
140
149
|
|
141
150
|
|
@@ -144,8 +153,10 @@
|
|
144
153
|
|
145
154
|
/* Previous and next arrow when it has no href */
|
146
155
|
|
147
|
-
.sd-1-
|
148
|
-
.sd-1-
|
156
|
+
.sd-1-5-0-pagination ul li:first-child:has(a:not([href])) a,
|
157
|
+
.sd-1-5-0-pagination ul li:last-child:has(a:not([href])) a,
|
158
|
+
.sd-1-5-0-pagination ul li:first-child:has(button[disabled]) button,
|
159
|
+
.sd-1-5-0-pagination ul li:last-child:has(button[disabled]) button {
|
149
160
|
|
150
161
|
cursor: not-allowed;
|
151
162
|
|
@@ -154,8 +165,10 @@
|
|
154
165
|
color: rgb(var(--sd-color-neutral-500, 174 174 174) / var(--tw-text-opacity, 1)) /* Used for disabled state */
|
155
166
|
}
|
156
167
|
|
157
|
-
.sd-1-
|
158
|
-
.sd-1-
|
168
|
+
.sd-1-5-0-pagination ul li:first-child:has(a:not([href])) a:hover:not([disabled]),
|
169
|
+
.sd-1-5-0-pagination ul li:last-child:has(a:not([href])) a:hover:not([disabled]),
|
170
|
+
.sd-1-5-0-pagination ul li:first-child:has(button[disabled]) button:hover:not([disabled]),
|
171
|
+
.sd-1-5-0-pagination ul li:last-child:has(button[disabled]) button:hover:not([disabled]) {
|
159
172
|
|
160
173
|
|
161
174
|
|
@@ -166,57 +179,79 @@
|
|
166
179
|
|
167
180
|
/* Number which is not current */
|
168
181
|
|
169
|
-
.sd-1-
|
182
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-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-1-
|
189
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-pagination--simple) ul li:not(:first-child):not(:last-child):not(:has(a[aria-current], button[aria-current])) a,
|
190
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-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-1-
|
184
|
-
.sd-1-3-3-pagination:not(.sd-1-3-3-pagination--simple) ul li:not(:first-child):not(:last-child):has(a[aria-current]) + li + li:not(:last-child) {
|
197
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-pagination--simple) ul li:not(:first-child):not(:last-child):has(+ li + li a[aria-current], + li + li button[aria-current]), .sd-1-5-0-pagination:not(.sd-1-5-0-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-1-
|
192
|
-
.sd-1-3-3-pagination:not(.sd-1-3-3-pagination--simple) ul li:not(:first-child):not(:last-child):has(a[aria-current]) + li + li:not(:last-child)::after {
|
204
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-pagination--simple) ul li:not(:first-child):not(:last-child):has(+ li + li a[aria-current], + li + li button[aria-current])::after, .sd-1-5-0-pagination:not(.sd-1-5-0-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
|
|
196
208
|
content: var(--tw-content)
|
197
209
|
}
|
198
210
|
|
199
|
-
.sd-1-
|
200
|
-
.sd-1-
|
201
|
-
.sd-1-
|
202
|
-
|
211
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(2),
|
212
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(2),
|
213
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
214
|
+
+ li a[aria-current],
|
215
|
+
+ li button[aria-current]),
|
216
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-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
|
|
206
222
|
position: relative !important
|
207
223
|
}
|
208
224
|
|
209
|
-
.sd-1-
|
210
|
-
.sd-1-
|
211
|
-
.sd-1-
|
212
|
-
|
225
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(2)::after,
|
226
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(2)::after,
|
227
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
228
|
+
+ li a[aria-current],
|
229
|
+
+ li button[aria-current])::after,
|
230
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-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-1-
|
239
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(2) a,
|
240
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(2) button,
|
241
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(2) a,
|
242
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(2) button,
|
243
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
244
|
+
+ li a[aria-current],
|
245
|
+
+ li button[aria-current]) a,
|
246
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
247
|
+
+ li a[aria-current],
|
248
|
+
+ li button[aria-current]) button,
|
249
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
250
|
+
a[aria-current],
|
251
|
+
button[aria-current]) + li a,
|
252
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-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-1-
|
263
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-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-1-
|
270
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-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-1-
|
277
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-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-1-5-0-pagination:not(.sd-1-5-0-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-1-
|
285
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-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-1-
|
292
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-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-1-
|
301
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-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-1-
|
308
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-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-1-
|
315
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-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-1-5-0-pagination:not(.sd-1-5-0-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-1-
|
323
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-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-1-
|
330
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-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-1-
|
337
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-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-1-5-0-pagination:not(.sd-1-5-0-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-1-
|
345
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-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-1-
|
355
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-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-1-
|
365
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-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-1-5-0-pagination:not(.sd-1-5-0-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-1-
|
379
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-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-1-
|
389
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-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
|
|
@@ -341,26 +398,27 @@
|
|
341
398
|
|
342
399
|
/* When it only has 5 numbers + 2 prev & next buttons */
|
343
400
|
|
344
|
-
.sd-1-
|
401
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-pagination--simple) ul:has(> li:last-child:nth-child(-n + 9)) li {
|
345
402
|
|
346
403
|
pointer-events: auto;
|
347
404
|
|
348
405
|
position: relative
|
349
406
|
}
|
350
407
|
|
351
|
-
.sd-1-
|
408
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-pagination--simple) ul:has(> li:last-child:nth-child(-n + 9)) li::after {
|
352
409
|
|
353
410
|
content: var(--tw-content);
|
354
411
|
|
355
412
|
display: none
|
356
413
|
}
|
357
414
|
|
358
|
-
.sd-1-
|
415
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-pagination--simple) ul:has(> li:last-child:nth-child(-n + 9)) li a,
|
416
|
+
.sd-1-5-0-pagination:not(.sd-1-5-0-pagination--simple) ul:has(> li:last-child:nth-child(-n + 9)) li button {
|
359
417
|
|
360
418
|
display: flex
|
361
419
|
}
|
362
420
|
|
363
|
-
.sd-1-
|
421
|
+
.sd-1-5-0-pagination--simple ul li:nth-child(2) {
|
364
422
|
|
365
423
|
position: relative;
|
366
424
|
|
@@ -376,7 +434,7 @@
|
|
376
434
|
*/
|
377
435
|
}
|
378
436
|
|
379
|
-
.sd-1-
|
437
|
+
.sd-1-5-0-pagination--simple ul li:nth-child(2)::after {
|
380
438
|
|
381
439
|
position: absolute;
|
382
440
|
|
@@ -391,14 +449,14 @@
|
|
391
449
|
content: var(--tw-content)
|
392
450
|
}
|
393
451
|
|
394
|
-
.sd-1-
|
452
|
+
.sd-1-5-0-pagination--simple ul li:nth-last-child(2) {
|
395
453
|
|
396
454
|
border-bottom-width: 2px;
|
397
455
|
|
398
456
|
border-bottom-color: transparent
|
399
457
|
}
|
400
458
|
|
401
|
-
.sd-1-
|
459
|
+
.sd-1-5-0-pagination--inverted ul li::after {
|
402
460
|
|
403
461
|
content: var(--tw-content);
|
404
462
|
|
@@ -407,40 +465,50 @@
|
|
407
465
|
color: rgb(var(--sd-color-white, 255 255 255) / var(--tw-text-opacity, 1)) /* Inverted text color */
|
408
466
|
}
|
409
467
|
|
410
|
-
.sd-1-
|
411
|
-
.sd-1-
|
468
|
+
.sd-1-5-0-pagination--inverted ul li:first-child:has(a:not([href])) a,
|
469
|
+
.sd-1-5-0-pagination--inverted ul li:last-child:has(a:not([href])) a,
|
470
|
+
.sd-1-5-0-pagination--inverted ul li:first-child:has(button[disabled]) button,
|
471
|
+
.sd-1-5-0-pagination--inverted ul li:last-child:has(button[disabled]) button {
|
412
472
|
|
413
473
|
|
414
474
|
|
415
475
|
color: rgb(var(--sd-color-neutral-600, 136 136 136) / var(--tw-text-opacity, 1)) /* Used for inverted disabled state */
|
416
476
|
}
|
417
477
|
|
418
|
-
.sd-1-
|
419
|
-
.sd-1-
|
478
|
+
.sd-1-5-0-pagination--inverted ul li:first-child:has(a:not([href])) a:hover:not([disabled]),
|
479
|
+
.sd-1-5-0-pagination--inverted ul li:last-child:has(a:not([href])) a:hover:not([disabled]),
|
480
|
+
.sd-1-5-0-pagination--inverted ul li:first-child:has(button[disabled]) button:hover:not([disabled]),
|
481
|
+
.sd-1-5-0-pagination--inverted ul li:last-child:has(button[disabled]) button:hover:not([disabled]) {
|
420
482
|
|
421
483
|
|
422
484
|
|
423
485
|
color: rgb(var(--sd-color-neutral-600, 136 136 136) / var(--tw-text-opacity, 1)) /* Used for inverted disabled state */
|
424
486
|
}
|
425
487
|
|
426
|
-
.sd-1-
|
427
|
-
.sd-1-
|
488
|
+
.sd-1-5-0-pagination--inverted ul li a,
|
489
|
+
.sd-1-5-0-pagination--inverted ul li a[aria-current],
|
490
|
+
.sd-1-5-0-pagination--inverted ul li button,
|
491
|
+
.sd-1-5-0-pagination--inverted ul li button[aria-current] {
|
428
492
|
|
429
493
|
|
430
494
|
|
431
495
|
color: rgb(var(--sd-color-white, 255 255 255) / var(--tw-text-opacity, 1)) /* Inverted text color */
|
432
496
|
}
|
433
497
|
|
434
|
-
.sd-1-
|
435
|
-
.sd-1-
|
498
|
+
.sd-1-5-0-pagination--inverted ul li a:hover:not([disabled]),
|
499
|
+
.sd-1-5-0-pagination--inverted ul li a[aria-current]:hover:not([disabled]),
|
500
|
+
.sd-1-5-0-pagination--inverted ul li button:hover:not([disabled]),
|
501
|
+
.sd-1-5-0-pagination--inverted ul li button[aria-current]:hover:not([disabled]) {
|
436
502
|
|
437
503
|
|
438
504
|
|
439
505
|
color: rgb(var(--sd-color-primary-200, 224 233 243) / var(--tw-text-opacity, 1)) /* Used for inverted hover interaction text link and inverted pressed interaction button label */
|
440
506
|
}
|
441
507
|
|
442
|
-
.sd-1-
|
443
|
-
.sd-1-
|
508
|
+
.sd-1-5-0-pagination--inverted ul li a:active:not([disabled]),
|
509
|
+
.sd-1-5-0-pagination--inverted ul li a[aria-current]:active:not([disabled]),
|
510
|
+
.sd-1-5-0-pagination--inverted ul li button:active:not([disabled]),
|
511
|
+
.sd-1-5-0-pagination--inverted ul li button[aria-current]:active:not([disabled]) {
|
444
512
|
|
445
513
|
|
446
514
|
|
@@ -448,19 +516,19 @@
|
|
448
516
|
Used for inverted pressed interaction text link */
|
449
517
|
}
|
450
518
|
|
451
|
-
.sd-1-
|
519
|
+
.sd-1-5-0-pagination--inverted ul li a:focus-visible, .sd-1-5-0-pagination--inverted ul li a[aria-current]:focus-visible, .sd-1-5-0-pagination--inverted ul li button:focus-visible, .sd-1-5-0-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
|
}
|
455
523
|
|
456
|
-
.sd-1-
|
524
|
+
.sd-1-5-0-pagination--inverted.sd-1-5-0-pagination--simple ul li {
|
457
525
|
|
458
526
|
|
459
527
|
|
460
528
|
color: rgb(var(--sd-color-white, 255 255 255) / var(--tw-text-opacity, 1)) /* Inverted text color */
|
461
529
|
}
|
462
530
|
|
463
|
-
.sd-1-
|
531
|
+
.sd-1-5-0-pagination--inverted.sd-1-5-0-pagination--simple ul li::after {
|
464
532
|
|
465
533
|
content: var(--tw-content);
|
466
534
|
|
@@ -1,28 +1,28 @@
|
|
1
1
|
/**
|
2
2
|
* A paragraph is used to display blocks of text. It uses the base font size and can contain bold and/or link styles.
|
3
|
-
* @name sd-1-
|
3
|
+
* @name sd-1-5-0-paragraph
|
4
4
|
* @status stable
|
5
5
|
* @since 1.7
|
6
|
-
* @variant { sm } sd-1-
|
7
|
-
* @boolean sd-1-
|
6
|
+
* @variant { sm } sd-1-5-0-paragraph--size-... The paragraph's font size.
|
7
|
+
* @boolean sd-1-5-0-paragraph--inverted Inverts the paragraph text.
|
8
8
|
*/
|
9
|
-
.sd-1-
|
10
|
-
.sd-1-
|
9
|
+
.sd-1-5-0-paragraph,
|
10
|
+
.sd-1-5-0-prose p {
|
11
11
|
font-size: var(--sd-font-size-base, 1rem) /* 16px */;
|
12
12
|
font-weight: 400;
|
13
13
|
line-height: var(--sd-line-height-normal, 150%) /* Used for body copy and smaller titles */;
|
14
14
|
|
15
15
|
color: rgb(var(--sd-color-black, 24 24 24) / var(--tw-text-opacity, 1)) /* Default text color */
|
16
16
|
}
|
17
|
-
.sd-1-
|
17
|
+
.sd-1-5-0-paragraph--size-sm, .sd-1-5-0-prose p--size-sm {
|
18
18
|
font-size: var(--sd-font-size-sm, 0.875rem) /* 14px */;
|
19
19
|
font-weight: 400;
|
20
20
|
line-height: var(--sd-line-height-normal, 150%) /* Used for body copy and smaller titles */;
|
21
21
|
|
22
22
|
color: rgb(var(--sd-color-black, 24 24 24) / var(--tw-text-opacity, 1)) /* Default text color */
|
23
23
|
}
|
24
|
-
.sd-1-
|
25
|
-
.sd-1-
|
24
|
+
.sd-1-5-0-paragraph--inverted,
|
25
|
+
.sd-1-5-0-prose--inverted p {
|
26
26
|
|
27
27
|
color: rgb(var(--sd-color-white, 255 255 255) / var(--tw-text-opacity, 1)) /* Inverted text color */
|
28
28
|
}
|