2020-08-22 09:54:08 +00:00
|
|
|
$pagination-color: var(--text-strong, #{$text-strong}) !default
|
|
|
|
$pagination-border-color: var(--border, #{$border}) !default
|
|
|
|
$pagination-font-size: var(--size-normal, #{$size-normal}) !default
|
2017-07-28 20:05:15 +00:00
|
|
|
$pagination-margin: -0.25rem !default
|
2020-08-22 09:54:08 +00:00
|
|
|
$pagination-min-width: var(--control-height, #{$control-height}) !default
|
2016-12-22 20:23:34 +00:00
|
|
|
|
2019-05-17 12:50:39 +00:00
|
|
|
$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
|
|
|
|
|
2020-08-22 09:54:08 +00:00
|
|
|
$pagination-hover-color: var(--link-hover, #{$link-hover}) !default
|
|
|
|
$pagination-hover-border-color: var(--link-hover-border, #{$link-hover-border}) !default
|
2016-12-22 20:23:34 +00:00
|
|
|
|
2020-08-22 09:54:08 +00:00
|
|
|
$pagination-focus-color: var(--link-focus, #{$link-focus}) !default
|
|
|
|
$pagination-focus-border-color: var(--link-focus-border, #{$link-focus-border}) !default
|
2016-12-22 20:23:34 +00:00
|
|
|
|
2020-08-22 09:54:08 +00:00
|
|
|
$pagination-active-color: var(--link-active, #{$link-active}) !default
|
|
|
|
$pagination-active-border-color: var(--link-active-border, #{$link-active-border}) !default
|
2016-12-22 20:23:34 +00:00
|
|
|
|
2020-08-22 09:54:08 +00:00
|
|
|
$pagination-disabled-color: var(--text-light, #{$text-light}) !default
|
|
|
|
$pagination-disabled-background-color: var(--border, #{$border}) !default
|
|
|
|
$pagination-disabled-border-color: var(--border, #{$border}) !default
|
2016-12-22 20:23:34 +00:00
|
|
|
|
2020-08-22 09:54:08 +00:00
|
|
|
$pagination-current-color: var(--link-invert, #{$link-invert}) !default
|
|
|
|
$pagination-current-background-color: var(--link, #{$link}) !default
|
|
|
|
$pagination-current-border-color: var(--link, #{$link}) !default
|
2016-12-22 20:23:34 +00:00
|
|
|
|
2020-08-22 09:54:08 +00:00
|
|
|
$pagination-ellipsis-color: var(--grey-light, #{$grey-light}) !default
|
2016-12-22 20:23:34 +00:00
|
|
|
|
2019-10-13 14:12:30 +00:00
|
|
|
$pagination-shadow-inset: inset 0 1px 2px rgba($scheme-invert, 0.2)
|
2016-10-30 22:31:54 +00:00
|
|
|
|
2017-03-13 16:52:01 +00:00
|
|
|
.pagination
|
2020-08-22 09:54:08 +00:00
|
|
|
--pagination-font-size: #{$pagination-font-size}
|
|
|
|
--pagination-margin: #{$pagination-margin}
|
|
|
|
--pagination-item-font-size: #{$pagination-item-font-size}
|
|
|
|
--pagination-item-margin: #{$pagination-item-margin}
|
|
|
|
--pagination-item-padding-left: #{$pagination-item-padding-left}
|
|
|
|
--pagination-item-padding-right: #{$pagination-item-padding-right}
|
|
|
|
--pagination-border-color: #{$pagination-border-color}
|
|
|
|
--pagination-color: #{$pagination-color}
|
|
|
|
--pagination-min-width: #{$pagination-min-width}
|
|
|
|
--pagination-hover-border-color: #{$pagination-hover-border-color}
|
|
|
|
--pagination-hover-color: #{$pagination-hover-color}
|
|
|
|
--pagination-focus-border-color: #{$pagination-focus-border-color}
|
|
|
|
--pagination-shadow-inset: #{$pagination-shadow-inset}
|
|
|
|
--pagination-disabled-background-color: #{$pagination-disabled-background-color}
|
|
|
|
--pagination-disabled-border-color: #{$pagination-disabled-border-color}
|
|
|
|
--pagination-disabled-color: #{$pagination-disabled-color}
|
|
|
|
--pagination-current-background-color: #{$pagination-current-background-color}
|
|
|
|
--pagination-current-border-color: #{$pagination-current-border-color}
|
|
|
|
--pagination-current-color: #{$pagination-current-color}
|
|
|
|
--pagination-ellipsis-color: #{$pagination-ellipsis-color}
|
|
|
|
|
2019-10-13 17:51:12 +00:00
|
|
|
@extend %block
|
2020-08-22 09:54:08 +00:00
|
|
|
font-size: var(--pagination-font-size)
|
|
|
|
margin: var(--pagination-margin)
|
|
|
|
|
2017-03-13 16:52:01 +00:00
|
|
|
// Sizes
|
|
|
|
&.is-small
|
2020-08-22 09:54:08 +00:00
|
|
|
--pagination-font-size: var(--size-small, #{$size-small})
|
2017-03-13 16:52:01 +00:00
|
|
|
&.is-medium
|
2020-08-22 09:54:08 +00:00
|
|
|
--pagination-font-size: var(--size-medium, #{$size-medium})
|
2017-03-13 16:52:01 +00:00
|
|
|
&.is-large
|
2020-08-22 09:54:08 +00:00
|
|
|
--pagination-font-size: var(--size-large, #{$size-large})
|
2017-12-04 13:21:38 +00:00
|
|
|
&.is-rounded
|
|
|
|
.pagination-previous,
|
|
|
|
.pagination-next
|
|
|
|
padding-left: 1em
|
|
|
|
padding-right: 1em
|
2020-08-23 16:46:09 +00:00
|
|
|
border-radius: var(--radius-rounded, #{$radius-rounded})
|
2017-12-04 13:21:38 +00:00
|
|
|
.pagination-link
|
2020-08-23 16:46:09 +00:00
|
|
|
border-radius: var(--radius-rounded, #{$radius-rounded})
|
2017-03-13 16:52:01 +00:00
|
|
|
|
2016-10-30 22:31:54 +00:00
|
|
|
.pagination,
|
|
|
|
.pagination-list
|
2016-03-26 14:12:36 +00:00
|
|
|
align-items: center
|
|
|
|
display: flex
|
|
|
|
justify-content: center
|
|
|
|
text-align: center
|
2016-10-30 22:31:54 +00:00
|
|
|
|
|
|
|
.pagination-previous,
|
|
|
|
.pagination-next,
|
|
|
|
.pagination-link,
|
|
|
|
.pagination-ellipsis
|
2018-10-02 06:04:19 +00:00
|
|
|
@extend %control
|
2018-09-04 13:24:50 +00:00
|
|
|
@extend %unselectable
|
2020-08-22 09:54:08 +00:00
|
|
|
font-size: var(--pagination-item-font-size)
|
2016-10-30 22:31:54 +00:00
|
|
|
justify-content: center
|
2020-08-22 09:54:08 +00:00
|
|
|
margin: var(--pagination-item-margin)
|
|
|
|
padding-left: var(--pagination-item-padding-left)
|
|
|
|
padding-right: var(--pagination-item-padding-right)
|
2017-12-04 13:39:15 +00:00
|
|
|
text-align: center
|
|
|
|
|
2016-10-30 22:31:54 +00:00
|
|
|
.pagination-previous,
|
|
|
|
.pagination-next,
|
|
|
|
.pagination-link
|
2020-08-22 09:54:08 +00:00
|
|
|
border-color: var(--pagination-border-color)
|
|
|
|
color: var(--pagination-color)
|
|
|
|
min-width: var(--pagination-min-width)
|
2016-10-30 22:31:54 +00:00
|
|
|
&:hover
|
2020-08-22 09:54:08 +00:00
|
|
|
border-color: var(--pagination-hover-border-color)
|
|
|
|
color: var(--pagination-hover-color)
|
2016-10-30 22:31:54 +00:00
|
|
|
&:focus
|
2020-08-22 09:54:08 +00:00
|
|
|
border-color: var(--pagination-focus-border-color)
|
2016-10-30 22:31:54 +00:00
|
|
|
&:active
|
2020-08-22 09:54:08 +00:00
|
|
|
box-shadow: var(--pagination-shadow-inset)
|
2017-03-31 21:25:53 +00:00
|
|
|
&[disabled]
|
2020-08-22 09:54:08 +00:00
|
|
|
background-color: var(--pagination-disabled-background-color)
|
|
|
|
border-color: var(--pagination-disabled-border-color)
|
2017-03-31 21:36:47 +00:00
|
|
|
box-shadow: none
|
2020-08-22 09:54:08 +00:00
|
|
|
color: var(--pagination-disabled-color)
|
2016-10-30 22:31:54 +00:00
|
|
|
opacity: 0.5
|
|
|
|
|
|
|
|
.pagination-previous,
|
|
|
|
.pagination-next
|
|
|
|
padding-left: 0.75em
|
|
|
|
padding-right: 0.75em
|
2017-04-15 17:15:00 +00:00
|
|
|
white-space: nowrap
|
2016-10-30 22:31:54 +00:00
|
|
|
|
|
|
|
.pagination-link
|
|
|
|
&.is-current
|
2020-08-22 09:54:08 +00:00
|
|
|
background-color: var(--pagination-current-background-color)
|
|
|
|
border-color: var(--pagination-current-border-color)
|
|
|
|
color: var(--pagination-current-color)
|
2016-10-30 22:31:54 +00:00
|
|
|
|
|
|
|
.pagination-ellipsis
|
2020-08-22 09:54:08 +00:00
|
|
|
color: var(--pagination-ellipsis-color)
|
2016-10-30 22:31:54 +00:00
|
|
|
pointer-events: none
|
|
|
|
|
|
|
|
.pagination-list
|
2017-04-15 17:15:00 +00:00
|
|
|
flex-wrap: wrap
|
2016-10-30 22:31:54 +00:00
|
|
|
|
|
|
|
+mobile
|
|
|
|
.pagination
|
2016-03-26 14:12:36 +00:00
|
|
|
flex-wrap: wrap
|
2016-10-30 22:31:54 +00:00
|
|
|
.pagination-previous,
|
|
|
|
.pagination-next
|
|
|
|
flex-grow: 1
|
|
|
|
flex-shrink: 1
|
|
|
|
.pagination-list
|
2016-03-26 14:12:36 +00:00
|
|
|
li
|
2016-07-31 10:45:56 +00:00
|
|
|
flex-grow: 1
|
2016-10-30 22:31:54 +00:00
|
|
|
flex-shrink: 1
|
|
|
|
|
|
|
|
+tablet
|
|
|
|
.pagination-list
|
|
|
|
flex-grow: 1
|
|
|
|
flex-shrink: 1
|
|
|
|
justify-content: flex-start
|
|
|
|
order: 1
|
|
|
|
.pagination-previous
|
|
|
|
order: 2
|
|
|
|
.pagination-next
|
|
|
|
order: 3
|
|
|
|
.pagination
|
|
|
|
justify-content: space-between
|
|
|
|
&.is-centered
|
|
|
|
.pagination-previous
|
|
|
|
order: 1
|
|
|
|
.pagination-list
|
|
|
|
justify-content: center
|
|
|
|
order: 2
|
|
|
|
.pagination-next
|
|
|
|
order: 3
|
|
|
|
&.is-right
|
|
|
|
.pagination-previous
|
2016-03-26 14:12:36 +00:00
|
|
|
order: 1
|
2016-10-30 22:31:54 +00:00
|
|
|
.pagination-next
|
|
|
|
order: 2
|
|
|
|
.pagination-list
|
|
|
|
justify-content: flex-end
|
|
|
|
order: 3
|