-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmt.slider.less
95 lines (68 loc) · 1.58 KB
/
mt.slider.less
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
@import "../../static/public.less";
// MT.SLIDER
.mt-slider {
margin: 0 auto;
max-width: 100%;
// max-width:1000px;
overflow: hidden;
position: relative;
.mt-slider-wrap {
position: absolute;
left: 0;
list-style: none;
padding: 0;
margin: 0;
li {
display: block;
float: left;
img {
width: 100%;
max-width: 100%;
display: block;
}
}
&:after {
content: ' ';
display: block;
width: 0;
clear: both;
}
}
.mt-slider-prev,
.mt-slider-next{
display: block;
position: absolute;
top:0;
bottom: 0;
margin: auto;
width: 50px;
height: 50px;
text-align: center;
text-decoration: none;
}
.mt-slider-prev{
left: 0;
}
.mt-slider-next{
right: 0;
}
.mt-slider-indicator {
position: absolute;
left: 0;
right: 0;
bottom: 0;
margin: auto;
padding: 0;
text-align: center;
padding: 5px 0;
a {
display: inline-block;
padding: 5px;
border-radius: 4px;
text-decoration: none;
&.active{
background: #fff !important;
}
}
}
}