-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_pagination.scss
64 lines (55 loc) · 1.39 KB
/
_pagination.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
.pagination {
$base-border-color: $secondary !default;
$base-border-radius: 3px !default;
$base-spacing: 1.5em !default;
$action-color: $accent !default;
$dark-gray: #333 !default;
$large-screen: 53.75em !default;
$base-font-color: $dark-gray !default;
$pagination-border-color: $secondary;
$pagination-border: 1px solid $pagination-border-color;
$pagination-background: $background;
$pagination-hover-background: lighten($pagination-background, 5);
$pagination-color: $base-font-color;
text-align: center;
margin-bottom: 20px;
ul {
display: inline;
margin: 0;
padding: 0;
text-align: center;
li {
display: inline;
list-style: none;
}
ul li {
display: none;
&:nth-child(1),
&:nth-child(2),
&:nth-child(3) {
display: inline;
}
@include media($large-screen) {
display: inline;
}
}
li a, li em {
background: $pagination-background;
border-radius: $base-border-radius;
border: $pagination-border;
color: $pagination-color;
outline: none;
padding: ($base-spacing / 4) ($gutter / 2);
text-decoration: none;
transition: all 0.2s ease-in-out;
&:hover,
&:focus {
background: $pagination-hover-background;
color: $action-color;
}
&:active {
background: $pagination-background;
}
}
}
}