forked from BosNaufal/react-scrollbar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle_default.scss
58 lines (53 loc) · 1.22 KB
/
style_default.scss
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
$color: black;
$size: 10px;
@mixin transition($param...) {
transition: $param;
-moz-transition: $param;
-webkit-transition: $param;
-o-transition: $param;
}
.react-scrollbar-default .-reactjs-scrollbar {
&-area {
&\:dragging {
}
&\:scrolling {
@include transition(all 0.5s ease);
.-reactjs-scrollbar-thumb {
@include transition(all 0.5s ease);
}
}
&:hover {
.-reactjs-scrollbar-track {
opacity: 1;
}
}
}
&-track {
@include transition(all 0.5s ease);
opacity: 0.5;
background: rgba($color, 0);
&:hover {
background: rgba($color, 0.3);
}
&\:vertical {
width: $size;
height: 100%;
top: 0;
right: 0;
}
&\:horizontal {
height: $size;
width: 100%;
bottom: 0;
right: 0;
}
}
&-thumb {
background: rgba($color, 0.5);
cursor: default;
width: $size; //note: width of vertical thumb
height: $size; //note: height of horizontal thumb
&\:dragging {
}
}
}