2012-01-15 19:27:36 -05:00
|
|
|
// CAROUSEL
|
|
|
|
// --------
|
|
|
|
|
|
|
|
.carousel {
|
2012-01-15 21:40:17 -05:00
|
|
|
position: relative;
|
|
|
|
line-height: 1;
|
|
|
|
}
|
2012-01-15 19:27:36 -05:00
|
|
|
|
2012-01-15 21:40:17 -05:00
|
|
|
.carousel-inner {
|
|
|
|
overflow: hidden;
|
|
|
|
width: 100%;
|
2012-01-15 19:27:36 -05:00
|
|
|
position: relative;
|
2012-01-15 21:40:17 -05:00
|
|
|
}
|
2012-01-15 19:27:36 -05:00
|
|
|
|
2012-01-15 21:40:17 -05:00
|
|
|
.carousel {
|
2012-01-15 19:27:36 -05:00
|
|
|
|
|
|
|
.item {
|
|
|
|
display: none;
|
|
|
|
position: relative;
|
|
|
|
.transition(.6s ease-in-out left);
|
|
|
|
}
|
|
|
|
|
2012-01-15 21:40:17 -05:00
|
|
|
.active,
|
|
|
|
.next,
|
|
|
|
.prev { display: block; }
|
2012-01-15 19:27:36 -05:00
|
|
|
|
2012-01-15 21:40:17 -05:00
|
|
|
.active {
|
|
|
|
left: 0;
|
|
|
|
}
|
2012-01-15 19:27:36 -05:00
|
|
|
|
2012-01-15 21:40:17 -05:00
|
|
|
.next,
|
|
|
|
.prev {
|
2012-01-15 19:27:36 -05:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2012-01-15 21:40:17 -05:00
|
|
|
.next {
|
|
|
|
left: 100%;
|
|
|
|
}
|
|
|
|
.prev {
|
|
|
|
left: -100%;
|
|
|
|
}
|
|
|
|
.next.left,
|
|
|
|
.prev.right {
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.active.left {
|
|
|
|
left: -100%;
|
|
|
|
}
|
|
|
|
.active.right {
|
|
|
|
left: 100%;
|
|
|
|
}
|
2012-01-15 19:27:36 -05:00
|
|
|
|
2012-01-15 21:40:17 -05:00
|
|
|
}
|
2012-01-15 19:27:36 -05:00
|
|
|
|
2012-01-15 21:40:17 -05:00
|
|
|
// Left/right controls for nav
|
|
|
|
// ---------------------------
|
|
|
|
|
|
|
|
.carousel-control {
|
|
|
|
position: absolute;
|
|
|
|
top: 40%;
|
|
|
|
left: 15px;
|
|
|
|
width: 40px;
|
|
|
|
height: 40px;
|
|
|
|
margin-top: -20px;
|
|
|
|
font-size: 60px;
|
|
|
|
font-weight: 100;
|
|
|
|
line-height: 30px;
|
|
|
|
color: #ccc;
|
|
|
|
text-align: center;
|
|
|
|
background: #999;
|
|
|
|
background: rgba(0,0,0,.5);
|
|
|
|
.border-radius(20px);
|
|
|
|
|
|
|
|
// Reposition the right one
|
|
|
|
&.right {
|
|
|
|
left: auto;
|
|
|
|
right: 15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Hover state
|
|
|
|
&:hover {
|
|
|
|
color: #fff;
|
|
|
|
text-decoration: none;
|
|
|
|
background: #333;
|
|
|
|
background: rgba(0,0,0,.75);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Caption for text below images
|
|
|
|
// -----------------------------
|
|
|
|
|
|
|
|
.carousel-caption {
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
padding: 10px 15px 5px;
|
|
|
|
background: #333;
|
|
|
|
background: rgba(0,0,0,.75);
|
|
|
|
}
|
|
|
|
.carousel-caption h4,
|
|
|
|
.carousel-caption p {
|
|
|
|
color: #fff;
|
|
|
|
}
|