-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsimple-pagination.scss
90 lines (76 loc) · 2.25 KB
/
simple-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
85
86
87
88
89
90
@use "@termehui/termeh/termeh.scss" as T;
@forward "@termehui/termeh/components/icon.scss";
@forward "@termehui/termeh/layout/gaper.scss";
.v-simple-pagination {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
user-select: none;
overflow: hidden;
> .vsp-pages {
flex: 0 0 auto;
display: flex;
align-items: stretch;
overflow: hidden;
&:not(.is-empty) {
background: T.color("input");
border-radius: T.var("radius", "rounded");
border: 1px solid T.variant("base", "separator");
}
.vsp-button {
display: block;
line-height: 1em;
padding: T.control-padding();
@include T.transition(all);
&:not(.is-disabled) {
cursor: pointer;
.icon {
color: T.variant("shade", "readable");
}
&:hover {
background-color: T.variant("shade", "light");
color: T.variant("shade", "readable");
}
}
&:first-child {
border-right: 1px solid T.variant("base", "separator");
}
&.is-disabled {
@include T.locked();
background: none !important;
color: T.variant("input", "disabled-color") !important;
}
}
&.is-empty {
padding: T.control-padding();
}
}
@each $name, $color in T.colors(T.var("pagination", "colors", ())) {
&.is-#{$name} {
&:not(.is-disabled) > .vsp-pages > .vsp-button {
&:not(.is-disabled) {
.icon {
color: T.variant($name, "readable");
}
&:hover {
background-color: T.variant($name, "light");
color: T.variant($name, "readable");
}
}
}
}
}
&.is-disabled {
.vsp-pages {
@include T.disabled();
}
}
&.is-rtl {
.vsp-button {
.icon {
transform: scaleX(-1);
}
}
}
}