Skip to content

Commit

Permalink
Footer and pagination styles
Browse files Browse the repository at this point in the history
  • Loading branch information
hanju-jo committed Oct 6, 2017
1 parent 576b438 commit 45eb6fd
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 14 deletions.
5 changes: 5 additions & 0 deletions _sass/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ $footnote-link-background-over-color: $oc-gray-1;
$selection-color: $oc-black;
$selection-background-color: $oc-gray-1;

$pagination-color: $oc-gray-6;
$pagination-over-color: $oc-gray-7;

$footer-border-color: $oc-gray-2;
$footer-background-color: $oc-gray-1;

// List
$li-bottom-space: 0.4em;
Expand Down
20 changes: 10 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@ <h1>
</div>

<div class="pagination">
<span class="pagination-prev">
{% if paginator.previous_page %}
{% if paginator.previous_page %}
<span class="prev">
<a href="{{ site.baseurl }}{{ paginator.previous_page_path }}" class="prev">
Previous
&#xE000; PREVIOUS
</a>
{% endif %}
</span>
<span class="pagination-next">
{% if paginator.next_page %}
</span>
{% endif %}
{% if paginator.next_page %}
<span class="next">
<a href="{{ site.baseurl}}{{ paginator.next_page_path }}" class="next">
Next
NEXT &#xE001;
</a>
{% endif %}
</span>
</span>
{% endif %}
</div>
33 changes: 29 additions & 4 deletions style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ p {
a {
color: $link-color;
text-decoration: none;
cursor: pointer;
cursor: pointer;
&:hover, &:active {
color: $link-color;
}
Expand Down Expand Up @@ -429,11 +429,36 @@ nav {
}
}

.pagination {
font-weight: 300;
padding: 2em 0;

> .prev {
float: left;
a {
color: $pagination-color;
&:hover, &:focus {
color: $pagination-over-color;
}
}
}

> .next {
float: right;
a {
color: $pagination-color;
&:hover, &:focus {
color: $pagination-over-color;
}
}
}
}

.wrapper-footer {
margin-top: 50px;
border-top: 1px solid #ddd;
border-bottom: 1px solid #ddd;
background-color: $lightGray;
border-top: 1px solid $footer-border-color;
border-bottom: 1px solid $footer-border-color;
background-color: $footer-background-color;
}

footer {
Expand Down

0 comments on commit 45eb6fd

Please sign in to comment.