-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpagination.less
64 lines (61 loc) · 1.17 KB
/
pagination.less
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{
// display: fixed;
-webkit-transform: translateZ(0);
position: fixed;
// background-color: red;
top: 40%;
// width: 100px;
// height: 100px;
right: 0;
z-index: 10;
// float: right;
// display: none;
}
.pagination li{
list-style-type: none;
}
.pagination__link{
width: 15px;
height: 15px;
background-color: #ccc;
display: block;
border-radius: 8px;
margin: 0 40px 18px 0;
box-shadow: 0 0 4px #222;
transition: .4s;
&:hover{
background-color: #aaa;
}
}
// Pagination Hover states:
.no-touch .pagination li{
position: relative;
.pagination__link{
position: relative;
z-index: 20;
}
&:before{
content: attr(data-cpage);
position: absolute;
top: -4px;
right: 34px;
white-space: nowrap;
background-color: #dd1036;
border-radius: 15px;
font-size: 12px;
line-height: 1;
padding: 6px 36px 5px 16px;
opacity: 0;
transition: opacity 0.4s ease-in;
}
&:hover:before{
opacity: 1;
transition: opacity 0.4s ease-in;
}
}
// .pagination ul:nth-child(1){
// background-color: red;
// }
.pagination.hide {
display: none;
}