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