1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-11-01 12:04:15 +00:00
webvirtcloud/dev/scss/bootstrap/mixins/_pagination.scss

32 lines
741 B
SCSS
Raw Normal View History

2020-05-19 16:53:54 +00:00
// Pagination
// scss-docs-start pagination-mixin
@mixin pagination-size($padding-y, $padding-x, $font-size, $border-radius) {
2020-05-19 16:53:54 +00:00
.page-link {
padding: $padding-y $padding-x;
@include font-size($font-size);
}
.page-item {
@if $pagination-margin-start == (-$pagination-border-width) {
&:first-child {
.page-link {
@include border-start-radius($border-radius);
}
2020-05-19 16:53:54 +00:00
}
&:last-child {
.page-link {
@include border-end-radius($border-radius);
}
}
} @else {
//Add border-radius to all pageLinks in case they have left margin
2020-05-19 16:53:54 +00:00
.page-link {
@include border-radius($border-radius);
2020-05-19 16:53:54 +00:00
}
}
}
}
// scss-docs-end pagination-mixin