@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.
- package/CHANGELOG.md +13 -2
- package/cdn/modules/pagination.css +1 -1
- package/cdn/solid-styles.css +1 -1
- package/cdn-versioned/modules/chip.css +1 -1
- package/cdn-versioned/modules/container.css +1 -1
- package/cdn-versioned/modules/copyright.css +1 -1
- package/cdn-versioned/modules/display.css +1 -1
- package/cdn-versioned/modules/flag.css +1 -1
- package/cdn-versioned/modules/footnotes.css +1 -1
- package/cdn-versioned/modules/headline.css +1 -1
- package/cdn-versioned/modules/hidden-links.css +1 -1
- package/cdn-versioned/modules/interactive.css +1 -1
- package/cdn-versioned/modules/leadtext.css +1 -1
- package/cdn-versioned/modules/list.css +1 -1
- package/cdn-versioned/modules/mark.css +1 -1
- package/cdn-versioned/modules/media.css +1 -1
- package/cdn-versioned/modules/meta.css +1 -1
- package/cdn-versioned/modules/pagination.css +1 -1
- package/cdn-versioned/modules/paragraph.css +1 -1
- package/cdn-versioned/modules/prose.css +1 -1
- package/cdn-versioned/modules/status-badge.css +1 -1
- package/cdn-versioned/modules/table-cell.css +1 -1
- package/cdn-versioned/modules/table.css +1 -1
- package/cdn-versioned/solid-styles.css +1 -1
- package/dist/modules/pagination.css +259 -303
- package/dist/solid-styles.css +129 -45
- package/dist-versioned/modules/chip.css +6 -6
- package/dist-versioned/modules/container.css +45 -45
- package/dist-versioned/modules/copyright.css +11 -11
- package/dist-versioned/modules/display.css +9 -9
- package/dist-versioned/modules/flag.css +6 -6
- package/dist-versioned/modules/footnotes.css +26 -26
- package/dist-versioned/modules/headline.css +67 -67
- package/dist-versioned/modules/hidden-links.css +7 -7
- package/dist-versioned/modules/interactive.css +38 -38
- package/dist-versioned/modules/leadtext.css +8 -8
- package/dist-versioned/modules/list.css +47 -47
- package/dist-versioned/modules/mark.css +2 -2
- package/dist-versioned/modules/media.css +7 -7
- package/dist-versioned/modules/meta.css +12 -12
- package/dist-versioned/modules/pagination.css +291 -335
- package/dist-versioned/modules/paragraph.css +8 -8
- package/dist-versioned/modules/prose.css +231 -231
- package/dist-versioned/modules/status-badge.css +8 -8
- package/dist-versioned/modules/table-cell.css +23 -23
- package/dist-versioned/modules/table.css +4 -4
- package/dist-versioned/solid-styles.css +510 -426
- package/package.json +2 -2
@@ -1,470 +1,426 @@
|
|
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-1-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-1-pagination--... The pagination format.
|
7
|
+
* @boolean sd-1-5-1-pagination--inverted Inverts the pagination style.
|
8
8
|
*/
|
9
9
|
|
10
|
-
.sd-1-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
width: var(--sd-spacing-0-25, 1px) /* 1px */;
|
17
|
-
|
18
|
-
overflow: hidden
|
10
|
+
.sd-1-5-1-pagination > :not(ul) {
|
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
|
-
.sd-1-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
align-items: center;
|
26
|
-
|
27
|
-
gap: var(--sd-spacing-2, 0.5rem) /* 8px */
|
17
|
+
.sd-1-5-1-pagination ul {
|
18
|
+
display: flex;
|
19
|
+
align-items: center;
|
20
|
+
gap: var(--sd-spacing-2, 0.5rem) /* 8px */;
|
28
21
|
}
|
29
22
|
|
30
|
-
.sd-1-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
23
|
+
.sd-1-5-1-pagination ul li button {
|
24
|
+
all: unset;
|
25
|
+
border-width: 2px;
|
26
|
+
border-style: solid;
|
27
|
+
border-color: transparent;
|
28
|
+
}
|
35
29
|
|
36
|
-
|
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-1-5-1-pagination ul li button:hover:not([disabled]) {
|
31
|
+
cursor: pointer;
|
49
32
|
}
|
50
33
|
|
51
|
-
.sd-1-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
34
|
+
.sd-1-5-1-pagination ul li a,
|
35
|
+
.sd-1-5-1-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-1-
|
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-1-5-1-pagination ul li a:hover:not([disabled]),
|
48
|
+
.sd-1-5-1-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-1-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
outline-offset: 2px;
|
53
|
+
.sd-1-5-1-pagination ul li a:active:not([disabled]),
|
54
|
+
.sd-1-5-1-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
|
-
|
59
|
+
.sd-1-5-1-pagination ul li a:focus-visible, .sd-1-5-1-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
|
-
.sd-1-
|
79
|
-
.sd-1-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
width: var(--sd-spacing-12, 3rem) /* 48px */;
|
84
|
-
|
85
|
-
font-size: var(--sd-font-size-xl, 1.5rem) /* 24px */
|
68
|
+
.sd-1-5-1-pagination ul li:first-child,
|
69
|
+
.sd-1-5-1-pagination ul li:last-child {
|
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-1-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
75
|
+
.sd-1-5-1-pagination ul li:first-child a,
|
76
|
+
.sd-1-5-1-pagination ul li:first-child button,
|
77
|
+
.sd-1-5-1-pagination ul li:last-child a,
|
78
|
+
.sd-1-5-1-pagination ul li:last-child button {
|
79
|
+
height: 100%;
|
80
|
+
width: 100%;
|
93
81
|
}
|
94
82
|
|
95
83
|
/* Numbers */
|
96
84
|
|
97
|
-
.sd-1-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
align-items: center;
|
106
|
-
|
107
|
-
justify-content: center;
|
108
|
-
|
109
|
-
text-align: center
|
85
|
+
.sd-1-5-1-pagination ul li {
|
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-1-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
border-bottom-width: 2px;
|
119
|
-
|
120
|
-
border-bottom-color: transparent
|
94
|
+
.sd-1-5-1-pagination ul li:not(:first-child):not(:last-child) a,
|
95
|
+
.sd-1-5-1-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-1-
|
124
|
-
|
125
|
-
|
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-1-5-1-pagination ul li:not(:first-child):not(:last-child) a[aria-current], .sd-1-5-1-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-1-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
color: rgb(var(--sd-color-black, 24 24 24) / var(--tw-text-opacity, 1)) /* Default text color */
|
108
|
+
.sd-1-5-1-pagination ul li a[aria-current],
|
109
|
+
.sd-1-5-1-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-1-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
color: rgb(var(--sd-color-black, 24 24 24) / var(--tw-text-opacity, 1)) /* Default text color */
|
114
|
+
.sd-1-5-1-pagination ul li a[aria-current]:hover:not([disabled]),
|
115
|
+
.sd-1-5-1-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
|
-
.sd-1-
|
148
|
-
.sd-1-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
color: rgb(var(--sd-color-neutral-500, 174 174 174) / var(--tw-text-opacity, 1)) /* Used for disabled state */
|
122
|
+
.sd-1-5-1-pagination ul li:first-child:has(a:not([href])) a,
|
123
|
+
.sd-1-5-1-pagination ul li:last-child:has(a:not([href])) a,
|
124
|
+
.sd-1-5-1-pagination ul li:first-child:has(button[disabled]) button,
|
125
|
+
.sd-1-5-1-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
|
-
.sd-1-
|
158
|
-
.sd-1-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
131
|
+
.sd-1-5-1-pagination ul li:first-child:has(a:not([href])) a:hover:not([disabled]),
|
132
|
+
.sd-1-5-1-pagination ul li:last-child:has(a:not([href])) a:hover:not([disabled]),
|
133
|
+
.sd-1-5-1-pagination ul li:first-child:has(button[disabled]) button:hover:not([disabled]),
|
134
|
+
.sd-1-5-1-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-1-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
position: absolute
|
143
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-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-1-
|
177
|
-
|
178
|
-
|
148
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-pagination--simple) ul li:not(:first-child):not(:last-child):not(:has(a[aria-current], button[aria-current])) a,
|
149
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-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-1-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
.sd-1-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
.sd-1-
|
220
|
-
|
221
|
-
|
155
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-pagination--simple) ul li:not(:first-child):not(:last-child):has(+ li + li a[aria-current], + li + li button[aria-current]), .sd-1-5-1-pagination:not(.sd-1-5-1-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;
|
158
|
+
}
|
159
|
+
|
160
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-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-1-pagination:not(.sd-1-5-1-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);
|
163
|
+
}
|
164
|
+
|
165
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(2),
|
166
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(2),
|
167
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
168
|
+
+ li a[aria-current],
|
169
|
+
+ li button[aria-current]),
|
170
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-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;
|
175
|
+
}
|
176
|
+
|
177
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(2)::after,
|
178
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(2)::after,
|
179
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
180
|
+
+ li a[aria-current],
|
181
|
+
+ li button[aria-current])::after,
|
182
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-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-1-5-1-pagination:not(.sd-1-5-1-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(2) a,
|
190
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(2) button,
|
191
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(2) a,
|
192
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(2) button,
|
193
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
194
|
+
+ li a[aria-current],
|
195
|
+
+ li button[aria-current]) a,
|
196
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
197
|
+
+ li a[aria-current],
|
198
|
+
+ li button[aria-current]) button,
|
199
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
200
|
+
a[aria-current],
|
201
|
+
button[aria-current]) + li a,
|
202
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-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-1-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
position: relative
|
212
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-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-1-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
display: none
|
217
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-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-1-
|
243
|
-
|
244
|
-
|
222
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-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-1-5-1-pagination:not(.sd-1-5-1-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-1-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
position: relative
|
229
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-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-1-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
content: var(--tw-content)
|
234
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-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-1-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
position: relative
|
241
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-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-1-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
display: none
|
246
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-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-1-
|
280
|
-
|
281
|
-
|
251
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-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-1-5-1-pagination:not(.sd-1-5-1-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-1-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
position: relative
|
258
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-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-1-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
display: none
|
263
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-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-1-
|
301
|
-
|
302
|
-
|
268
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-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-1-5-1-pagination:not(.sd-1-5-1-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-1-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
275
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-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-1-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
283
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-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-1-
|
322
|
-
|
323
|
-
|
291
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-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-1-5-1-pagination:not(.sd-1-5-1-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-1-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
304
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-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-1-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
312
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-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
|
-
.sd-1-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
position: relative
|
322
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-pagination--simple) ul:has(> li:last-child:nth-child(-n + 9)) li {
|
323
|
+
pointer-events: auto;
|
324
|
+
position: relative;
|
349
325
|
}
|
350
326
|
|
351
|
-
.sd-1-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
display: none
|
327
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-pagination--simple) ul:has(> li:last-child:nth-child(-n + 9)) li::after {
|
328
|
+
content: var(--tw-content);
|
329
|
+
display: none;
|
356
330
|
}
|
357
331
|
|
358
|
-
.sd-1-
|
359
|
-
|
360
|
-
|
332
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-pagination--simple) ul:has(> li:last-child:nth-child(-n + 9)) li a,
|
333
|
+
.sd-1-5-1-pagination:not(.sd-1-5-1-pagination--simple) ul:has(> li:last-child:nth-child(-n + 9)) li button {
|
334
|
+
display: flex;
|
361
335
|
}
|
362
336
|
|
363
|
-
.sd-1-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
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
|
-
*/
|
337
|
+
.sd-1-5-1-pagination--simple ul li:nth-child(2) {
|
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
|
-
.sd-1-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
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)
|
347
|
+
.sd-1-5-1-pagination--simple ul li:nth-child(2)::after {
|
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-1-
|
356
|
+
.sd-1-5-1-pagination--simple ul li:nth-child(2) {
|
395
357
|
|
396
|
-
|
358
|
+
border-bottom-style: solid;
|
359
|
+
}
|
397
360
|
|
398
|
-
|
361
|
+
.sd-1-5-1-pagination--simple ul li:nth-last-child(2) {
|
362
|
+
border-bottom-width: 2px;
|
363
|
+
border-bottom-color: transparent;
|
399
364
|
}
|
400
365
|
|
401
|
-
.sd-1-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
color: rgb(var(--sd-color-white, 255 255 255) / var(--tw-text-opacity, 1)) /* Inverted text color */
|
366
|
+
.sd-1-5-1-pagination--inverted ul li::after {
|
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
|
-
.sd-1-
|
411
|
-
.sd-1-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
372
|
+
.sd-1-5-1-pagination--inverted ul li:first-child:has(a:not([href])) a,
|
373
|
+
.sd-1-5-1-pagination--inverted ul li:last-child:has(a:not([href])) a,
|
374
|
+
.sd-1-5-1-pagination--inverted ul li:first-child:has(button[disabled]) button,
|
375
|
+
.sd-1-5-1-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
|
-
.sd-1-
|
419
|
-
.sd-1-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
380
|
+
.sd-1-5-1-pagination--inverted ul li:first-child:has(a:not([href])) a:hover:not([disabled]),
|
381
|
+
.sd-1-5-1-pagination--inverted ul li:last-child:has(a:not([href])) a:hover:not([disabled]),
|
382
|
+
.sd-1-5-1-pagination--inverted ul li:first-child:has(button[disabled]) button:hover:not([disabled]),
|
383
|
+
.sd-1-5-1-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
|
-
.sd-1-
|
427
|
-
.sd-1-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
388
|
+
.sd-1-5-1-pagination--inverted ul li a,
|
389
|
+
.sd-1-5-1-pagination--inverted ul li a[aria-current],
|
390
|
+
.sd-1-5-1-pagination--inverted ul li button,
|
391
|
+
.sd-1-5-1-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
|
-
.sd-1-
|
435
|
-
.sd-1-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
396
|
+
.sd-1-5-1-pagination--inverted ul li a:hover:not([disabled]),
|
397
|
+
.sd-1-5-1-pagination--inverted ul li a[aria-current]:hover:not([disabled]),
|
398
|
+
.sd-1-5-1-pagination--inverted ul li button:hover:not([disabled]),
|
399
|
+
.sd-1-5-1-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
|
-
.sd-1-
|
443
|
-
.sd-1-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
Used for inverted pressed interaction text link
|
404
|
+
.sd-1-5-1-pagination--inverted ul li a:active:not([disabled]),
|
405
|
+
.sd-1-5-1-pagination--inverted ul li a[aria-current]:active:not([disabled]),
|
406
|
+
.sd-1-5-1-pagination--inverted ul li button:active:not([disabled]),
|
407
|
+
.sd-1-5-1-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-1-
|
452
|
-
|
453
|
-
outline-color: rgb(var(--sd-color-white, 255 255 255) / 1) /* Used for buttons, inverted focus state */
|
413
|
+
.sd-1-5-1-pagination--inverted ul li a:focus-visible, .sd-1-5-1-pagination--inverted ul li a[aria-current]:focus-visible, .sd-1-5-1-pagination--inverted ul li button:focus-visible, .sd-1-5-1-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
|
-
.sd-1-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
color: rgb(var(--sd-color-white, 255 255 255) / var(--tw-text-opacity, 1)) /* Inverted text color */
|
417
|
+
.sd-1-5-1-pagination--inverted.sd-1-5-1-pagination--simple ul li {
|
418
|
+
|
419
|
+
color: rgb(var(--sd-color-white, 255 255 255) / var(--tw-text-opacity, 1)) /* Inverted text color */;
|
461
420
|
}
|
462
421
|
|
463
|
-
.sd-1-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
color: rgb(var(--sd-color-white, 255 255 255) / var(--tw-text-opacity, 1)) /* Inverted text color */
|
422
|
+
.sd-1-5-1-pagination--inverted.sd-1-5-1-pagination--simple ul li::after {
|
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
|
}
|