forked from dcloudio/mui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscroll.scss
95 lines (91 loc) · 2.27 KB
/
scroll.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
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
94
95
.#{$namespace}scroll-wrapper {
// -webkit-backface-visibility: hidden;
position: absolute;
z-index: 2;
top: 0px;
bottom: 0px;
left: 0;
width: 100%;
overflow: hidden;
}
.#{$namespace}scroll {
// -webkit-backface-visibility: hidden;
position: absolute;
z-index: z("default");
width: 100%;
-webkit-transform: translateZ(0);
transform: translateZ(0);
}
.#{$namespace}scrollbar{
position: absolute;
z-index: z("scroll","scrollbar");
overflow: hidden;
transform: translateZ(0px);
transition: 500ms;
-webkit-transition: 500ms;
opacity: 0;
pointer-events: none;
}
.#{$namespace}scrollbar-vertical{
width: 4px;
bottom: 2px;
top: 0;
right: 1px;
.#{$namespace}scrollbar-indicator{
width:100%;
}
}
.#{$namespace}scrollbar-horizontal{
height: 4px;
left: 2px;
right: 2px;
bottom: 0px;
.#{$namespace}scrollbar-indicator{
height:100%;
}
}
.#{$namespace}scrollbar-indicator{
box-sizing: border-box;
position: absolute;
border: 1px solid rgba(255, 255, 255, 0.801961);
border-radius: 2px;
transition: 0.01s cubic-bezier(0.1, 0.57, 0.1, 1);
-webkit-transition: 0.01s cubic-bezier(0.1, 0.57, 0.1, 1);
display: block;
transform: translate(0px, 0px) translateZ(0px);
background: rgba(0, 0, 0, 0.398039);
}
//android 5+
.#{$namespace}plus-pullrefresh{
.#{$namespace}fullscreen{
.#{$namespace}scroll-wrapper,.#{$namespace}slider-group {
.#{$namespace}scroll-wrapper {
position: absolute;
top: 0px;
bottom: 0px;
left: 0;
width: 100%;
overflow: hidden;
}
.#{$namespace}scroll {
position: absolute;
width: 100%;
}
}
}
.#{$namespace}scroll-wrapper,.#{$namespace}slider-group {
position: static;
top: auto;
bottom: auto;
left: auto;
width: auto;
overflow: auto;
}
.#{$namespace}slider-group{
overflow: visible;
}
.#{$namespace}scroll {
position: static;
width: auto;
}
}