Initial port
[editorial.git] / assets / main / sass / components / _pagination.scss
1 ///
2 /// Editorial by HTML5 UP
3 /// html5up.net | @ajlkn
4 /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
5 ///
6
7 /* Pagination */
8
9 ul.pagination {
10 cursor: default;
11 list-style: none;
12 padding-left: 0;
13
14 li {
15 display: inline-block;
16 padding-left: 0;
17 vertical-align: middle;
18
19 > .page {
20 @include vendor('transition', (
21 'background-color #{_duration(transition)} ease-in-out',
22 'color #{_duration(transition)} ease-in-out'
23 ));
24 border-bottom: 0;
25 border-radius: _size(border-radius);
26 display: inline-block;
27 font-size: 0.8em;
28 font-weight: _font(weight-bold);
29 height: 2em;
30 line-height: 2em;
31 margin: 0 0.125em;
32 min-width: 2em;
33 padding: 0 0.5em;
34 text-align: center;
35
36 &.active {
37 background-color: _palette(accent);
38 color: _palette(bg) !important;
39
40 &:hover {
41 background-color: lighten(_palette(accent), 3);
42 }
43
44 &:active {
45 background-color: darken(_palette(accent), 3);
46 }
47 }
48 }
49
50 &:first-child {
51 padding-right: 0.75em;
52 }
53
54 &:last-child {
55 padding-left: 0.75em;
56 }
57 }
58
59 @include breakpoint('<=xsmall') {
60 li {
61 &:nth-child(n+2):nth-last-child(n+2) {
62 display: none;
63 }
64
65 &:first-child {
66 padding-right: 0;
67 }
68 }
69 }
70 }