-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjquery.pp.scrollbar.css
More file actions
50 lines (43 loc) · 1.13 KB
/
Copy pathjquery.pp.scrollbar.css
File metadata and controls
50 lines (43 loc) · 1.13 KB
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
.pp-scroll-both {
position: relative;
overflow: auto;
}
.pp-scroll-vertical {
position: relative;
overflow-x: hidden;
overflow-y: auto;
}
.pp-scroll-horizontal {
position: relative;
overflow-y: hidden;
overflow-x: auto;
}
/* - if you leave "width:0px", then system scrollbar width is assigned, on touch interface default is 34px
- borders,margins,padding can be added
- use right to position bar from box's right side
- please do not remove border definition, or IE will choke
*/
.pp-scroll-bar {
border: 0;
background-color: #EEE;
padding: 0;
margin: 0;
cursor: default;
}
.pp-scroll-bar-v {
width: 0px;
right: 0px;
height: 1px; /* IE */
}
.pp-scroll-bar-h {
height: 0px;
bottom: 0px;
width: 1px; /* IE */
}
/* thumb cannot take borders, padding, & margins, that's because its easier this way for me to calculate movements
IF you need those or want to have something special then add your own thumb _inside_ it, for example like this:
$('.pp-scroll-thumb').html('<div class="mythumb"></div'); an do whatever you want with it
*/
.pp-scroll-thumb {
background-color: #000;
}