1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-30 08:39:56 +02:00

Refactor pagination code to remove unnecessary ancestor requirements in selectors

This commit is contained in:
Chris Rebert
2015-10-29 22:24:25 -07:00
parent 5f35ce2095
commit 0c1df9912f
2 changed files with 41 additions and 43 deletions

View File

@@ -1,12 +1,13 @@
// Pagination
@mixin pagination-size($padding-vertical, $padding-horizontal, $font-size, $line-height, $border-radius) {
.page-link {
padding: $padding-vertical $padding-horizontal;
font-size: $font-size;
line-height: $line-height;
}
.page {
.page-link {
padding: $padding-vertical $padding-horizontal;
font-size: $font-size;
line-height: $line-height;
}
&:first-child {
.page-link {
@include border-left-radius($border-radius);