Created
February 28, 2019 14:12
-
-
Save whistlerbrad/3a99e3bdc803af9b7fa0639b81a46aea to your computer and use it in GitHub Desktop.
CSS for 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 (Including Shopify Product Reviews) | |
| ==============================================================================*/ | |
| .pagination { | |
| margin-bottom: 1em; | |
| } | |
| /*================ Custom Pagination ================*/ | |
| .pagination-custom, .sky-pilot-pagination { | |
| display: inline-block; | |
| padding-left: 0; | |
| margin: 0 0 $gutter; | |
| border-radius: $radius; | |
| } | |
| .pagination-custom > li, .sky-pilot-pagination span | |
| { | |
| display: inline; | |
| } | |
| .spr-pagination > div{ | |
| display: inline-block; | |
| } | |
| .spr-summary-actions-newreview{ | |
| @extend .btn; | |
| } | |
| .spr-pagination .spr-pagination-page, | |
| .spr-pagination .spr-pagination-next, | |
| .spr-pagination .spr-pagination-prev { | |
| display: inline; | |
| position: relative; | |
| } | |
| .pagination-custom > li > a, | |
| .pagination-custom > li > span, | |
| .spr-pagination-page > a, | |
| .spr-pagination-page.is-active, | |
| .spr-pagination .spr-pagination-deco, | |
| .spr-pagination-next > a, | |
| .spr-pagination-prev > a, | |
| .sky-pilot-pagination > span > a{ | |
| position: relative; | |
| float: left; | |
| padding: 5px 10px; | |
| margin-left: -1px; | |
| line-height: 1.42; | |
| text-decoration: none; | |
| border: 1px solid $colorBorder; | |
| } | |
| .pagination-custom > li:first-child > a, | |
| .pagination-custom > li:first-child > span, | |
| .spr-pagination > div > span:first-child > a, | |
| .spr-pagination > div > span:first-child.is-active, | |
| .sky-pilot-pagination > span:first-child > a | |
| { | |
| margin-left: 0; | |
| border-bottom-left-radius: 4px; | |
| border-top-left-radius: 4px; | |
| } | |
| .pagination-custom > li:last-child > a, | |
| .pagination-custom > li:last-child > span, | |
| .spr-pagination > div > span:last-child > a, | |
| .spr-pagination > div > span:last-child.is-active, | |
| .sky-pilot-pagination > span:last-child > a | |
| { | |
| border-top-right-radius: 4px; | |
| border-bottom-right-radius: 4px; | |
| } | |
| .pagination-custom > li > a:hover, | |
| .pagination-custom > li > span:hover, | |
| .pagination-custom > li > a:focus, | |
| .pagination-custom > li > span:focus, | |
| .sky-pilot-pagination > span > a:hover | |
| { | |
| color: $colorSplash; | |
| } | |
| .pagination-custom > .active > a, | |
| .pagination-custom > .active > span, | |
| .pagination-custom > .active > a:hover, | |
| .pagination-custom > .active > span:hover, | |
| .pagination-custom > .active > a:focus, | |
| .pagination-custom > .active > span:focus { | |
| z-index: 2; | |
| cursor: default; | |
| color: $colorSplash; | |
| } | |
| .pagination-custom > .disabled > span, | |
| .pagination-custom > .disabled > a, | |
| .pagination-custom > .disabled > a:hover, | |
| .pagination-custom > .disabled > a:focus { | |
| color: #999999; | |
| cursor: not-allowed; | |
| } | |
| .pagination-custom-lg > li > a, | |
| .pagination-custom-lg > li > span { | |
| padding: 10px 16px; | |
| font-size: em(18px * $bodyFontAdjust); | |
| } | |
| .pagination-custom-lg > li:first-child > a, | |
| .pagination-custom-lg > li:first-child > span { | |
| border-bottom-left-radius: 6px; | |
| border-top-left-radius: 6px; | |
| } | |
| .pagination-custom-lg > li:last-child > a, | |
| .pagination-custom-lg > li:last-child > span { | |
| border-top-right-radius: 6px; | |
| border-bottom-right-radius: 6px; | |
| } | |
| .pagination-custom-sm > li > a, | |
| .pagination-custom-sm > li > span { | |
| padding: 5px 10px; | |
| font-size: em(12px * $bodyFontAdjust); | |
| } | |
| .pagination-custom-sm > li:first-child > a, | |
| .pagination-custom-sm > li:first-child > span { | |
| border-bottom-left-radius: 3px; | |
| border-top-left-radius: 3px; | |
| } | |
| .pagination-custom-sm > li:last-child > a, | |
| .pagination-custom-sm > li:last-child > span { | |
| border-top-right-radius: 3px; | |
| border-bottom-right-radius: 3px; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment