mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
0016c17f93
Original discussion: https://github.com/less/less.js/issues/1437#issuecomment-21383639. Since we’re switching to `grunt-contrib-less`, we can take advantage of newer LESS features than what RECESS supported. Included in that is the ability to `:extend`, and not only that, but `:extend(.mixin-name all)`. By doing so, we remove duplicate CSS for all our elements that were being clearfix-ed. Fixes #8947, #8968, #8991, #9257, #9268, #9291, #9430, #9604, #9686, #9929, #10731, #10793, #11305, #11498, #11533, #11570, #11604, #11652. (dem issues, tho)
56 lines
877 B
Plaintext
56 lines
877 B
Plaintext
//
|
|
// Pager pagination
|
|
// --------------------------------------------------
|
|
|
|
|
|
.pager {
|
|
padding-left: 0;
|
|
margin: @line-height-computed 0;
|
|
list-style: none;
|
|
text-align: center;
|
|
&:extend(.clearfix all);
|
|
li {
|
|
display: inline;
|
|
> a,
|
|
> span {
|
|
display: inline-block;
|
|
padding: 5px 14px;
|
|
background-color: @pagination-bg;
|
|
border: 1px solid @pagination-border;
|
|
border-radius: @pager-border-radius;
|
|
}
|
|
|
|
> a:hover,
|
|
> a:focus {
|
|
text-decoration: none;
|
|
background-color: @pagination-hover-bg;
|
|
}
|
|
}
|
|
|
|
.next {
|
|
> a,
|
|
> span {
|
|
float: right;
|
|
}
|
|
}
|
|
|
|
.previous {
|
|
> a,
|
|
> span {
|
|
float: left;
|
|
}
|
|
}
|
|
|
|
.disabled {
|
|
> a,
|
|
> a:hover,
|
|
> a:focus,
|
|
> span {
|
|
color: @pager-disabled-color;
|
|
background-color: @pagination-bg;
|
|
cursor: not-allowed;
|
|
}
|
|
}
|
|
|
|
}
|