Skip to content

Commit

Permalink
fix(pagination): need at least intial size for #283
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed Jan 22, 2020
1 parent 43a710c commit aedf246
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
8 changes: 8 additions & 0 deletions scss/_pagination.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,12 @@
}
}


//
// Sizing
//
@include pagination-size($pagination-padding-y, $pagination-padding-x, null, $pagination-border-radius);

// Boosted mod: no pagination sizes
// @todo refactor pagination-size to remove mixin

28 changes: 27 additions & 1 deletion scss/mixins/_pagination.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
// Pagination

// Boosted mod: no pagination sizes
@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);
}
}
}
}

0 comments on commit aedf246

Please sign in to comment.