Skip to content

Commit 3ba589d

Browse files
committed
Flourishes on in-article pagination
1 parent be74099 commit 3ba589d

File tree

3 files changed

+24
-10
lines changed

3 files changed

+24
-10
lines changed

_includes/css/components.pagination.css

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_layouts/post.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ <h1 itemprop="name headline" elementtiming=page-title style="view-transition-na
131131

132132
<hr />
133133

134+
{% include article-pagination.html %}
135+
136+
<hr />
137+
134138
<div class=layout>
135139

136140
<div class="layout__item one-half">
@@ -149,10 +153,6 @@ <h1 itemprop="name headline" elementtiming=page-title style="view-transition-na
149153

150154
<hr />
151155

152-
{% include article-pagination.html %}
153-
154-
<hr />
155-
156156
{% include mini-profile.html %}
157157

158158
{% endif %}

css/isolated/components.pagination.scss

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
padding: 12px;
2121
border-radius: $base-round;
2222
border: 1px solid transparent;
23+
will-change: transform;
24+
transition: 0.3333s transform;
2325

2426
&:hover {
2527
text-decoration: none;
@@ -45,14 +47,27 @@
4547
color: $color-gray;
4648
}
4749

48-
.c-pagination__prev::before {
49-
content: "Previously: "
50+
.c-pagination__prev {
51+
52+
&:hover {
53+
transform: translateX(-$spacing-unit--small);
54+
}
55+
56+
&::before {
57+
content: "Previously: "
58+
}
59+
5060
}
5161

5262
.c-pagination__next {
5363
text-align: right;
54-
}
5564

56-
.c-pagination__next::before {
65+
&:hover {
66+
transform: translateX($spacing-unit--small);
67+
}
68+
69+
&::before {
5770
content: "Up next: "
5871
}
72+
73+
}

0 commit comments

Comments
 (0)