vendor/assets/stylesheets/twitter/_pagination.scss in sass-twitter-bootstrap-2.0.1 vs vendor/assets/stylesheets/twitter/_pagination.scss in sass-twitter-bootstrap-2.1.1
- old
+ new
@@ -1,8 +1,10 @@
-// PAGINATION
-// ----------
+//
+// Pagination (multiple pages)
+// --------------------------------------------------
+
.pagination {
height: $baseLineHeight * 2;
margin: $baseLineHeight 0;
}
.pagination ul {
@@ -11,39 +13,46 @@
margin-left: 0;
margin-bottom: 0;
@include border-radius(3px);
@include box-shadow(0 1px 2px rgba(0,0,0,.05));
}
-.pagination li {
- display: inline;
- }
-.pagination a {
+.pagination ul > li {
+ display: inline;
+}
+.pagination ul > li > a,
+.pagination ul > li > span {
float: left;
padding: 0 14px;
line-height: ($baseLineHeight * 2) - 2;
text-decoration: none;
- border: 1px solid #ddd;
+ background-color: $paginationBackground;
+ border: 1px solid $paginationBorder;
border-left-width: 0;
}
-.pagination a:hover,
-.pagination .active a {
+.pagination ul > li > a:hover,
+.pagination ul > .active > a,
+.pagination ul > .active > span {
background-color: #f5f5f5;
}
-.pagination .active a {
+.pagination ul > .active > a,
+.pagination ul > .active > span {
color: $grayLight;
cursor: default;
}
-.pagination .disabled a,
-.pagination .disabled a:hover {
+.pagination ul > .disabled > span,
+.pagination ul > .disabled > a,
+.pagination ul > .disabled > a:hover {
color: $grayLight;
background-color: transparent;
cursor: default;
}
-.pagination li:first-child a {
+.pagination ul > li:first-child > a,
+.pagination ul > li:first-child > span {
border-left-width: 1px;
@include border-radius(3px 0 0 3px);
}
-.pagination li:last-child a {
+.pagination ul > li:last-child > a,
+.pagination ul > li:last-child > span {
@include border-radius(0 3px 3px 0);
}
// Centered
.pagination-centered {