0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00
Bootstrap/scss/mixins/_pagination.scss

32 lines
741 B
SCSS
Raw Normal View History

2014-12-02 23:02:35 +01:00
// Pagination
// scss-docs-start pagination-mixin
@mixin pagination-size($padding-y, $padding-x, $font-size, $border-radius) {
.page-link {
padding: $padding-y $padding-x;
@include font-size($font-size);
}
2015-12-08 07:24:50 +01:00
.page-item {
@if $pagination-margin-start == (-$pagination-border-width) {
&:first-child {
.page-link {
@include border-start-radius($border-radius);
}
2014-12-02 23:02:35 +01:00
}
&:last-child {
.page-link {
@include border-end-radius($border-radius);
}
}
} @else {
//Add border-radius to all pageLinks in case they have left margin
2015-10-30 06:03:06 +01:00
.page-link {
@include border-radius($border-radius);
2014-12-02 23:02:35 +01:00
}
}
}
}
// scss-docs-end pagination-mixin