forked from materializecss/materialize
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(Pagination) implemented button scss styling mixin materializ…
- Loading branch information
1 parent
ff267a4
commit 07e2463
Showing
3 changed files
with
56 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// Pagination | ||
.pagination { | ||
li { | ||
display: inline-block; | ||
vertical-align: top; | ||
|
||
a { | ||
@include btn($height: 2rem, $padding-left: .66rem, $padding-right: .66rem, $font-size: 1.2rem); | ||
} | ||
|
||
&.active a { | ||
@include btn-filled; | ||
} | ||
|
||
&.disabled a { | ||
@include btn-disabled; | ||
} | ||
|
||
i { | ||
font-size: 2rem; | ||
} | ||
} | ||
|
||
li.pages ul li { | ||
display: inline-block; | ||
float: none; | ||
} | ||
} | ||
|
||
@media #{$medium-and-down} { | ||
.pagination { | ||
width: 100%; | ||
|
||
li.prev, | ||
li.next { | ||
width: 10%; | ||
} | ||
|
||
li.pages { | ||
width: 80%; | ||
overflow: hidden; | ||
white-space: nowrap; | ||
} | ||
} | ||
} |
This file contains 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