forked from dcloudio/mui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsliders.scss
135 lines (133 loc) · 3.69 KB
/
sliders.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
//
// Slider styles (to be used with galleries.js)
// --------------------------------------------------
// Outer wrapper for slider
.#{$namespace}slider {
//-webkit-backface-visibility: hidden;
overflow: hidden;
width: 100%;
position:relative;
z-index:z("default");
.#{$namespace}segmented-control.#{$namespace}segmented-control-inverted{
.#{$namespace}control-item {
&.#{$namespace}active {
border-bottom:0;
}
}
~ .#{$namespace}slider-group{
.#{$namespace}slider-item{
//@include hairline(double, #c8c7cc, 0); // double grey border.
border-top: 1px solid #c8c7cc;
border-bottom: 1px solid #c8c7cc;
}
}
}
// Inner wrapper for slider (width of all sliders together)
.#{$namespace}slider-group {
//加上后好像内嵌轮播时,第一张图片显示有问题
// -webkit-backface-visibility: hidden;
position: relative;
font-size: 0; // Remove spaces from inline-block children
white-space: nowrap;
@include transition(all 0s linear);
// Individual slider
.#{$namespace}slider-item {
// -webkit-backface-visibility: hidden;
position: relative;
display: inline-block;
white-space:normal;
width: 100%;
height: 100%;
font-size: 14px;
vertical-align: top; // Ensure that li always aligns to top
>a:not(.#{$namespace}control-item){
position: relative;
line-height: 0;
display: block;
}
img{
width: 100%;
}
.#{$namespace}table-view:before,.#{$namespace}table-view:after{
height:0;
}
// .#{$namespace}table-view-cell:last-child:after{
// height: 0;
// }
}
&.#{$namespace}slider-loop{
@include transform(translate(-100%, 0px));
}
// &.#{$namespace}slider-loop .#{$namespace}slider-item{
// &:first-child{
// margin-left: -100%;
// }
// &:last-child{
// margin-right: -100%;
// }
// }
}
}
.#{$namespace}slider-title{
position: absolute;
left: 0;
bottom: 0;
height: 30px;
line-height: 30px;
width: 100%;
text-align: left;
text-indent: 12px;
background-color: #000;
opacity: 0.8;
margin: 0;
}
.#{$namespace}slider-indicator{
position: absolute;
bottom: 8px;
width: 100%;
text-align:center;
background:none;
&.#{$namespace}segmented-control{
position:relative;
bottom:auto;
// .#{$namespace}control-item{
// line-height: 40px;
// }
}
.#{$namespace}indicator{
display: inline-block;
cursor: pointer;
background: #aaa;
width: 6px;
height: 6px;
margin: 1px 6px;
border-radius: 50%;
@include box-shadow(0 0 1px 1px rgba(130,130,130,.7));
}
.#{$namespace}active.#{$namespace}indicator{
background: #fff;
}
.#{$namespace}icon{
width: 40px;
height: 30px;
margin: 3px;
font-size: 20px;
line-height: 30px;
text-align: center;
border: 1px solid #dddddd;
}
.#{$namespace}number{
display: inline-block;
line-height: 32px;
width: 58px;
span{
color: #ff5053;
}
}
}
.#{$namespace}slider-progress-bar{
// -webkit-backface-visibility: hidden;
@include transform(translateZ(0));
height:2px;
z-index:z("default");
}