@solid-design-system/styles 1.4.1 → 1.5.1

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.
Files changed (48) hide show
  1. package/CHANGELOG.md +13 -2
  2. package/cdn/modules/pagination.css +1 -1
  3. package/cdn/solid-styles.css +1 -1
  4. package/cdn-versioned/modules/chip.css +1 -1
  5. package/cdn-versioned/modules/container.css +1 -1
  6. package/cdn-versioned/modules/copyright.css +1 -1
  7. package/cdn-versioned/modules/display.css +1 -1
  8. package/cdn-versioned/modules/flag.css +1 -1
  9. package/cdn-versioned/modules/footnotes.css +1 -1
  10. package/cdn-versioned/modules/headline.css +1 -1
  11. package/cdn-versioned/modules/hidden-links.css +1 -1
  12. package/cdn-versioned/modules/interactive.css +1 -1
  13. package/cdn-versioned/modules/leadtext.css +1 -1
  14. package/cdn-versioned/modules/list.css +1 -1
  15. package/cdn-versioned/modules/mark.css +1 -1
  16. package/cdn-versioned/modules/media.css +1 -1
  17. package/cdn-versioned/modules/meta.css +1 -1
  18. package/cdn-versioned/modules/pagination.css +1 -1
  19. package/cdn-versioned/modules/paragraph.css +1 -1
  20. package/cdn-versioned/modules/prose.css +1 -1
  21. package/cdn-versioned/modules/status-badge.css +1 -1
  22. package/cdn-versioned/modules/table-cell.css +1 -1
  23. package/cdn-versioned/modules/table.css +1 -1
  24. package/cdn-versioned/solid-styles.css +1 -1
  25. package/dist/modules/pagination.css +259 -303
  26. package/dist/solid-styles.css +129 -45
  27. package/dist-versioned/modules/chip.css +6 -6
  28. package/dist-versioned/modules/container.css +45 -45
  29. package/dist-versioned/modules/copyright.css +11 -11
  30. package/dist-versioned/modules/display.css +9 -9
  31. package/dist-versioned/modules/flag.css +6 -6
  32. package/dist-versioned/modules/footnotes.css +26 -26
  33. package/dist-versioned/modules/headline.css +67 -67
  34. package/dist-versioned/modules/hidden-links.css +7 -7
  35. package/dist-versioned/modules/interactive.css +38 -38
  36. package/dist-versioned/modules/leadtext.css +8 -8
  37. package/dist-versioned/modules/list.css +47 -47
  38. package/dist-versioned/modules/mark.css +2 -2
  39. package/dist-versioned/modules/media.css +7 -7
  40. package/dist-versioned/modules/meta.css +12 -12
  41. package/dist-versioned/modules/pagination.css +291 -335
  42. package/dist-versioned/modules/paragraph.css +8 -8
  43. package/dist-versioned/modules/prose.css +231 -231
  44. package/dist-versioned/modules/status-badge.css +8 -8
  45. package/dist-versioned/modules/table-cell.css +23 -23
  46. package/dist-versioned/modules/table.css +4 -4
  47. package/dist-versioned/solid-styles.css +510 -426
  48. package/package.json +2 -2
@@ -8,463 +8,419 @@
8
8
  */
9
9
 
10
10
  .sd-pagination > :not(ul) {
11
-
12
- position: absolute;
13
-
14
- height: var(--sd-spacing-0-25, 1px) /* 1px */;
15
-
16
- width: var(--sd-spacing-0-25, 1px) /* 1px */;
17
-
18
- overflow: hidden
11
+ position: absolute;
12
+ height: var(--sd-spacing-0-25, 1px) /* 1px */;
13
+ width: var(--sd-spacing-0-25, 1px) /* 1px */;
14
+ overflow: hidden;
19
15
  }
20
16
 
21
17
  .sd-pagination ul {
22
-
23
- display: flex;
24
-
25
- align-items: center;
26
-
27
- gap: var(--sd-spacing-2, 0.5rem) /* 8px */
18
+ display: flex;
19
+ align-items: center;
20
+ gap: var(--sd-spacing-2, 0.5rem) /* 8px */;
28
21
  }
29
22
 
30
- .sd-pagination ul li a {
31
-
32
- display: flex;
33
-
34
- align-items: center;
23
+ .sd-pagination ul li button {
24
+ all: unset;
25
+ border-width: 2px;
26
+ border-style: solid;
27
+ border-color: transparent;
28
+ }
35
29
 
36
- justify-content: center;
37
-
38
-
39
-
40
- color: rgb(var(--sd-color-primary, 0 53 142) / var(--tw-text-opacity, 1)) /* Primary brand color for text */;
41
-
42
- text-decoration-line: none;
43
-
44
- transition-property: color;
45
-
46
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
47
-
48
- transition-duration: 150ms
30
+ .sd-pagination ul li button:hover:not([disabled]) {
31
+ cursor: pointer;
49
32
  }
50
33
 
51
- .sd-pagination ul li a:hover:not([disabled]) {
52
-
53
-
54
-
55
- color: rgb(var(--sd-color-primary-500, 70 109 175) / var(--tw-text-opacity, 1)) /* Used for hover interaction */
34
+ .sd-pagination ul li a,
35
+ .sd-pagination ul li button {
36
+ display: flex;
37
+ align-items: center;
38
+ justify-content: center;
39
+
40
+ color: rgb(var(--sd-color-primary, 0 53 142) / var(--tw-text-opacity, 1)) /* Primary brand color for text */;
41
+ text-decoration-line: none;
42
+ transition-property: color;
43
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
44
+ transition-duration: 150ms;
56
45
  }
57
46
 
58
- .sd-pagination ul li a:active:not([disabled]) {
59
-
60
-
61
-
62
- color: rgb(var(--sd-color-primary-800, 5 21 48) / var(--tw-text-opacity, 1)) /* Used for pressed interaction */
47
+ .sd-pagination ul li a:hover:not([disabled]),
48
+ .sd-pagination ul li button:hover:not([disabled]) {
49
+
50
+ color: rgb(var(--sd-color-primary-500, 70 109 175) / var(--tw-text-opacity, 1)) /* Used for hover interaction */;
63
51
  }
64
52
 
65
- .sd-pagination ul li a:focus-visible {
66
-
67
- outline-style: solid;
68
-
69
- outline-width: 2px;
70
-
71
- outline-offset: 2px;
53
+ .sd-pagination ul li a:active:not([disabled]),
54
+ .sd-pagination ul li button:active:not([disabled]) {
55
+
56
+ color: rgb(var(--sd-color-primary-800, 5 21 48) / var(--tw-text-opacity, 1)) /* Used for pressed interaction */;
57
+ }
72
58
 
73
- outline-color: rgb(var(--sd-color-primary, 0 53 142) / 1) /* Used for buttons, select field, focus state */
59
+ .sd-pagination ul li a:focus-visible, .sd-pagination ul li button:focus-visible {
60
+ outline-style: solid;
61
+ outline-width: 2px;
62
+ outline-offset: 2px;
63
+ outline-color: rgb(var(--sd-color-primary, 0 53 142) / 1) /* Used for buttons, select field, focus state */;
74
64
  }
75
65
 
76
66
  /* Previous and Next */
77
67
 
78
68
  .sd-pagination ul li:first-child,
79
69
  .sd-pagination ul li:last-child {
80
-
81
- height: var(--sd-spacing-12, 3rem) /* 48px */;
82
-
83
- width: var(--sd-spacing-12, 3rem) /* 48px */;
84
-
85
- font-size: var(--sd-font-size-xl, 1.5rem) /* 24px */
70
+ height: var(--sd-spacing-12, 3rem) /* 48px */;
71
+ width: var(--sd-spacing-12, 3rem) /* 48px */;
72
+ font-size: var(--sd-font-size-xl, 1.5rem) /* 24px */;
86
73
  }
87
74
 
88
- .sd-pagination ul li:first-child a, .sd-pagination ul li:last-child a {
89
-
90
- height: 100%;
91
-
92
- width: 100%
75
+ .sd-pagination ul li:first-child a,
76
+ .sd-pagination ul li:first-child button,
77
+ .sd-pagination ul li:last-child a,
78
+ .sd-pagination ul li:last-child button {
79
+ height: 100%;
80
+ width: 100%;
93
81
  }
94
82
 
95
83
  /* Numbers */
96
84
 
97
85
  .sd-pagination ul li {
98
-
99
- display: flex;
100
-
101
- height: var(--sd-spacing-8, 2rem) /* 32px */;
102
-
103
- width: var(--sd-spacing-8, 2rem) /* 32px */;
104
-
105
- align-items: center;
106
-
107
- justify-content: center;
108
-
109
- text-align: center
86
+ display: flex;
87
+ height: var(--sd-spacing-8, 2rem) /* 32px */;
88
+ width: var(--sd-spacing-8, 2rem) /* 32px */;
89
+ align-items: center;
90
+ justify-content: center;
91
+ text-align: center;
110
92
  }
111
93
 
112
- .sd-pagination ul li:not(:first-child):not(:last-child) a {
113
-
114
- height: 100%;
115
-
116
- width: 100%;
117
-
118
- border-bottom-width: 2px;
119
-
120
- border-bottom-color: transparent
94
+ .sd-pagination ul li:not(:first-child):not(:last-child) a,
95
+ .sd-pagination ul li:not(:first-child):not(:last-child) button {
96
+ height: 100%;
97
+ width: 100%;
98
+ border-bottom-width: 2px;
99
+ border-bottom-color: transparent;
121
100
  }
122
101
 
123
- .sd-pagination ul li:not(:first-child):not(:last-child) a[aria-current] {
124
-
125
- --tw-border-opacity: 1;
126
-
127
- border-bottom-color: rgb(var(--sd-color-accent, 45 157 0) / var(--tw-border-opacity, 1)) /* Used to highlight active/selected elements
128
- */
102
+ .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] {
103
+ --tw-border-opacity: 1;
104
+ border-bottom-color: rgb(var(--sd-color-accent, 45 157 0) / var(--tw-border-opacity, 1)) /* Used to highlight active/selected elements
105
+ */;
129
106
  }
130
107
 
131
- .sd-pagination ul li a[aria-current] {
132
-
133
-
134
-
135
- color: rgb(var(--sd-color-black, 24 24 24) / var(--tw-text-opacity, 1)) /* Default text color */
108
+ .sd-pagination ul li a[aria-current],
109
+ .sd-pagination ul li button[aria-current] {
110
+
111
+ color: rgb(var(--sd-color-black, 24 24 24) / var(--tw-text-opacity, 1)) /* Default text color */;
136
112
  }
137
113
 
138
- .sd-pagination ul li a[aria-current]:hover:not([disabled]) {
139
-
140
-
141
-
142
- color: rgb(var(--sd-color-black, 24 24 24) / var(--tw-text-opacity, 1)) /* Default text color */
114
+ .sd-pagination ul li a[aria-current]:hover:not([disabled]),
115
+ .sd-pagination ul li button[aria-current]:hover:not([disabled]) {
116
+
117
+ color: rgb(var(--sd-color-black, 24 24 24) / var(--tw-text-opacity, 1)) /* Default text color */;
143
118
  }
144
119
 
145
120
  /* Previous and next arrow when it has no href */
146
121
 
147
122
  .sd-pagination ul li:first-child:has(a:not([href])) a,
148
- .sd-pagination ul li:last-child:has(a:not([href])) a {
149
-
150
- cursor: not-allowed;
151
-
152
-
153
-
154
- color: rgb(var(--sd-color-neutral-500, 174 174 174) / var(--tw-text-opacity, 1)) /* Used for disabled state */
123
+ .sd-pagination ul li:last-child:has(a:not([href])) a,
124
+ .sd-pagination ul li:first-child:has(button[disabled]) button,
125
+ .sd-pagination ul li:last-child:has(button[disabled]) button {
126
+ cursor: not-allowed;
127
+
128
+ color: rgb(var(--sd-color-neutral-500, 174 174 174) / var(--tw-text-opacity, 1)) /* Used for disabled state */;
155
129
  }
156
130
 
157
131
  .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]) {
159
-
160
-
161
-
162
- color: rgb(var(--sd-color-neutral-500, 174 174 174) / var(--tw-text-opacity, 1)) /* Used for disabled state */
132
+ .sd-pagination ul li:last-child:has(a:not([href])) a:hover:not([disabled]),
133
+ .sd-pagination ul li:first-child:has(button[disabled]) button:hover:not([disabled]),
134
+ .sd-pagination ul li:last-child:has(button[disabled]) button:hover:not([disabled]) {
135
+
136
+ color: rgb(var(--sd-color-neutral-500, 174 174 174) / var(--tw-text-opacity, 1)) /* Used for disabled state */;
163
137
  }
164
138
 
165
139
  /* Numbers */
166
140
 
167
141
  /* Number which is not current */
168
142
 
169
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):not(:has(a[aria-current])) {
170
-
171
- pointer-events: none;
172
-
173
- position: absolute
143
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):not(:has(a[aria-current], button[aria-current])) {
144
+ pointer-events: none;
145
+ position: absolute;
174
146
  }
175
147
 
176
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):not(:has(a[aria-current])) a {
177
-
178
- display: none
148
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):not(:has(a[aria-current], button[aria-current])) a,
149
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):not(:has(a[aria-current], button[aria-current])) button {
150
+ display: none;
179
151
  }
180
152
 
181
153
  /* Apply ellipsis to (n + 2 && n - 1) */
182
154
 
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) {
185
-
186
- pointer-events: auto !important;
187
-
188
- position: relative !important
155
+ .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) {
156
+ pointer-events: auto !important;
157
+ position: relative !important;
189
158
  }
190
159
 
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 {
193
-
194
- --tw-content: '...';
195
-
196
- content: var(--tw-content)
160
+ .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 {
161
+ --tw-content: '...';
162
+ content: var(--tw-content);
197
163
  }
198
164
 
199
165
  .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(2),
200
166
  .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(+ li a[aria-current]),
202
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(a[aria-current]) + li {
203
-
204
- pointer-events: auto !important;
205
-
206
- position: relative !important
167
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
168
+ + li a[aria-current],
169
+ + li button[aria-current]),
170
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
171
+ a[aria-current],
172
+ button[aria-current]) + li {
173
+ pointer-events: auto !important;
174
+ position: relative !important;
207
175
  }
208
176
 
209
177
  .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(2)::after,
210
178
  .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(+ li a[aria-current])::after,
212
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(a[aria-current]) + li::after {
213
-
214
- content: var(--tw-content) !important;
215
-
216
- display: none !important
217
- }
218
-
219
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(2) a, .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(2) a, .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(+ li a[aria-current]) a, .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(a[aria-current]) + li a {
220
-
221
- display: flex !important
179
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
180
+ + li a[aria-current],
181
+ + li button[aria-current])::after,
182
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
183
+ a[aria-current],
184
+ button[aria-current]) + li::after {
185
+ content: var(--tw-content) !important;
186
+ display: none !important;
187
+ }
188
+
189
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(2) a,
190
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(2) button,
191
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(2) a,
192
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(2) button,
193
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
194
+ + li a[aria-current],
195
+ + li button[aria-current]) a,
196
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
197
+ + li a[aria-current],
198
+ + li button[aria-current]) button,
199
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
200
+ a[aria-current],
201
+ button[aria-current]) + li a,
202
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
203
+ a[aria-current],
204
+ button[aria-current]) + li button {
205
+ display: flex !important;
222
206
  }
223
207
 
224
208
  /* When one of the first 4 pages is selected */
225
209
 
226
210
  /* Show until the 5th page (forward) */
227
211
 
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) {
229
-
230
- pointer-events: auto;
231
-
232
- position: relative
212
+ .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) {
213
+ pointer-events: auto;
214
+ position: relative;
233
215
  }
234
216
 
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 {
236
-
237
- content: var(--tw-content);
238
-
239
- display: none
217
+ .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 {
218
+ content: var(--tw-content);
219
+ display: none;
240
220
  }
241
221
 
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 {
243
-
244
- display: flex
222
+ .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,
223
+ .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 {
224
+ display: flex;
245
225
  }
246
226
 
247
227
  /* Show ellipsis on the 6th */
248
228
 
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 {
250
-
251
- pointer-events: none;
252
-
253
- position: relative
229
+ .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 {
230
+ pointer-events: none;
231
+ position: relative;
254
232
  }
255
233
 
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 {
257
-
258
- --tw-content: '...';
259
-
260
- content: var(--tw-content)
234
+ .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 {
235
+ --tw-content: '...';
236
+ content: var(--tw-content);
261
237
  }
262
238
 
263
239
  /* When one of the first 4 pages is selected, show until the 5th page (backward) */
264
240
 
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]) {
266
-
267
- pointer-events: auto;
268
-
269
- position: relative
241
+ .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]) {
242
+ pointer-events: auto;
243
+ position: relative;
270
244
  }
271
245
 
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 {
273
-
274
- content: var(--tw-content);
275
-
276
- display: none
246
+ .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 {
247
+ content: var(--tw-content);
248
+ display: none;
277
249
  }
278
250
 
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 {
280
-
281
- display: flex
251
+ .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,
252
+ .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 {
253
+ display: flex;
282
254
  }
283
255
 
284
256
  /* When one of the last 4 pages is selected, show the last 4 pages (forward) */
285
257
 
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) {
287
-
288
- pointer-events: auto;
289
-
290
- position: relative
258
+ .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) {
259
+ pointer-events: auto;
260
+ position: relative;
291
261
  }
292
262
 
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 {
294
-
295
- content: var(--tw-content);
296
-
297
- display: none
263
+ .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 {
264
+ content: var(--tw-content);
265
+ display: none;
298
266
  }
299
267
 
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 {
301
-
302
- display: flex
268
+ .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,
269
+ .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 {
270
+ display: flex;
303
271
  }
304
272
 
305
273
  /* When one of the last 4 pages is selected, show the last 4 pages (backward) */
306
274
 
307
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 6):has(~ :nth-last-child(-n + 5) a[aria-current]) {
308
-
309
- pointer-events: auto;
310
-
311
- position: relative
275
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 6):has(
276
+ ~ :nth-last-child(-n + 5) a[aria-current],
277
+ ~ :nth-last-child(-n + 5) button[aria-current]
278
+ ) {
279
+ pointer-events: auto;
280
+ position: relative;
312
281
  }
313
282
 
314
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 6):has(~ :nth-last-child(-n + 5) a[aria-current])::after {
315
-
316
- content: var(--tw-content);
317
-
318
- display: none
283
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 6):has(
284
+ ~ :nth-last-child(-n + 5) a[aria-current],
285
+ ~ :nth-last-child(-n + 5) button[aria-current]
286
+ )::after {
287
+ content: var(--tw-content);
288
+ display: none;
319
289
  }
320
290
 
321
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 6):has(~ :nth-last-child(-n + 5) a[aria-current]) a {
322
-
323
- display: flex
291
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 6):has(
292
+ ~ :nth-last-child(-n + 5) a[aria-current],
293
+ ~ :nth-last-child(-n + 5) button[aria-current]
294
+ ) a,
295
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 6):has(
296
+ ~ :nth-last-child(-n + 5) a[aria-current],
297
+ ~ :nth-last-child(-n + 5) button[aria-current]
298
+ ) button {
299
+ display: flex;
324
300
  }
325
301
 
326
302
  /* Show ellipsis on the 6th to last */
327
303
 
328
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(7):has(~ :nth-last-child(-n + 5) a[aria-current]) {
329
-
330
- pointer-events: none;
331
-
332
- position: relative
304
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(7):has(
305
+ ~ :nth-last-child(-n + 5) a[aria-current],
306
+ ~ :nth-last-child(-n + 5) button[aria-current]
307
+ ) {
308
+ pointer-events: none;
309
+ position: relative;
333
310
  }
334
311
 
335
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(7):has(~ :nth-last-child(-n + 5) a[aria-current])::after {
336
-
337
- --tw-content: '...';
338
-
339
- content: var(--tw-content)
312
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(7):has(
313
+ ~ :nth-last-child(-n + 5) a[aria-current],
314
+ ~ :nth-last-child(-n + 5) button[aria-current]
315
+ )::after {
316
+ --tw-content: '...';
317
+ content: var(--tw-content);
340
318
  }
341
319
 
342
320
  /* When it only has 5 numbers + 2 prev & next buttons */
343
321
 
344
322
  .sd-pagination:not(.sd-pagination--simple) ul:has(> li:last-child:nth-child(-n + 9)) li {
345
-
346
- pointer-events: auto;
347
-
348
- position: relative
323
+ pointer-events: auto;
324
+ position: relative;
349
325
  }
350
326
 
351
327
  .sd-pagination:not(.sd-pagination--simple) ul:has(> li:last-child:nth-child(-n + 9)) li::after {
352
-
353
- content: var(--tw-content);
354
-
355
- display: none
328
+ content: var(--tw-content);
329
+ display: none;
356
330
  }
357
331
 
358
- .sd-pagination:not(.sd-pagination--simple) ul:has(> li:last-child:nth-child(-n + 9)) li a {
359
-
360
- display: flex
332
+ .sd-pagination:not(.sd-pagination--simple) ul:has(> li:last-child:nth-child(-n + 9)) li a,
333
+ .sd-pagination:not(.sd-pagination--simple) ul:has(> li:last-child:nth-child(-n + 9)) li button {
334
+ display: flex;
361
335
  }
362
336
 
363
337
  .sd-pagination--simple ul li:nth-child(2) {
364
-
365
- position: relative;
366
-
367
- margin-inline-end: var(--sd-spacing-5, 1.25rem) /* 20px */;
368
-
369
- width: var(--sd-spacing-8, 2rem) /* 32px */;
370
-
371
- border-bottom-width: 2px;
372
-
373
- --tw-border-opacity: 1;
374
-
375
- border-bottom-color: rgb(var(--sd-color-accent, 45 157 0) / var(--tw-border-opacity, 1)) /* Used to highlight active/selected elements
376
- */
338
+ position: relative;
339
+ margin-inline-end: var(--sd-spacing-5, 1.25rem) /* 20px */;
340
+ width: var(--sd-spacing-8, 2rem) /* 32px */;
341
+ border-bottom-width: 2px;
342
+ --tw-border-opacity: 1;
343
+ border-bottom-color: rgb(var(--sd-color-accent, 45 157 0) / var(--tw-border-opacity, 1)) /* Used to highlight active/selected elements
344
+ */;
377
345
  }
378
346
 
379
347
  .sd-pagination--simple ul li:nth-child(2)::after {
380
-
381
- position: absolute;
382
-
383
- right: -18px;
384
-
385
- --tw-scale-y: 1.5;
386
-
387
- transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
388
-
389
- --tw-content: '/';
390
-
391
- content: var(--tw-content)
348
+ position: absolute;
349
+ right: -18px;
350
+ --tw-scale-y: 1.5;
351
+ transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
352
+ --tw-content: '/';
353
+ content: var(--tw-content);
392
354
  }
393
355
 
394
- .sd-pagination--simple ul li:nth-last-child(2) {
356
+ .sd-pagination--simple ul li:nth-child(2) {
395
357
 
396
- border-bottom-width: 2px;
358
+ border-bottom-style: solid;
359
+ }
397
360
 
398
- border-bottom-color: transparent
361
+ .sd-pagination--simple ul li:nth-last-child(2) {
362
+ border-bottom-width: 2px;
363
+ border-bottom-color: transparent;
399
364
  }
400
365
 
401
366
  .sd-pagination--inverted ul li::after {
402
-
403
- content: var(--tw-content);
404
-
405
-
406
-
407
- color: rgb(var(--sd-color-white, 255 255 255) / var(--tw-text-opacity, 1)) /* Inverted text color */
367
+ content: var(--tw-content);
368
+
369
+ color: rgb(var(--sd-color-white, 255 255 255) / var(--tw-text-opacity, 1)) /* Inverted text color */;
408
370
  }
409
371
 
410
372
  .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 {
412
-
413
-
414
-
415
- color: rgb(var(--sd-color-neutral-600, 136 136 136) / var(--tw-text-opacity, 1)) /* Used for inverted disabled state */
373
+ .sd-pagination--inverted ul li:last-child:has(a:not([href])) a,
374
+ .sd-pagination--inverted ul li:first-child:has(button[disabled]) button,
375
+ .sd-pagination--inverted ul li:last-child:has(button[disabled]) button {
376
+
377
+ color: rgb(var(--sd-color-neutral-600, 136 136 136) / var(--tw-text-opacity, 1)) /* Used for inverted disabled state */;
416
378
  }
417
379
 
418
380
  .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]) {
420
-
421
-
422
-
423
- color: rgb(var(--sd-color-neutral-600, 136 136 136) / var(--tw-text-opacity, 1)) /* Used for inverted disabled state */
381
+ .sd-pagination--inverted ul li:last-child:has(a:not([href])) a:hover:not([disabled]),
382
+ .sd-pagination--inverted ul li:first-child:has(button[disabled]) button:hover:not([disabled]),
383
+ .sd-pagination--inverted ul li:last-child:has(button[disabled]) button:hover:not([disabled]) {
384
+
385
+ color: rgb(var(--sd-color-neutral-600, 136 136 136) / var(--tw-text-opacity, 1)) /* Used for inverted disabled state */;
424
386
  }
425
387
 
426
388
  .sd-pagination--inverted ul li a,
427
- .sd-pagination--inverted ul li a[aria-current] {
428
-
429
-
430
-
431
- color: rgb(var(--sd-color-white, 255 255 255) / var(--tw-text-opacity, 1)) /* Inverted text color */
389
+ .sd-pagination--inverted ul li a[aria-current],
390
+ .sd-pagination--inverted ul li button,
391
+ .sd-pagination--inverted ul li button[aria-current] {
392
+
393
+ color: rgb(var(--sd-color-white, 255 255 255) / var(--tw-text-opacity, 1)) /* Inverted text color */;
432
394
  }
433
395
 
434
396
  .sd-pagination--inverted ul li a:hover:not([disabled]),
435
- .sd-pagination--inverted ul li a[aria-current]:hover:not([disabled]) {
436
-
437
-
438
-
439
- 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 */
397
+ .sd-pagination--inverted ul li a[aria-current]:hover:not([disabled]),
398
+ .sd-pagination--inverted ul li button:hover:not([disabled]),
399
+ .sd-pagination--inverted ul li button[aria-current]:hover:not([disabled]) {
400
+
401
+ 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
402
  }
441
403
 
442
404
  .sd-pagination--inverted ul li a:active:not([disabled]),
443
- .sd-pagination--inverted ul li a[aria-current]:active:not([disabled]) {
444
-
445
-
446
-
447
- color: rgb(var(--sd-color-primary-400, 153 171 208) / var(--tw-text-opacity, 1)) /* Additional text inverted color
448
- Used for inverted pressed interaction text link */
405
+ .sd-pagination--inverted ul li a[aria-current]:active:not([disabled]),
406
+ .sd-pagination--inverted ul li button:active:not([disabled]),
407
+ .sd-pagination--inverted ul li button[aria-current]:active:not([disabled]) {
408
+
409
+ color: rgb(var(--sd-color-primary-400, 153 171 208) / var(--tw-text-opacity, 1)) /* Additional text inverted color
410
+ Used for inverted pressed interaction text link */;
449
411
  }
450
412
 
451
- .sd-pagination--inverted ul li a:focus-visible, .sd-pagination--inverted ul li a[aria-current]:focus-visible {
452
-
453
- outline-color: rgb(var(--sd-color-white, 255 255 255) / 1) /* Used for buttons, inverted focus state */
413
+ .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 {
414
+ outline-color: rgb(var(--sd-color-white, 255 255 255) / 1) /* Used for buttons, inverted focus state */;
454
415
  }
455
416
 
456
417
  .sd-pagination--inverted.sd-pagination--simple ul li {
457
-
458
-
459
-
460
- color: rgb(var(--sd-color-white, 255 255 255) / var(--tw-text-opacity, 1)) /* Inverted text color */
418
+
419
+ color: rgb(var(--sd-color-white, 255 255 255) / var(--tw-text-opacity, 1)) /* Inverted text color */;
461
420
  }
462
421
 
463
422
  .sd-pagination--inverted.sd-pagination--simple ul li::after {
464
-
465
- content: var(--tw-content);
466
-
467
-
468
-
469
- color: rgb(var(--sd-color-white, 255 255 255) / var(--tw-text-opacity, 1)) /* Inverted text color */
423
+ content: var(--tw-content);
424
+
425
+ color: rgb(var(--sd-color-white, 255 255 255) / var(--tw-text-opacity, 1)) /* Inverted text color */;
470
426
  }