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