-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy path_carousel.scss
142 lines (121 loc) · 2.01 KB
/
_carousel.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
136
137
138
139
140
141
142
//
// Carousel
// --------------------------------------------------
.carousel {
position: relative;
margin-bottom: 20px;
}
.carousel-inner {
overflow: hidden;
width: 100%;
position: relative;
}
.carousel {
.item {
display: none;
position: relative;
-webkit-transition: 0.6s ease-in-out left;
-moz-transition: 0.6s ease-in-out left;
-o-transition: 0.6s ease-in-out left;
transition: 0.6s ease-in-out left;
}
// Account for jankitude on images
.item > img {
display: block;
line-height: 1;
}
.active,
.next,
.prev { display: block; }
.active {
left: 0;
}
.next,
.prev {
position: absolute;
top: 0;
width: 100%;
}
.next {
left: 100%;
}
.prev {
left: -100%;
}
.next.left,
.prev.right {
left: 0;
}
.active.left {
left: -100%;
}
.active.right {
left: 100%;
}
}
// Left/right controls for nav
// ---------------------------
.carousel-control {
position: absolute;
top: 40%;
left: -.5em;
width: .7em;
height: .7em;
padding: .15em;
margin-top: -20px;
font-size: 3em;
font-weight: 100;
line-height: .5em;
color: white;
text-align: right;
background: #efefef;
border-radius: 100%;
opacity: 0.8;
filter: alpha(opacity=80);
// Reposition the right one
&.right {
left: auto;
right: -.5em;
text-align: left;
}
// Hover state
&:hover {
text-decoration: none;
opacity: 1;
filter: alpha(opacity=1);
}
}
// Caption for text below images
// -----------------------------
.carousel-caption {
position: absolute;
left: 0;
right: 0;
bottom: 0;
padding: 15px;
background: #EFEFEF;
background: rgba(0,0,0,.5);
}
.testimonial-caption{
left: auto;
width: 450px;
max-width: 86%;
bottom: 1em;
left: 1em;
font-size: .75em;
text-shadow: 0 1px 1px #000;
}
.carousel-caption h4,
.carousel-caption p {
color: #FFF;
}
.carousel-caption h4 {
margin: 0 0 5px;
}
.quote {
margin-bottom: .8751em;
line-height: 1.2;
}
.author {
font-size: .8751em;
}