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