-
Notifications
You must be signed in to change notification settings - Fork 13
/
ng-slim-scroll.less
56 lines (56 loc) · 1.2 KB
/
ng-slim-scroll.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
[slim-scroll], [data-slim-scroll] {
position: relative;
overflow: hidden;
> div {
position: absolute !important;
overflow-y: auto !important;
overflow-x: hidden !important;
left: 0;
top: 0 !important;
bottom: 0 !important;
&.unselectable {
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: -moz-none;
-o-user-select: none;
user-select: none;
}
+ div {
position: absolute !important;
top: 0 !important;
bottom: 0 !important;
right: 0;
left: auto;
width: 5px;
cursor: pointer !important;
padding-right: 0 !important;
> div {
position: absolute !important;
background-color: #999;
top: 0;
left: 0;
right: 0;
}
}
}
&.mac-style {
> div {
+ div {
background-color: transparent;
> div {
border-radius: 10px;
}
&.animate > div {
transition: 2s opacity ease;
-ms-transition: 2s opacity ease;
opacity: 0;
}
&:hover > div {
opacity: 0.5;
transition: none;
-ms-transition: none;
}
}
}
}
}