forked from olton/Metro-UI-CSS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
carousel.less
108 lines (94 loc) · 2.03 KB
/
carousel.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/*
* Metro UI CSS
* (c) 2012-2013 by Sergey Pimenov
* Licensed under the MIT License and Commercial
*
* Carousel.less
*
*/
.carousel {
display: block;
position: relative;
//line-height: 1;
//width: 100%;
//height: 100%;
margin-bottom: 20px;
.slides {
width: 100%;
height: 100%;
overflow: hidden;
position: relative;
.slide {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
&.image {
img {
width: 100%;
height: 100%;
}
}
.description {
position: absolute;
left: 0;
right: 0;
bottom: 0;
padding: 10px;
background: rgba(0,0,0,.7);
color: #fff;
}
}
}
.control {
position: absolute;
top: 50%;
left: 15px;
width: 40px;
height: 45px;
margin-top: -20px;
font-size: 48pt;
font-weight: 100;
line-height: 30px;
color: #fff;
text-align: center;
cursor: pointer;
opacity: .75;
&.right {
left: auto;
right: 15px;
}
&:hover {
opacity: 1;
}
}
.markers {
& > ul {
.unstyled;
list-style: none;
position: absolute;
top: 100%;
left: 0;
padding-top: 10px;
}
li {
display: block;
float: left;
margin-right: 5px;
a {
width: 32px;
height: 6px;
background-color: red;
display: block;
float: left;
}
&.active a {
background-color: #1e1e1e;
}
}
}
// Subclasses for animation effects
.effect-slide {}
.effect-fade {}
}