Last change
on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
741 bytes
|
Line | |
---|
1 | // Pagination
|
---|
2 |
|
---|
3 | // scss-docs-start pagination-mixin
|
---|
4 | @mixin pagination-size($padding-y, $padding-x, $font-size, $border-radius) {
|
---|
5 | .page-link {
|
---|
6 | padding: $padding-y $padding-x;
|
---|
7 | @include font-size($font-size);
|
---|
8 | }
|
---|
9 |
|
---|
10 | .page-item {
|
---|
11 | @if $pagination-margin-start == (-$pagination-border-width) {
|
---|
12 | &:first-child {
|
---|
13 | .page-link {
|
---|
14 | @include border-start-radius($border-radius);
|
---|
15 | }
|
---|
16 | }
|
---|
17 |
|
---|
18 | &:last-child {
|
---|
19 | .page-link {
|
---|
20 | @include border-end-radius($border-radius);
|
---|
21 | }
|
---|
22 | }
|
---|
23 | } @else {
|
---|
24 | //Add border-radius to all pageLinks in case they have left margin
|
---|
25 | .page-link {
|
---|
26 | @include border-radius($border-radius);
|
---|
27 | }
|
---|
28 | }
|
---|
29 | }
|
---|
30 | }
|
---|
31 | // scss-docs-end pagination-mixin
|
---|
Note:
See
TracBrowser
for help on using the repository browser.