2014-12-02 22:02:35 +00:00
|
|
|
// Pagination
|
|
|
|
|
2019-08-30 07:42:41 +00:00
|
|
|
@mixin pagination-size($padding-y, $padding-x, $font-size, $border-radius) {
|
2015-10-30 05:24:25 +00:00
|
|
|
.page-link {
|
2016-01-13 23:28:23 +00:00
|
|
|
padding: $padding-y $padding-x;
|
2019-02-07 22:32:05 +00:00
|
|
|
@include font-size($font-size);
|
2015-10-30 05:24:25 +00:00
|
|
|
}
|
|
|
|
|
2015-12-08 06:24:50 +00:00
|
|
|
.page-item {
|
2020-06-26 14:06:20 +00:00
|
|
|
@if $pagination-margin-start == (-$pagination-border-width) {
|
2019-08-03 14:11:57 +00:00
|
|
|
&:first-child {
|
|
|
|
.page-link {
|
2020-06-26 14:06:20 +00:00
|
|
|
@include border-start-radius($border-radius);
|
2019-08-03 14:11:57 +00:00
|
|
|
}
|
2014-12-02 22:02:35 +00:00
|
|
|
}
|
2019-08-03 14:11:57 +00:00
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
.page-link {
|
2020-06-26 14:06:20 +00:00
|
|
|
@include border-end-radius($border-radius);
|
2019-08-03 14:11:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
} @else {
|
|
|
|
//Add border-radius to all pageLinks in case they have left margin
|
2015-10-30 05:03:06 +00:00
|
|
|
.page-link {
|
2019-08-03 14:11:57 +00:00
|
|
|
@include border-radius($border-radius);
|
2014-12-02 22:02:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|