Created
February 2, 2018 08:09
-
-
Save edavis25/e2217d0201fb574ea584ec5d2add940c to your computer and use it in GitHub Desktop.
Bootstrap-inspired styles for use with Laravel's generated pagination links
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
// Bootstrap-inspired styles for the pagination links that | |
// Laravel dynamically generates in views. | |
// @author: Eric Davis | |
.pagination { | |
li { | |
display: inline-block; | |
float: left; | |
font-size: 1.1rem; | |
color: #2196f3; | |
border: 1px solid #ddd; | |
// Drop overlapping borders | |
&:nth-child(1n + 2) { | |
border-left: none; | |
} | |
} | |
a { | |
text-decoration: none; | |
&:hover { | |
background-color: #ededed; | |
} | |
} | |
// Spans are used for the unavailable links in pagination | |
span { | |
cursor: not-allowed; | |
} | |
a, span { | |
display: block; | |
padding: 3px 12px; | |
} | |
.active { | |
background-color: #2196f3; | |
color: #fff; | |
border-color: #2196f3; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment