2014-12-02 23:02:35 +01:00
|
|
|
// Pagination
|
|
|
|
|
2019-08-30 09:42:41 +02:00
|
|
|
@mixin pagination-size($padding-y, $padding-x, $font-size, $border-radius) {
|
2015-10-30 06:24:25 +01:00
|
|
|
.page-link {
|
2016-01-14 00:28:23 +01:00
|
|
|
padding: $padding-y $padding-x;
|
2019-02-07 23:32:05 +01:00
|
|
|
@include font-size($font-size);
|
2015-10-30 06:24:25 +01:00
|
|
|
}
|
|
|
|
|
2015-12-08 07:24:50 +01:00
|
|
|
.page-item {
|
2019-08-03 16:11:57 +02:00
|
|
|
@if $pagination-margin-left == (-$pagination-border-width) {
|
|
|
|
&:first-child {
|
|
|
|
.page-link {
|
|
|
|
@include border-left-radius($border-radius);
|
|
|
|
}
|
2014-12-02 23:02:35 +01:00
|
|
|
}
|
2019-08-03 16:11:57 +02:00
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
.page-link {
|
|
|
|
@include border-right-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 {
|
2019-08-03 16:11:57 +02:00
|
|
|
@include border-radius($border-radius);
|
2014-12-02 23:02:35 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|