Skip to content

Commit df4e904

Browse files
authored
[Docs Site] Adopt new pagination styling (#20467)
* [Docs Site] Adopt new pagination styling * fix sole prev/next alignment
1 parent b974306 commit df4e904

File tree

2 files changed

+38
-4
lines changed

2 files changed

+38
-4
lines changed

src/components/overrides/Footer.astro

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,6 @@ if (
154154
margin-top: 0 !important;
155155
}
156156

157-
:global(.pagination-links) {
158-
margin-top: 3rem !important;
159-
}
160-
161157
.feedback-prompt {
162158
h2 {
163159
color: var(--sl-color-white);

src/styles/pagination.css

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
.pagination-links {
2+
display: flex !important;
3+
justify-content: space-between;
4+
margin-top: 3rem;
5+
6+
& > a {
7+
flex-basis: unset;
8+
flex-grow: unset;
9+
width: fit-content;
10+
11+
padding: unset;
12+
border: unset;
13+
box-shadow: unset;
14+
15+
&[rel="prev"] {
16+
text-align: right;
17+
margin-right: auto;
18+
}
19+
20+
&[rel="next"] {
21+
text-align: left;
22+
margin-left: auto;
23+
}
24+
25+
& > span {
26+
font-size: 0.75rem;
27+
28+
.link-title {
29+
font-size: 1rem;
30+
}
31+
}
32+
33+
& > svg {
34+
align-self: self-end;
35+
color: theme("colors.cl1.brand.orange");
36+
}
37+
}
38+
}

0 commit comments

Comments
 (0)