aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2014-12-18 15:32:12 -0800
committerChris Rebert <[email protected]>2014-12-18 15:32:12 -0800
commite95b854301532245065d39915ff80a63eaf06c7a (patch)
tree29c011a38b5dbd9c9b08a436b75038671781bfae
parentf216f7cdf69193385f1e042de825abc38b3a4f80 (diff)
parent12c5473e7a3633616628c47e20e0eb23bbb01aec (diff)
downloadbootstrap-e95b854301532245065d39915ff80a63eaf06c7a.tar.xz
bootstrap-e95b854301532245065d39915ff80a63eaf06c7a.zip
Merge pull request #42 from twbs/pager
rename .previous => .pager-prev , .next => .pager-next
-rw-r--r--docs/components/pagination.md10
-rw-r--r--scss/_pager.scss28
2 files changed, 19 insertions, 19 deletions
diff --git a/docs/components/pagination.md b/docs/components/pagination.md
index c16f97cb6..dacc653f7 100644
--- a/docs/components/pagination.md
+++ b/docs/components/pagination.md
@@ -63,7 +63,7 @@ Links are customizable for different circumstances. Use `.disabled` for unclicka
</nav>
{% 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 %}
<nav>
@@ -152,8 +152,8 @@ Alternatively, you can align each link to the sides:
{% example html %}
<nav>
<ul class="pager">
- <li class="previous"><a href="#">Older</a></li>
- <li class="next"><a href="#">Newer</a></li>
+ <li class="pager-prev"><a href="#">Older</a></li>
+ <li class="pager-next"><a href="#">Newer</a></li>
</ul>
</nav>
{% endexample %}
@@ -166,8 +166,8 @@ Pager links also use the `.disabled` class.
{% highlight html %}
<nav>
<ul class="pager">
- <li class="previous disabled"><a href="#">Older</a></li>
- <li class="next"><a href="#">Newer</a></li>
+ <li class="pager-prev disabled"><a href="#">Older</a></li>
+ <li class="pager-next"><a href="#">Newer</a></li>
</ul>
</nav>
{% endhighlight %}
diff --git a/scss/_pager.scss b/scss/_pager.scss
index 9ae139ce7..4009c0946 100644
--- a/scss/_pager.scss
+++ b/scss/_pager.scss
@@ -29,20 +29,6 @@
}
}
- .next {
- > a,
- > span {
- float: right;
- }
- }
-
- .previous {
- > a,
- > span {
- float: left;
- }
- }
-
.disabled {
> a,
> a:hover,
@@ -54,3 +40,17 @@
}
}
}
+
+.pager-next {
+ > a,
+ > span {
+ float: right;
+ }
+}
+
+.pager-prev {
+ > a,
+ > span {
+ float: left;
+ }
+}