Skip to content

Commit 50a17c7

Browse files
authored
style: 💄 Use white on dark background for next/previous page (#125)
1 parent 61f0b25 commit 50a17c7

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

‎site/layouts/blog/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ <h2>{{ .Title }}</h2>
6464

6565

6666
<div class="back">
67-
<div class="pagination">
67+
<div class="pagination black">
6868
{{ if .NextInSection }}
6969
<a href="{{ .NextInSection.Permalink }}" class="previous-page">
7070
<div class="arrow">{{ partial "arrow_left.html" . }}</div>

‎src/css/_pagination.scss

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,33 @@
11
@import 'variables';
22

3-
.pagination{
3+
.pagination {
44
padding-top: 1rem;
55
padding-bottom: 3rem;
6-
@include arrows($grey, -0.33rem, 3px);
6+
@include arrows($white, -0.33rem, 3px);
7+
&.black {
8+
@include arrows($black, -0.33rem, 3px);
9+
}
710
font-family: "Montserrat Light", "Helvetica Neue", Arial, sans-serif;
811
.next-page{
912
float: right;
1013
}
1114
a{
12-
font-size: 0.8rem;
15+
font-size: 0.9rem;
16+
color: $white;
17+
.black {
18+
color: $black;
19+
}
1320
transition: width 1s, margin-left 1s, margin-right 1s;
1421
.arrow{
1522
transition: inherit;
1623
display: inline-block;
1724
width: 24px;
1825
}
1926
&:hover, &:visited{
20-
color: $grey;
27+
color: $white;
28+
.black {
29+
color: $black;
30+
}
2131
.arrow{
2232
width: 32px;
2333
}

0 commit comments

Comments
 (0)