/
_pagination.scss
executable file
·84 lines (73 loc) · 1.68 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
.pagination {
display: flex;
justify-content: space-between;
margin: 60px auto;
max-width: calc(#{$max-site-width} - 600px);
width: $max-site-width;
.page {
cursor: pointer;
a {
color: palette('green', accent);
text-decoration: none;
i {
background: palette('green', accent);
border-radius: 100px;
box-shadow: 0 3px 5px 0 palette('green', accent, 0.15);
color: white;
font-size: 6px;
height: 40px;
line-height: 40px;
text-align: center;
width: 40px;
}
span {
font-size: 12px;
line-height: 38px;
margin: 0 10px;
}
}
&.disabled {
cursor: default;
opacity: 0.5;
a {
color: palette('gray', text);
cursor: default;
pointer-events: none;
i {
background: white;
color: palette('gray', slate);
opacity: 0.5;
}
}
}
}
.pages {
.page-link {
color: palette('gray', text);
display: inline-block;
height: 30px;
line-height: 30px;
margin: 5px 0;
text-align: center;
text-decoration: none;
width: 40px;
&.active {
background: white;
border: 1px solid palette('gray', slate, 0.1);
border-radius: 5px;
box-shadow: 0 3px 5px 0 palette('gray', slate, 0.05);
.page-input {
border: none;
text-align: center;
-moz-appearance: textfield;
width: 20px;
&::-webkit-inner-spin-button,
&::-webkit-outer-spin-button {
margin: 0;
-webkit-appearance: none;
}
}
}
}
}
}