-
Notifications
You must be signed in to change notification settings - Fork 0
/
mintScrollbar.css
76 lines (66 loc) · 1.38 KB
/
mintScrollbar.css
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
.mintScrollbar__container {
position: relative;
overflow: hidden;
}
.mintScrollbar__viewport {
overflow: hidden;
width: 100%;
height: 100%;
-webkit-overflow-scrolling: touch;
}
.mintScrollbar {
position: absolute;
visibility: hidden;
overflow: hidden;
-webkit-transition: .3s;
-moz-transition: .3s;
transition: .3s;
opacity: 0;
background: #ccc;
background-color: rgba(0,0,0,.2);
}
.mintScrollbar__container:hover > .mintScrollbar,
.mintScrollbar__viewport:focus ~ .mintScrollbar,
.mintScrollbar__viewport--active ~ .mintScrollbar {
visibility: visible;
opacity: 1;
}
.mintScrollbar__thumb {
position: absolute;
background: #999;
background-color: rgba(0, 0, 0, .3);
-webkit-box-shadow: inset 0 0 0 1px rgba(0,0,0,.1);
box-shadow: inset 0 0 0 1px rgba(0,0,0,.1);
}
.mintScrollbar__thumb:hover {
background: #777;
background-color: rgba(0, 0, 0, .4);
}
.mintScrollbar__thumb:active {
background: #666;
background-color: rgba(0, 0, 0, .5);
}
.mintScrollbar__x {
right: 3px;
bottom: 3px;
left: 3px;
height: 6px;
}
.mintScrollbar__x__thumb {
top: 0;
left: 0;
min-width: 20px;
height: 100%;
}
.mintScrollbar__y {
top: 3px;
right: 3px;
bottom: 3px;
width: 6px;
}
.mintScrollbar__y__thumb {
top: 0;
left: 0;
width: 100%;
min-height: 20px;
}