Commit 12c5473e authored by Chris Rebert's avatar Chris Rebert

rename .previous => .pager-prev , .next => .pager-next

parent 90f4767d
...@@ -63,7 +63,7 @@ Links are customizable for different circumstances. Use `.disabled` for unclicka ...@@ -63,7 +63,7 @@ Links are customizable for different circumstances. Use `.disabled` for unclicka
</nav> </nav>
{% endexample %} {% endexample %}
You can optionally swap out active or disabled anchors for `<span>`, or omit the anchor in the case of the previous/next arrows, to remove click functionality while retaining intended styles. You can optionally swap out active or disabled anchors for `<span>`, or omit the anchor in the case of the prev/next arrows, to remove click functionality while retaining intended styles.
{% highlight html %} {% highlight html %}
<nav> <nav>
...@@ -152,8 +152,8 @@ Alternatively, you can align each link to the sides: ...@@ -152,8 +152,8 @@ Alternatively, you can align each link to the sides:
{% example html %} {% example html %}
<nav> <nav>
<ul class="pager"> <ul class="pager">
<li class="previous"><a href="#">Older</a></li> <li class="pager-prev"><a href="#">Older</a></li>
<li class="next"><a href="#">Newer</a></li> <li class="pager-next"><a href="#">Newer</a></li>
</ul> </ul>
</nav> </nav>
{% endexample %} {% endexample %}
...@@ -166,8 +166,8 @@ Pager links also use the `.disabled` class. ...@@ -166,8 +166,8 @@ Pager links also use the `.disabled` class.
{% highlight html %} {% highlight html %}
<nav> <nav>
<ul class="pager"> <ul class="pager">
<li class="previous disabled"><a href="#">Older</a></li> <li class="pager-prev disabled"><a href="#">Older</a></li>
<li class="next"><a href="#">Newer</a></li> <li class="pager-next"><a href="#">Newer</a></li>
</ul> </ul>
</nav> </nav>
{% endhighlight %} {% endhighlight %}
...@@ -29,28 +29,28 @@ ...@@ -29,28 +29,28 @@
} }
} }
.next { .disabled {
> a, > a,
> a:hover,
> a:focus,
> span { > span {
float: right; color: $pager-disabled-color;
cursor: $cursor-disabled;
background-color: $pager-bg;
} }
} }
}
.previous { .pager-next {
> a, > a,
> span { > span {
float: left; float: right;
}
} }
}
.disabled { .pager-prev {
> a, > a,
> a:hover,
> a:focus,
> span { > span {
color: $pager-disabled-color; float: left;
cursor: $cursor-disabled;
background-color: $pager-bg;
}
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment