forked from joevennix/jScrollie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jquery.jscrollie.css
93 lines (78 loc) · 1.67 KB
/
jquery.jscrollie.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
div.jScrollieAll {
/* Holds the complete jScrollie, including scrollbar */
position:relative;
width:100%;
height:100%;
}
div.jScrollieMetaContainer {
/* MetaContainer takes up entire parent */
position:absolute;
width:100%;
height:100%;
overflow:hidden;
}
div.jScrollie {
/* a negative margin is applied in the js, making the div
100%+<native scrollbar width>px wide */
position:relative;
height:100%;
overflow-y:scroll;
overflow-x:hidden;
}
/** A bug in Chrome 25 on Lion requires each selector to have their own
blocks. E.g. the following:
.antiscroll-inner::-webkit-scrollbar, .antiscroll-inner::scrollbar {...}
causes the width and height rules to be ignored by the browser resulting
in both native and antiscroll scrollbars appearing at the same time.
Adapted from https://github.com/LearnBoost/antiscroll
*/
div.jScrollie::-webkit-scrollbar {
width: 0;
height: 0;
}
div.jScrollie::scrollbar {
width: 0;
height: 0;
}
div.jScrollieContent {
position:absolute;
left:0;
}
div.jScrollieContent.Scrollbar {
/* applied when the scrollbar is visible */
right:14px;
}
div.jScrollieContainer {
position:absolute;
right:0;
z-index: 1;
height:100%;
width:14px;
overflow:hidden;
}
div.jScrollieTrack {
position: absolute;
right: 0;
height: 100%;
cursor: pointer;
width:14px;
background:transparent;
}
div.jScrollieDrag {
position: absolute;
width: 12px;
height: 100px;
background:rgba(0,0,0,.35);
-moz-border-radius:10px;
border-radius:10px;
}
div.jScrollieDragTop {
position: absolute;
top: 5px;
width: 100%;
}
div.jScrollieDragBottom {
position: absolute;
bottom: 5px;
width: 100%;
}