Skip to content

Commit

Permalink
Rename the class name for pagination of a single page to avoid confus…
Browse files Browse the repository at this point in the history
…ion with that of a list page.
  • Loading branch information
yoichitgy committed Sep 4, 2015
1 parent 60ee1dd commit 4f0d0e5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion layouts/_default/single.html
Expand Up @@ -31,7 +31,7 @@ <h1>{{ .Title }}</h1>
{{ partial "disqus.html" . }}
</main>

<nav class="pagination">
<nav class="pagination-single">
{{ if .Next }}
<span class="previous">&larr; <a href="{{ .Next.Permalink }}" rel="prev">{{ .Next.Title }}</a></span>
{{ end }}
Expand Down
8 changes: 4 additions & 4 deletions static/css/theme.css
Expand Up @@ -144,21 +144,21 @@ nav ul.pagination li.active {
nav ul.pagination li:hover {
border-color: #29abe2;
}
nav.pagination {
nav.pagination-single {
padding: 20px 0 20px 0;
overflow: hidden;
}
nav.pagination span.previous {
nav.pagination-single span.previous {
float: left;
padding: 10px 0 10px 0;
max-width: 300px;
}
nav.pagination span.next {
nav.pagination-single span.next {
float: right;
padding: 10px 0 10px 0;
max-width: 300px;
}
nav.pagination a {
nav.pagination-single a {
color: #29abe2;
}
#single aside {
Expand Down
14 changes: 7 additions & 7 deletions static/css/theme.less
Expand Up @@ -167,26 +167,26 @@ nav ul.pagination li:hover{

/* Pager (for Single Page)
--------------------------------------------------*/
.pagination-span(@float) {
.pagination-single-span(@float) {
float: @float;
padding: 10px 0 10px 0;
max-width: 300px;
}

nav.pagination {
nav.pagination-single {
padding: 20px 0 20px 0;
overflow: hidden;
}

nav.pagination span.previous {
.pagination-span(left);
nav.pagination-single span.previous {
.pagination-single-span(left);
}

nav.pagination span.next {
.pagination-span(right);
nav.pagination-single span.next {
.pagination-single-span(right);
}

nav.pagination a {
nav.pagination-single a {
color: @color;
}

Expand Down

0 comments on commit 4f0d0e5

Please sign in to comment.