Skip to content

Instantly share code, notes, and snippets.

@edavis25
Created February 2, 2018 08:09
Show Gist options
  • Save edavis25/e2217d0201fb574ea584ec5d2add940c to your computer and use it in GitHub Desktop.
Save edavis25/e2217d0201fb574ea584ec5d2add940c to your computer and use it in GitHub Desktop.
Bootstrap-inspired styles for use with Laravel's generated pagination links
// 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