2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-20 20:00:36 +03:00

Allow .page-links to get left margin. (#28948)

* Allow .page-links to get left margin.

* Add border-radius to page-links in case they have left margin

* Apply MartijnCuppens suggestion to _pagination.scss

Co-Authored-By: Martijn Cuppens <martijn.cuppens@gmail.com>

* Plus if/else Rules

* Formatting fixes

* Fix border-radius for pagination-size

* Use mixin for default pagination sizing
This commit is contained in:
GeoSot
2019-08-03 17:11:57 +03:00
committed by Mark Otto
parent 81af1bf9cc
commit 4ae6a29b12
3 changed files with 19 additions and 19 deletions
+14 -6
View File
@@ -8,14 +8,22 @@
}
.page-item {
&:first-child {
.page-link {
@include border-left-radius($border-radius);
@if $pagination-margin-left == (-$pagination-border-width) {
&:first-child {
.page-link {
@include border-left-radius($border-radius);
}
}
}
&:last-child {
&:last-child {
.page-link {
@include border-right-radius($border-radius);
}
}
} @else {
//Add border-radius to all pageLinks in case they have left margin
.page-link {
@include border-right-radius($border-radius);
@include border-radius($border-radius);
}
}
}