2012-06-29 00:46:45 -04:00
|
|
|
//
|
|
|
|
// Carousel
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2012-01-15 19:27:36 -05:00
|
|
|
|
|
|
|
.carousel {
|
2012-01-15 21:40:17 -05:00
|
|
|
position: relative;
|
2012-01-30 12:19:25 -05:00
|
|
|
margin-bottom: @baseLineHeight;
|
2012-01-15 21:40:17 -05:00
|
|
|
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
|
|
|
|
2012-11-28 05:17:50 -05:00
|
|
|
> .item {
|
2012-01-15 19:27:36 -05:00
|
|
|
display: none;
|
|
|
|
position: relative;
|
|
|
|
.transition(.6s ease-in-out left);
|
|
|
|
}
|
|
|
|
|
2012-01-25 14:47:36 -05:00
|
|
|
// Account for jankitude on images
|
2012-11-28 05:17:50 -05:00
|
|
|
> .item > img {
|
2012-01-25 14:47:36 -05:00
|
|
|
display: block;
|
|
|
|
line-height: 1;
|
|
|
|
}
|
|
|
|
|
2012-11-28 05:17:50 -05:00
|
|
|
> .active,
|
|
|
|
> .next,
|
|
|
|
> .prev { display: block; }
|
2012-01-15 19:27:36 -05:00
|
|
|
|
2012-11-28 05:17:50 -05:00
|
|
|
> .active {
|
2012-01-15 21:40:17 -05:00
|
|
|
left: 0;
|
|
|
|
}
|
2012-01-15 19:27:36 -05:00
|
|
|
|
2012-11-28 05:17:50 -05:00
|
|
|
> .next,
|
|
|
|
> .prev {
|
2012-01-15 19:27:36 -05:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2012-11-28 05:17:50 -05:00
|
|
|
> .next {
|
2012-01-15 21:40:17 -05:00
|
|
|
left: 100%;
|
|
|
|
}
|
2012-11-28 05:17:50 -05:00
|
|
|
> .prev {
|
2012-01-15 21:40:17 -05:00
|
|
|
left: -100%;
|
|
|
|
}
|
2012-11-28 05:17:50 -05:00
|
|
|
> .next.left,
|
|
|
|
> .prev.right {
|
2012-01-15 21:40:17 -05:00
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
|
2012-11-28 05:17:50 -05:00
|
|
|
> .active.left {
|
2012-01-15 21:40:17 -05:00
|
|
|
left: -100%;
|
|
|
|
}
|
2012-11-28 05:17:50 -05:00
|
|
|
> .active.right {
|
2012-01-15 21:40:17 -05:00
|
|
|
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;
|
2012-01-25 14:02:28 -05:00
|
|
|
color: @white;
|
2012-01-15 21:40:17 -05:00
|
|
|
text-align: center;
|
2012-01-24 23:45:38 -05:00
|
|
|
background: @grayDarker;
|
2012-01-25 13:59:45 -05:00
|
|
|
border: 3px solid @white;
|
2012-01-24 23:45:38 -05:00
|
|
|
.border-radius(23px);
|
|
|
|
.opacity(50);
|
2012-01-28 18:14:57 -05:00
|
|
|
|
|
|
|
// we can't have this transition here
|
|
|
|
// because webkit cancels the carousel
|
|
|
|
// animation if you trip this while
|
|
|
|
// in the middle of another animation
|
|
|
|
// ;_;
|
|
|
|
// .transition(opacity .2s linear);
|
2012-01-15 21:40:17 -05:00
|
|
|
|
|
|
|
// Reposition the right one
|
|
|
|
&.right {
|
|
|
|
left: auto;
|
|
|
|
right: 15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Hover state
|
|
|
|
&:hover {
|
2012-01-21 18:24:06 -05:00
|
|
|
color: @white;
|
2012-01-15 21:40:17 -05:00
|
|
|
text-decoration: none;
|
2012-01-24 23:45:38 -05:00
|
|
|
.opacity(90);
|
2012-01-15 21:40:17 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-07-09 00:47:16 -04:00
|
|
|
|
2012-01-15 21:40:17 -05:00
|
|
|
// Caption for text below images
|
|
|
|
// -----------------------------
|
|
|
|
|
|
|
|
.carousel-caption {
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
2012-07-09 00:47:16 -04:00
|
|
|
padding: 15px;
|
2012-01-21 18:24:06 -05:00
|
|
|
background: @grayDark;
|
2012-01-15 21:40:17 -05:00
|
|
|
background: rgba(0,0,0,.75);
|
|
|
|
}
|
|
|
|
.carousel-caption h4,
|
|
|
|
.carousel-caption p {
|
2012-01-21 18:24:06 -05:00
|
|
|
color: @white;
|
2012-07-09 00:47:16 -04:00
|
|
|
line-height: @baseLineHeight;
|
|
|
|
}
|
|
|
|
.carousel-caption h4 {
|
|
|
|
margin: 0 0 5px;
|
|
|
|
}
|
|
|
|
.carousel-caption p {
|
|
|
|
margin-bottom: 0;
|
2012-01-15 21:40:17 -05:00
|
|
|
}
|