forked from yairEO/fakescroll
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfakeScroll.css
More file actions
39 lines (36 loc) · 940 Bytes
/
Copy pathfakeScroll.css
File metadata and controls
39 lines (36 loc) · 940 Bytes
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
.scrollWrap{
overflow : hidden;
height : 100%;
position : relative;
z-index : 1;
}
.scrollContent{
height : 100%;
width : 100%;
padding : 0 32px 0 0;
position : relative;
right : -18px;
overflow : auto;
-moz-box-sizing : border-box;
box-sizing : border-box;
}
.fakeScrollBar{
position : absolute;
background : rgba(255,255,255,.5);
width : 9px;
border-radius : 4px;
right : -15px;
top : 0;
z-index : 0;
cursor : -moz-grab;
cursor : -webkit-grab;
}
.fakeScroll:hover .fakeScrollBar.fakescroll-grabbed{
cursor : -moz-grabbing;
cursor : -webkit-grabbing;
background : #FFF;
}
body.fakescroll-grabbed{
cursor : -moz-grabbing;
cursor : -webkit-grabbing;
}