Created
February 24, 2023 19:17
-
-
Save brandonbarringer/c8eb7fde288d1cba93652e30b923d315 to your computer and use it in GitHub Desktop.
Components/pagination
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.pagination { | |
display: flex; | |
justify-content: center; | |
list-style: none; | |
gap: rem(5px); | |
@include poly-fluid-sizing('margin', ( | |
'small': rem(50px 0), | |
'large': rem(120px 0) | |
)); | |
font-weight: $fw-light; | |
a, | |
span { | |
min-width: rem(25px); | |
display: inline-block; | |
text-align: center; | |
color: inherit; | |
transition: all .2s ease; | |
&:hover, | |
&[aria-current=page] { | |
color: $color-red; | |
text-decoration: underline; | |
} | |
&[aria-current=page] { | |
font-weight: $fw-semibold; | |
} | |
} | |
&__arrow { | |
a { | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
font-weight: $fw-medium; | |
} | |
svg { | |
height: rem(20px); | |
width: auto; | |
} | |
&--prev { | |
margin-right: 10%; | |
svg { | |
margin-right: rem(15px); | |
transform: rotate(-90deg); | |
} | |
} | |
&--next { | |
margin-left: 10%; | |
svg { | |
margin-left: rem(15px); | |
transform: rotate(90deg); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment