2021-02-15 07:50:28 +00:00
|
|
|
@import "../utilities/controls"
|
|
|
|
@import "../utilities/mixins"
|
|
|
|
|
|
|
|
$pagination-color: $text-strong !default
|
|
|
|
$pagination-border-color: $border !default
|
2018-01-29 09:42:34 +00:00
|
|
|
$pagination-margin: -0.25rem !default
|
2021-02-15 07:50:28 +00:00
|
|
|
$pagination-min-width: $control-height !default
|
|
|
|
|
|
|
|
$pagination-item-font-size: 1em !default
|
|
|
|
$pagination-item-margin: 0.25rem !default
|
|
|
|
$pagination-item-padding-left: 0.5em !default
|
|
|
|
$pagination-item-padding-right: 0.5em !default
|
|
|
|
|
|
|
|
$pagination-nav-padding-left: 0.75em !default
|
|
|
|
$pagination-nav-padding-right: 0.75em !default
|
2018-01-29 09:42:34 +00:00
|
|
|
|
|
|
|
$pagination-hover-color: $link-hover !default
|
|
|
|
$pagination-hover-border-color: $link-hover-border !default
|
|
|
|
|
|
|
|
$pagination-focus-color: $link-focus !default
|
|
|
|
$pagination-focus-border-color: $link-focus-border !default
|
|
|
|
|
|
|
|
$pagination-active-color: $link-active !default
|
|
|
|
$pagination-active-border-color: $link-active-border !default
|
|
|
|
|
2021-02-15 07:50:28 +00:00
|
|
|
$pagination-disabled-color: $text-light !default
|
|
|
|
$pagination-disabled-background-color: $border !default
|
|
|
|
$pagination-disabled-border-color: $border !default
|
2018-01-29 09:42:34 +00:00
|
|
|
|
|
|
|
$pagination-current-color: $link-invert !default
|
|
|
|
$pagination-current-background-color: $link !default
|
|
|
|
$pagination-current-border-color: $link !default
|
|
|
|
|
|
|
|
$pagination-ellipsis-color: $grey-light !default
|
|
|
|
|
2021-02-15 07:50:28 +00:00
|
|
|
$pagination-shadow-inset: inset 0 1px 2px rgba($scheme-invert, 0.2) !default
|
2018-01-29 09:42:34 +00:00
|
|
|
|
|
|
|
.pagination
|
2021-02-15 07:50:28 +00:00
|
|
|
@extend %block
|
2018-01-29 09:42:34 +00:00
|
|
|
font-size: $size-normal
|
|
|
|
margin: $pagination-margin
|
|
|
|
// Sizes
|
|
|
|
&.is-small
|
|
|
|
font-size: $size-small
|
|
|
|
&.is-medium
|
|
|
|
font-size: $size-medium
|
|
|
|
&.is-large
|
|
|
|
font-size: $size-large
|
|
|
|
&.is-rounded
|
|
|
|
.pagination-previous,
|
|
|
|
.pagination-next
|
|
|
|
padding-left: 1em
|
|
|
|
padding-right: 1em
|
|
|
|
border-radius: $radius-rounded
|
|
|
|
.pagination-link
|
|
|
|
border-radius: $radius-rounded
|
|
|
|
|
|
|
|
.pagination,
|
|
|
|
.pagination-list
|
|
|
|
align-items: center
|
|
|
|
display: flex
|
|
|
|
justify-content: center
|
|
|
|
text-align: center
|
|
|
|
|
|
|
|
.pagination-previous,
|
|
|
|
.pagination-next,
|
|
|
|
.pagination-link,
|
|
|
|
.pagination-ellipsis
|
2021-02-15 07:50:28 +00:00
|
|
|
@extend %control
|
|
|
|
@extend %unselectable
|
|
|
|
font-size: $pagination-item-font-size
|
2018-01-29 09:42:34 +00:00
|
|
|
justify-content: center
|
2021-02-15 07:50:28 +00:00
|
|
|
margin: $pagination-item-margin
|
|
|
|
padding-left: $pagination-item-padding-left
|
|
|
|
padding-right: $pagination-item-padding-right
|
2018-01-29 09:42:34 +00:00
|
|
|
text-align: center
|
|
|
|
|
|
|
|
.pagination-previous,
|
|
|
|
.pagination-next,
|
|
|
|
.pagination-link
|
|
|
|
border-color: $pagination-border-color
|
|
|
|
color: $pagination-color
|
2021-02-15 07:50:28 +00:00
|
|
|
min-width: $pagination-min-width
|
2018-01-29 09:42:34 +00:00
|
|
|
&:hover
|
|
|
|
border-color: $pagination-hover-border-color
|
|
|
|
color: $pagination-hover-color
|
|
|
|
&:focus
|
|
|
|
border-color: $pagination-focus-border-color
|
|
|
|
&:active
|
|
|
|
box-shadow: $pagination-shadow-inset
|
2022-08-27 16:43:27 +00:00
|
|
|
&[disabled],
|
|
|
|
&.is-disabled
|
2018-01-29 09:42:34 +00:00
|
|
|
background-color: $pagination-disabled-background-color
|
|
|
|
border-color: $pagination-disabled-border-color
|
|
|
|
box-shadow: none
|
|
|
|
color: $pagination-disabled-color
|
|
|
|
opacity: 0.5
|
|
|
|
|
|
|
|
.pagination-previous,
|
|
|
|
.pagination-next
|
2021-02-15 07:50:28 +00:00
|
|
|
padding-left: $pagination-nav-padding-left
|
|
|
|
padding-right: $pagination-nav-padding-right
|
2018-01-29 09:42:34 +00:00
|
|
|
white-space: nowrap
|
|
|
|
|
|
|
|
.pagination-link
|
|
|
|
&.is-current
|
|
|
|
background-color: $pagination-current-background-color
|
|
|
|
border-color: $pagination-current-border-color
|
|
|
|
color: $pagination-current-color
|
|
|
|
|
|
|
|
.pagination-ellipsis
|
|
|
|
color: $pagination-ellipsis-color
|
|
|
|
pointer-events: none
|
|
|
|
|
|
|
|
.pagination-list
|
|
|
|
flex-wrap: wrap
|
2021-02-15 07:50:28 +00:00
|
|
|
li
|
|
|
|
list-style: none
|
2018-01-29 09:42:34 +00:00
|
|
|
|
|
|
|
+mobile
|
|
|
|
.pagination
|
|
|
|
flex-wrap: wrap
|
|
|
|
.pagination-previous,
|
|
|
|
.pagination-next
|
|
|
|
flex-grow: 1
|
|
|
|
flex-shrink: 1
|
|
|
|
.pagination-list
|
|
|
|
li
|
|
|
|
flex-grow: 1
|
|
|
|
flex-shrink: 1
|
|
|
|
|
|
|
|
+tablet
|
|
|
|
.pagination-list
|
|
|
|
flex-grow: 1
|
|
|
|
flex-shrink: 1
|
|
|
|
justify-content: flex-start
|
|
|
|
order: 1
|
2022-08-27 16:43:27 +00:00
|
|
|
.pagination-previous,
|
|
|
|
.pagination-next,
|
|
|
|
.pagination-link,
|
|
|
|
.pagination-ellipsis
|
|
|
|
margin-bottom: 0
|
|
|
|
margin-top: 0
|
2018-01-29 09:42:34 +00:00
|
|
|
.pagination-previous
|
|
|
|
order: 2
|
|
|
|
.pagination-next
|
|
|
|
order: 3
|
|
|
|
.pagination
|
|
|
|
justify-content: space-between
|
2022-08-27 16:43:27 +00:00
|
|
|
margin-bottom: 0
|
|
|
|
margin-top: 0
|
2018-01-29 09:42:34 +00:00
|
|
|
&.is-centered
|
|
|
|
.pagination-previous
|
|
|
|
order: 1
|
|
|
|
.pagination-list
|
|
|
|
justify-content: center
|
|
|
|
order: 2
|
|
|
|
.pagination-next
|
|
|
|
order: 3
|
|
|
|
&.is-right
|
|
|
|
.pagination-previous
|
|
|
|
order: 1
|
|
|
|
.pagination-next
|
|
|
|
order: 2
|
|
|
|
.pagination-list
|
|
|
|
justify-content: flex-end
|
|
|
|
order: 3
|