@solid-design-system/styles 1.3.2 → 1.4.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 (52) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/cdn/modules/interactive.css +1 -1
  3. package/cdn/modules/pagination.css +1 -1
  4. package/cdn/modules/prose.css +1 -1
  5. package/cdn/solid-styles.css +1 -1
  6. package/cdn-versioned/modules/chip.css +1 -1
  7. package/cdn-versioned/modules/container.css +1 -1
  8. package/cdn-versioned/modules/copyright.css +1 -1
  9. package/cdn-versioned/modules/display.css +1 -1
  10. package/cdn-versioned/modules/flag.css +1 -1
  11. package/cdn-versioned/modules/footnotes.css +1 -1
  12. package/cdn-versioned/modules/headline.css +1 -1
  13. package/cdn-versioned/modules/hidden-links.css +1 -1
  14. package/cdn-versioned/modules/interactive.css +1 -1
  15. package/cdn-versioned/modules/leadtext.css +1 -1
  16. package/cdn-versioned/modules/list.css +1 -1
  17. package/cdn-versioned/modules/mark.css +1 -1
  18. package/cdn-versioned/modules/media.css +1 -1
  19. package/cdn-versioned/modules/meta.css +1 -1
  20. package/cdn-versioned/modules/pagination.css +1 -1
  21. package/cdn-versioned/modules/paragraph.css +1 -1
  22. package/cdn-versioned/modules/prose.css +1 -1
  23. package/cdn-versioned/modules/status-badge.css +1 -1
  24. package/cdn-versioned/modules/table-cell.css +1 -1
  25. package/cdn-versioned/modules/table.css +1 -1
  26. package/cdn-versioned/solid-styles.css +1 -1
  27. package/dist/modules/interactive.css +5 -1
  28. package/dist/modules/pagination.css +46 -45
  29. package/dist/modules/prose.css +5 -1
  30. package/dist/solid-styles.css +48 -43
  31. package/dist-versioned/modules/chip.css +6 -6
  32. package/dist-versioned/modules/container.css +45 -45
  33. package/dist-versioned/modules/copyright.css +11 -11
  34. package/dist-versioned/modules/display.css +9 -9
  35. package/dist-versioned/modules/flag.css +6 -6
  36. package/dist-versioned/modules/footnotes.css +26 -26
  37. package/dist-versioned/modules/headline.css +67 -67
  38. package/dist-versioned/modules/hidden-links.css +7 -7
  39. package/dist-versioned/modules/interactive.css +43 -39
  40. package/dist-versioned/modules/leadtext.css +8 -8
  41. package/dist-versioned/modules/list.css +47 -47
  42. package/dist-versioned/modules/mark.css +2 -2
  43. package/dist-versioned/modules/media.css +7 -7
  44. package/dist-versioned/modules/meta.css +12 -12
  45. package/dist-versioned/modules/pagination.css +77 -76
  46. package/dist-versioned/modules/paragraph.css +8 -8
  47. package/dist-versioned/modules/prose.css +236 -232
  48. package/dist-versioned/modules/status-badge.css +8 -8
  49. package/dist-versioned/modules/table-cell.css +23 -23
  50. package/dist-versioned/modules/table.css +4 -4
  51. package/dist-versioned/solid-styles.css +433 -428
  52. package/package.json +1 -1
@@ -39,6 +39,8 @@
39
39
 
40
40
  color: rgb(var(--sd-color-primary, 0 53 142) / var(--tw-text-opacity, 1)) /* Primary brand color for text */;
41
41
 
42
+ text-decoration-line: none;
43
+
42
44
  transition-property: color;
43
45
 
44
46
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
@@ -78,7 +80,9 @@
78
80
 
79
81
  height: var(--sd-spacing-12, 3rem) /* 48px */;
80
82
 
81
- width: var(--sd-spacing-12, 3rem) /* 48px */
83
+ width: var(--sd-spacing-12, 3rem) /* 48px */;
84
+
85
+ font-size: var(--sd-font-size-xl, 1.5rem) /* 24px */
82
86
  }
83
87
 
84
88
  .sd-pagination ul li:first-child a, .sd-pagination ul li:last-child a {
@@ -88,13 +92,6 @@
88
92
  width: 100%
89
93
  }
90
94
 
91
- .sd-pagination ul li:first-child sd-icon, .sd-pagination ul li:last-child sd-icon {
92
-
93
- height: var(--sd-spacing-6, 1.5rem) /* 24px */;
94
-
95
- width: var(--sd-spacing-6, 1.5rem) /* 24px */
96
- }
97
-
98
95
  /* Numbers */
99
96
 
100
97
  .sd-pagination ul li {
@@ -112,7 +109,7 @@
112
109
  text-align: center
113
110
  }
114
111
 
115
- .sd-pagination ul li:not(:has(a sd-icon)) a {
112
+ .sd-pagination ul li:not(:first-child):not(:last-child) a {
116
113
 
117
114
  height: 100%;
118
115
 
@@ -123,7 +120,7 @@
123
120
  border-bottom-color: transparent
124
121
  }
125
122
 
126
- .sd-pagination ul li:not(:has(a sd-icon)) a[aria-current] {
123
+ .sd-pagination ul li:not(:first-child):not(:last-child) a[aria-current] {
127
124
 
128
125
  --tw-border-opacity: 1;
129
126
 
@@ -147,7 +144,8 @@
147
144
 
148
145
  /* Previous and next arrow when it has no href */
149
146
 
150
- .sd-pagination ul li:has(a:not([href]) sd-icon) a {
147
+ .sd-pagination ul li:first-child:has(a:not([href])) a,
148
+ .sd-pagination ul li:last-child:has(a:not([href])) a {
151
149
 
152
150
  cursor: not-allowed;
153
151
 
@@ -156,7 +154,8 @@
156
154
  color: rgb(var(--sd-color-neutral-500, 174 174 174) / var(--tw-text-opacity, 1)) /* Used for disabled state */
157
155
  }
158
156
 
159
- .sd-pagination ul li:has(a:not([href]) sd-icon) a:hover:not([disabled]) {
157
+ .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]) {
160
159
 
161
160
 
162
161
 
@@ -167,57 +166,57 @@
167
166
 
168
167
  /* Number which is not current */
169
168
 
170
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):not(:has(a[aria-current])) {
169
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):not(:has(a[aria-current])) {
171
170
 
172
171
  pointer-events: none;
173
172
 
174
173
  position: absolute
175
174
  }
176
175
 
177
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):not(:has(a[aria-current])) a {
176
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):not(:has(a[aria-current])) a {
178
177
 
179
178
  display: none
180
179
  }
181
180
 
182
181
  /* Apply ellipsis to (n + 2 && n - 1) */
183
182
 
184
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(+ li + li a[aria-current]),
185
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(a[aria-current]) + li + li:not(:last-child) {
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) {
186
185
 
187
186
  pointer-events: auto !important;
188
187
 
189
188
  position: relative !important
190
189
  }
191
190
 
192
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(+ li + li a[aria-current])::after,
193
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(a[aria-current]) + li + li:not(:last-child)::after {
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 {
194
193
 
195
194
  --tw-content: '...';
196
195
 
197
196
  content: var(--tw-content)
198
197
  }
199
198
 
200
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(2),
201
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(2),
202
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(+ li a[aria-current]),
203
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(a[aria-current]) + li {
199
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(2),
200
+ .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 {
204
203
 
205
204
  pointer-events: auto !important;
206
205
 
207
206
  position: relative !important
208
207
  }
209
208
 
210
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(2)::after,
211
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(2)::after,
212
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(+ li a[aria-current])::after,
213
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(a[aria-current]) + li::after {
209
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(2)::after,
210
+ .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 {
214
213
 
215
214
  content: var(--tw-content) !important;
216
215
 
217
216
  display: none !important
218
217
  }
219
218
 
220
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(2) a, .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(2) a, .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(+ li a[aria-current]) a, .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(a[aria-current]) + li a {
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 {
221
220
 
222
221
  display: flex !important
223
222
  }
@@ -226,35 +225,35 @@
226
225
 
227
226
  /* Show until the 5th page (forward) */
228
227
 
229
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(-n + 6):has(a[aria-current]) ~ :nth-child(-n + 6) {
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) {
230
229
 
231
230
  pointer-events: auto;
232
231
 
233
232
  position: relative
234
233
  }
235
234
 
236
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(-n + 6):has(a[aria-current]) ~ :nth-child(-n + 6)::after {
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 {
237
236
 
238
237
  content: var(--tw-content);
239
238
 
240
239
  display: none
241
240
  }
242
241
 
243
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(-n + 6):has(a[aria-current]) ~ :nth-child(-n + 6) a {
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 {
244
243
 
245
244
  display: flex
246
245
  }
247
246
 
248
247
  /* Show ellipsis on the 6th */
249
248
 
250
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(-n + 6):has(a[aria-current]) ~ :nth-child(6):not(:last-child) + li {
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 {
251
250
 
252
251
  pointer-events: none;
253
252
 
254
253
  position: relative
255
254
  }
256
255
 
257
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(-n + 6):has(a[aria-current]) ~ :nth-child(6):not(:last-child) + li::after {
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 {
258
257
 
259
258
  --tw-content: '...';
260
259
 
@@ -263,77 +262,77 @@
263
262
 
264
263
  /* When one of the first 4 pages is selected, show until the 5th page (backward) */
265
264
 
266
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(-n + 6):has(~ :nth-child(-n + 5) a[aria-current]) {
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]) {
267
266
 
268
267
  pointer-events: auto;
269
268
 
270
269
  position: relative
271
270
  }
272
271
 
273
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(-n + 6):has(~ :nth-child(-n + 5) a[aria-current])::after {
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 {
274
273
 
275
274
  content: var(--tw-content);
276
275
 
277
276
  display: none
278
277
  }
279
278
 
280
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(-n + 6):has(~ :nth-child(-n + 5) a[aria-current]) a {
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 {
281
280
 
282
281
  display: flex
283
282
  }
284
283
 
285
284
  /* When one of the last 4 pages is selected, show the last 4 pages (forward) */
286
285
 
287
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(-n + 5):has(a[aria-current]) ~ :nth-last-child(-n + 5):not(:has(a sd-icon)) {
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) {
288
287
 
289
288
  pointer-events: auto;
290
289
 
291
290
  position: relative
292
291
  }
293
292
 
294
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(-n + 5):has(a[aria-current]) ~ :nth-last-child(-n + 5):not(:has(a sd-icon))::after {
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 {
295
294
 
296
295
  content: var(--tw-content);
297
296
 
298
297
  display: none
299
298
  }
300
299
 
301
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(-n + 5):has(a[aria-current]) ~ :nth-last-child(-n + 5):not(:has(a sd-icon)) a {
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 {
302
301
 
303
302
  display: flex
304
303
  }
305
304
 
306
305
  /* When one of the last 4 pages is selected, show the last 4 pages (backward) */
307
306
 
308
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(-n + 6):has(~ :nth-last-child(-n + 5) a[aria-current]) {
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]) {
309
308
 
310
309
  pointer-events: auto;
311
310
 
312
311
  position: relative
313
312
  }
314
313
 
315
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(-n + 6):has(~ :nth-last-child(-n + 5) a[aria-current])::after {
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 {
316
315
 
317
316
  content: var(--tw-content);
318
317
 
319
318
  display: none
320
319
  }
321
320
 
322
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(-n + 6):has(~ :nth-last-child(-n + 5) a[aria-current]) a {
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 {
323
322
 
324
323
  display: flex
325
324
  }
326
325
 
327
326
  /* Show ellipsis on the 6th to last */
328
327
 
329
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(7):has(~ :nth-last-child(-n + 5) a[aria-current]) {
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]) {
330
329
 
331
330
  pointer-events: none;
332
331
 
333
332
  position: relative
334
333
  }
335
334
 
336
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(7):has(~ :nth-last-child(-n + 5) a[aria-current])::after {
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 {
337
336
 
338
337
  --tw-content: '...';
339
338
 
@@ -408,14 +407,16 @@
408
407
  color: rgb(var(--sd-color-white, 255 255 255) / var(--tw-text-opacity, 1)) /* Inverted text color */
409
408
  }
410
409
 
411
- .sd-pagination--inverted ul li:has(a:not([href]) sd-icon) a {
410
+ .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
412
 
413
413
 
414
414
 
415
415
  color: rgb(var(--sd-color-neutral-600, 136 136 136) / var(--tw-text-opacity, 1)) /* Used for inverted disabled state */
416
416
  }
417
417
 
418
- .sd-pagination--inverted ul li:has(a:not([href]) sd-icon) a:hover:not([disabled]) {
418
+ .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]) {
419
420
 
420
421
 
421
422
 
@@ -275,8 +275,12 @@
275
275
  color: rgb(var(--sd-color-primary, 0 53 142) / var(--tw-text-opacity, 1)) /* Primary brand color for text */;
276
276
  text-decoration-line: underline;
277
277
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
278
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
279
278
  transition-duration: 150ms;
279
+ transition-duration: var(--sd-duration-fast, 150ms) /* Component State
280
+ Animation of states like hover or pressed
281
+ Microinteractions
282
+ Smooth transitions eg. for buttons or dropdowns */;
283
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
280
284
  }
281
285
 
282
286
  .sd-prose a:hover:not([disabled]),
@@ -636,6 +636,7 @@ Used for inverted pressed interaction text link */;
636
636
  justify-content: center;
637
637
 
638
638
  color: rgb(var(--sd-color-primary, 0 53 142) / var(--tw-text-opacity, 1)) /* Primary brand color for text */;
639
+ text-decoration-line: none;
639
640
  transition-property: color;
640
641
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
641
642
  transition-duration: 150ms;
@@ -664,6 +665,7 @@ Used for inverted pressed interaction text link */;
664
665
  .sd-pagination ul li:last-child {
665
666
  height: var(--sd-spacing-12, 3rem) /* 48px */;
666
667
  width: var(--sd-spacing-12, 3rem) /* 48px */;
668
+ font-size: var(--sd-font-size-xl, 1.5rem) /* 24px */;
667
669
  }
668
670
 
669
671
  .sd-pagination ul li:first-child a, .sd-pagination ul li:last-child a {
@@ -671,11 +673,6 @@ Used for inverted pressed interaction text link */;
671
673
  width: 100%;
672
674
  }
673
675
 
674
- .sd-pagination ul li:first-child sd-icon, .sd-pagination ul li:last-child sd-icon {
675
- height: var(--sd-spacing-6, 1.5rem) /* 24px */;
676
- width: var(--sd-spacing-6, 1.5rem) /* 24px */;
677
- }
678
-
679
676
  /* Numbers */
680
677
 
681
678
  .sd-pagination ul li {
@@ -687,14 +684,14 @@ Used for inverted pressed interaction text link */;
687
684
  text-align: center;
688
685
  }
689
686
 
690
- .sd-pagination ul li:not(:has(a sd-icon)) a {
687
+ .sd-pagination ul li:not(:first-child):not(:last-child) a {
691
688
  height: 100%;
692
689
  width: 100%;
693
690
  border-bottom-width: 2px;
694
691
  border-bottom-color: transparent;
695
692
  }
696
693
 
697
- .sd-pagination ul li:not(:has(a sd-icon)) a[aria-current] {
694
+ .sd-pagination ul li:not(:first-child):not(:last-child) a[aria-current] {
698
695
  --tw-border-opacity: 1;
699
696
  border-bottom-color: rgb(var(--sd-color-accent, 45 157 0) / var(--tw-border-opacity, 1)) /* Used to highlight active/selected elements
700
697
  */;
@@ -712,13 +709,15 @@ Used for inverted pressed interaction text link */;
712
709
 
713
710
  /* Previous and next arrow when it has no href */
714
711
 
715
- .sd-pagination ul li:has(a:not([href]) sd-icon) a {
712
+ .sd-pagination ul li:first-child:has(a:not([href])) a,
713
+ .sd-pagination ul li:last-child:has(a:not([href])) a {
716
714
  cursor: not-allowed;
717
715
 
718
716
  color: rgb(var(--sd-color-neutral-500, 174 174 174) / var(--tw-text-opacity, 1)) /* Used for disabled state */;
719
717
  }
720
718
 
721
- .sd-pagination ul li:has(a:not([href]) sd-icon) a:hover:not([disabled]) {
719
+ .sd-pagination ul li:first-child:has(a:not([href])) a:hover:not([disabled]),
720
+ .sd-pagination ul li:last-child:has(a:not([href])) a:hover:not([disabled]) {
722
721
 
723
722
  color: rgb(var(--sd-color-neutral-500, 174 174 174) / var(--tw-text-opacity, 1)) /* Used for disabled state */;
724
723
  }
@@ -727,46 +726,46 @@ Used for inverted pressed interaction text link */;
727
726
 
728
727
  /* Number which is not current */
729
728
 
730
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):not(:has(a[aria-current])) {
729
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):not(:has(a[aria-current])) {
731
730
  pointer-events: none;
732
731
  position: absolute;
733
732
  }
734
733
 
735
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):not(:has(a[aria-current])) a {
734
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):not(:has(a[aria-current])) a {
736
735
  display: none;
737
736
  }
738
737
 
739
738
  /* Apply ellipsis to (n + 2 && n - 1) */
740
739
 
741
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(+ li + li a[aria-current]),
742
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(a[aria-current]) + li + li:not(:last-child) {
740
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(+ li + li a[aria-current]),
741
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(a[aria-current]) + li + li:not(:last-child) {
743
742
  pointer-events: auto !important;
744
743
  position: relative !important;
745
744
  }
746
745
 
747
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(+ li + li a[aria-current])::after,
748
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(a[aria-current]) + li + li:not(:last-child)::after {
746
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(+ li + li a[aria-current])::after,
747
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(a[aria-current]) + li + li:not(:last-child)::after {
749
748
  --tw-content: '...';
750
749
  content: var(--tw-content);
751
750
  }
752
751
 
753
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(2),
754
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(2),
755
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(+ li a[aria-current]),
756
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(a[aria-current]) + li {
752
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(2),
753
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(2),
754
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(+ li a[aria-current]),
755
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(a[aria-current]) + li {
757
756
  pointer-events: auto !important;
758
757
  position: relative !important;
759
758
  }
760
759
 
761
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(2)::after,
762
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(2)::after,
763
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(+ li a[aria-current])::after,
764
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(a[aria-current]) + li::after {
760
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(2)::after,
761
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(2)::after,
762
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(+ li a[aria-current])::after,
763
+ .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(a[aria-current]) + li::after {
765
764
  content: var(--tw-content) !important;
766
765
  display: none !important;
767
766
  }
768
767
 
769
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(2) a, .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(2) a, .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(+ li a[aria-current]) a, .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(a[aria-current]) + li a {
768
+ .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 {
770
769
  display: flex !important;
771
770
  }
772
771
 
@@ -774,88 +773,88 @@ Used for inverted pressed interaction text link */;
774
773
 
775
774
  /* Show until the 5th page (forward) */
776
775
 
777
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(-n + 6):has(a[aria-current]) ~ :nth-child(-n + 6) {
776
+ .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) {
778
777
  pointer-events: auto;
779
778
  position: relative;
780
779
  }
781
780
 
782
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(-n + 6):has(a[aria-current]) ~ :nth-child(-n + 6)::after {
781
+ .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 {
783
782
  content: var(--tw-content);
784
783
  display: none;
785
784
  }
786
785
 
787
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(-n + 6):has(a[aria-current]) ~ :nth-child(-n + 6) a {
786
+ .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 {
788
787
  display: flex;
789
788
  }
790
789
 
791
790
  /* Show ellipsis on the 6th */
792
791
 
793
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(-n + 6):has(a[aria-current]) ~ :nth-child(6):not(:last-child) + li {
792
+ .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 {
794
793
  pointer-events: none;
795
794
  position: relative;
796
795
  }
797
796
 
798
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(-n + 6):has(a[aria-current]) ~ :nth-child(6):not(:last-child) + li::after {
797
+ .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 {
799
798
  --tw-content: '...';
800
799
  content: var(--tw-content);
801
800
  }
802
801
 
803
802
  /* When one of the first 4 pages is selected, show until the 5th page (backward) */
804
803
 
805
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(-n + 6):has(~ :nth-child(-n + 5) a[aria-current]) {
804
+ .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]) {
806
805
  pointer-events: auto;
807
806
  position: relative;
808
807
  }
809
808
 
810
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(-n + 6):has(~ :nth-child(-n + 5) a[aria-current])::after {
809
+ .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 {
811
810
  content: var(--tw-content);
812
811
  display: none;
813
812
  }
814
813
 
815
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(-n + 6):has(~ :nth-child(-n + 5) a[aria-current]) a {
814
+ .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 {
816
815
  display: flex;
817
816
  }
818
817
 
819
818
  /* When one of the last 4 pages is selected, show the last 4 pages (forward) */
820
819
 
821
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(-n + 5):has(a[aria-current]) ~ :nth-last-child(-n + 5):not(:has(a sd-icon)) {
820
+ .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) {
822
821
  pointer-events: auto;
823
822
  position: relative;
824
823
  }
825
824
 
826
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(-n + 5):has(a[aria-current]) ~ :nth-last-child(-n + 5):not(:has(a sd-icon))::after {
825
+ .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 {
827
826
  content: var(--tw-content);
828
827
  display: none;
829
828
  }
830
829
 
831
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(-n + 5):has(a[aria-current]) ~ :nth-last-child(-n + 5):not(:has(a sd-icon)) a {
830
+ .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 {
832
831
  display: flex;
833
832
  }
834
833
 
835
834
  /* When one of the last 4 pages is selected, show the last 4 pages (backward) */
836
835
 
837
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(-n + 6):has(~ :nth-last-child(-n + 5) a[aria-current]) {
836
+ .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]) {
838
837
  pointer-events: auto;
839
838
  position: relative;
840
839
  }
841
840
 
842
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(-n + 6):has(~ :nth-last-child(-n + 5) a[aria-current])::after {
841
+ .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 {
843
842
  content: var(--tw-content);
844
843
  display: none;
845
844
  }
846
845
 
847
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(-n + 6):has(~ :nth-last-child(-n + 5) a[aria-current]) a {
846
+ .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 {
848
847
  display: flex;
849
848
  }
850
849
 
851
850
  /* Show ellipsis on the 6th to last */
852
851
 
853
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(7):has(~ :nth-last-child(-n + 5) a[aria-current]) {
852
+ .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]) {
854
853
  pointer-events: none;
855
854
  position: relative;
856
855
  }
857
856
 
858
- .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(7):has(~ :nth-last-child(-n + 5) a[aria-current])::after {
857
+ .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 {
859
858
  --tw-content: '...';
860
859
  content: var(--tw-content);
861
860
  }
@@ -906,12 +905,14 @@ Used for inverted pressed interaction text link */;
906
905
  color: rgb(var(--sd-color-white, 255 255 255) / var(--tw-text-opacity, 1)) /* Inverted text color */;
907
906
  }
908
907
 
909
- .sd-pagination--inverted ul li:has(a:not([href]) sd-icon) a {
908
+ .sd-pagination--inverted ul li:first-child:has(a:not([href])) a,
909
+ .sd-pagination--inverted ul li:last-child:has(a:not([href])) a {
910
910
 
911
911
  color: rgb(var(--sd-color-neutral-600, 136 136 136) / var(--tw-text-opacity, 1)) /* Used for inverted disabled state */;
912
912
  }
913
913
 
914
- .sd-pagination--inverted ul li:has(a:not([href]) sd-icon) a:hover:not([disabled]) {
914
+ .sd-pagination--inverted ul li:first-child:has(a:not([href])) a:hover:not([disabled]),
915
+ .sd-pagination--inverted ul li:last-child:has(a:not([href])) a:hover:not([disabled]) {
915
916
 
916
917
  color: rgb(var(--sd-color-neutral-600, 136 136 136) / var(--tw-text-opacity, 1)) /* Used for inverted disabled state */;
917
918
  }
@@ -1273,8 +1274,12 @@ Used for inverted pressed interaction text link */;
1273
1274
  color: rgb(var(--sd-color-primary, 0 53 142) / var(--tw-text-opacity, 1)) /* Primary brand color for text */;
1274
1275
  text-decoration-line: underline;
1275
1276
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
1276
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
1277
1277
  transition-duration: 150ms;
1278
+ transition-duration: var(--sd-duration-fast, 150ms) /* Component State
1279
+ Animation of states like hover or pressed
1280
+ Microinteractions
1281
+ Smooth transitions eg. for buttons or dropdowns */;
1282
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
1278
1283
  }
1279
1284
 
1280
1285
  .sd-prose a:hover:not([disabled]),
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * Generates basic styles for chip elements.
3
- * @name sd-1-3-2-chip
3
+ * @name sd-1-4-1-chip
4
4
  * @status stable
5
5
  * @since 1.30.0
6
- * @variant { primary-300 | primary-500 | white } sd-1-3-2-chip--...
6
+ * @variant { primary-300 | primary-500 | white } sd-1-4-1-chip--...
7
7
  */
8
8
 
9
- .sd-1-3-2-chip {
9
+ .sd-1-4-1-chip {
10
10
 
11
11
  display: inline-flex;
12
12
 
@@ -35,7 +35,7 @@
35
35
  color: rgb(var(--sd-color-black, 24 24 24) / var(--tw-text-opacity, 1)) /* Default text color */
36
36
  }
37
37
 
38
- .sd-1-3-2-chip--primary-500 {
38
+ .sd-1-4-1-chip--primary-500 {
39
39
 
40
40
 
41
41
 
@@ -46,14 +46,14 @@
46
46
  color: rgb(var(--sd-color-white, 255 255 255) / var(--tw-text-opacity, 1)) /* Inverted text color */
47
47
  }
48
48
 
49
- .sd-1-3-2-chip--primary-300 {
49
+ .sd-1-4-1-chip--primary-300 {
50
50
 
51
51
 
52
52
 
53
53
  background-color: rgb(var(--sd-color-primary-300, 200 213 231) / var(--tw-bg-opacity, 1)) /* Used for chip background */
54
54
  }
55
55
 
56
- .sd-1-3-2-chip--white {
56
+ .sd-1-4-1-chip--white {
57
57
 
58
58
 
59
59