-
Notifications
You must be signed in to change notification settings - Fork 0
/
baron.css
80 lines (76 loc) · 1.35 KB
/
baron.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
.scroller_wrapper {
position: relative;
overflow: hidden;
}
.scroller {
height: 100%;
overflow-y: scroll;
/*-webkit-overflow-scrolling: touch;*/
/* uncomment to accelerate scrolling on iOs */
}
[class^="baron"] .scroller::-webkit-scrollbar {
width: 0;
}
.scroller__track_v {
display: none;
position: absolute;
z-index: 3;
top: 20px;
bottom: 20px;
right: 5px;
width: 8px;
border-radius: 5px;
background: #ddf;
background: rgba(0, 0, 255, .1);
pointer-events: none;
}
.scroller__track_h {
display: none;
position: absolute;
z-index: 3;
left: 20px;
right: 20px;
bottom: 5px;
height: 8px;
border-radius: 5px;
background: #ddf;
background: rgba(0, 0, 255, .1);
pointer-events: none;
}
.baron .scroller__track_v {
display: block;
}
.baron_h .scroller__track_h {
display: block;
}
.scroller__bar_v {
position: absolute;
z-index: 1;
width: 8px;
border-radius: 3px;
background: #987;
opacity: 0.5;
-webkit-transition: opacity .2s linear;
transition: opacity .2s linear;
pointer-events: auto;
}
.scroller__bar_h {
position: absolute;
z-index: 1;
height: 8px;
border-radius: 3px;
background: #987;
opacity: 0.5;
-webkit-transition: opacity .2s linear;
transition: opacity .2s linear;
pointer-events: auto;
}
.baron .scroller__bar {
opacity: .5;
}
.baron_h .scroller__bar_h {
opacity: .6;
}
[class^="scroller__bar"]:hover {
opacity: 0.8;
}