landingpage/themes/app-landingpage/assets/scss/mixins/_pagination.scss
Dorian Zedler 1b923de71a
Some checks failed
continuous-integration/drone Build is failing
Chore: initial commit
2022-08-06 20:25:26 +02:00

29 lines
671 B
SCSS

// Pagination
@mixin pagination-size($padding-y, $padding-x, $font-size, $border-radius) {
.page-link {
padding: $padding-y $padding-x;
@include font-size($font-size);
}
.page-item {
@if $pagination-margin-left == (-$pagination-border-width) {
&:first-child {
.page-link {
@include border-left-radius($border-radius);
}
}
&: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-radius($border-radius);
}
}
}
}