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