2012-06-29 04:46:45 +00:00
|
|
|
//
|
|
|
|
// Carousel
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2012-01-16 00:27:36 +00:00
|
|
|
|
|
|
|
.carousel {
|
2012-01-16 02:40:17 +00:00
|
|
|
position: relative;
|
2012-11-30 22:37:24 +00:00
|
|
|
margin-bottom: @base-line-height;
|
2012-01-16 02:40:17 +00:00
|
|
|
line-height: 1;
|
|
|
|
}
|
2012-01-16 00:27:36 +00:00
|
|
|
|
2012-01-16 02:40:17 +00:00
|
|
|
.carousel-inner {
|
2012-09-26 18:20:27 +00:00
|
|
|
position: relative;
|
2012-01-16 02:40:17 +00:00
|
|
|
overflow: hidden;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2012-01-16 00:27:36 +00:00
|
|
|
|
2012-11-28 23:40:51 +00:00
|
|
|
.carousel-inner {
|
2012-01-16 00:27:36 +00:00
|
|
|
|
2012-11-28 10:17:50 +00:00
|
|
|
> .item {
|
2012-01-16 00:27:36 +00:00
|
|
|
display: none;
|
|
|
|
position: relative;
|
|
|
|
.transition(.6s ease-in-out left);
|
|
|
|
}
|
|
|
|
|
2012-01-25 19:47:36 +00:00
|
|
|
// Account for jankitude on images
|
2012-11-28 10:17:50 +00:00
|
|
|
> .item > img {
|
2012-01-25 19:47:36 +00:00
|
|
|
display: block;
|
|
|
|
line-height: 1;
|
|
|
|
}
|
|
|
|
|
2012-11-28 10:17:50 +00:00
|
|
|
> .active,
|
|
|
|
> .next,
|
|
|
|
> .prev { display: block; }
|
2012-01-16 00:27:36 +00:00
|
|
|
|
2012-11-28 10:17:50 +00:00
|
|
|
> .active {
|
2012-01-16 02:40:17 +00:00
|
|
|
left: 0;
|
|
|
|
}
|
2012-01-16 00:27:36 +00:00
|
|
|
|
2012-11-28 10:17:50 +00:00
|
|
|
> .next,
|
|
|
|
> .prev {
|
2012-01-16 00:27:36 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2012-11-28 10:17:50 +00:00
|
|
|
> .next {
|
2012-01-16 02:40:17 +00:00
|
|
|
left: 100%;
|
|
|
|
}
|
2012-11-28 10:17:50 +00:00
|
|
|
> .prev {
|
2012-01-16 02:40:17 +00:00
|
|
|
left: -100%;
|
|
|
|
}
|
2012-11-28 10:17:50 +00:00
|
|
|
> .next.left,
|
|
|
|
> .prev.right {
|
2012-01-16 02:40:17 +00:00
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
|
2012-11-28 10:17:50 +00:00
|
|
|
> .active.left {
|
2012-01-16 02:40:17 +00:00
|
|
|
left: -100%;
|
|
|
|
}
|
2012-11-28 10:17:50 +00:00
|
|
|
> .active.right {
|
2012-01-16 02:40:17 +00:00
|
|
|
left: 100%;
|
|
|
|
}
|
2012-01-16 00:27:36 +00:00
|
|
|
|
2012-01-16 02:40:17 +00:00
|
|
|
}
|
2012-01-16 00:27:36 +00:00
|
|
|
|
2012-01-16 02:40:17 +00:00
|
|
|
// Left/right controls for nav
|
|
|
|
// ---------------------------
|
|
|
|
|
|
|
|
.carousel-control {
|
|
|
|
position: absolute;
|
2012-09-26 18:20:27 +00:00
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
bottom: 0;
|
2012-10-01 06:44:23 +00:00
|
|
|
width: 120px;
|
2012-01-25 04:45:38 +00:00
|
|
|
.opacity(50);
|
2012-01-28 23:14:57 +00: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-16 02:40:17 +00:00
|
|
|
|
2012-10-01 06:44:23 +00:00
|
|
|
// Set gradients for backgrounds
|
|
|
|
&.left {
|
|
|
|
#gradient > .horizontal(rgba(0,0,0,.75), rgba(0,0,0,.001));
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
2012-01-16 02:40:17 +00:00
|
|
|
&.right {
|
|
|
|
left: auto;
|
2012-09-26 18:20:27 +00:00
|
|
|
right: 0;
|
|
|
|
#gradient > .horizontal(rgba(0,0,0,.001), rgba(0,0,0,.75));
|
|
|
|
background-color: transparent;
|
2012-01-16 02:40:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Hover state
|
|
|
|
&:hover {
|
2012-01-21 23:24:06 +00:00
|
|
|
color: @white;
|
2012-01-16 02:40:17 +00:00
|
|
|
text-decoration: none;
|
2012-01-25 04:45:38 +00:00
|
|
|
.opacity(90);
|
2012-01-16 02:40:17 +00:00
|
|
|
}
|
2012-10-01 06:44:23 +00:00
|
|
|
|
|
|
|
// Toggles
|
|
|
|
.control {
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
z-index: 5;
|
|
|
|
display: block;
|
|
|
|
margin-top: -35px;
|
|
|
|
margin-left: 30px;
|
|
|
|
font-size: 80px;
|
|
|
|
font-weight: 100;
|
|
|
|
color: #fff;
|
|
|
|
text-shadow: 0 1px 2px rgba(0,0,0,.6);
|
|
|
|
}
|
|
|
|
&.right .control {
|
|
|
|
margin-left: 70px;
|
|
|
|
}
|
2012-01-16 02:40:17 +00:00
|
|
|
}
|
2012-10-01 06:44:23 +00:00
|
|
|
|
2012-01-16 02:40:17 +00:00
|
|
|
|
2012-07-09 04:47:16 +00:00
|
|
|
|
2012-01-16 02:40:17 +00:00
|
|
|
// Caption for text below images
|
|
|
|
// -----------------------------
|
|
|
|
|
|
|
|
.carousel-caption {
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
2012-09-26 18:20:27 +00:00
|
|
|
z-index: 10;
|
|
|
|
padding: 40px;
|
|
|
|
text-shadow: 0 1px 2px rgba(0,0,0,.6);
|
|
|
|
max-width: 60%;
|
2012-01-16 02:40:17 +00:00
|
|
|
}
|
2012-09-26 18:20:27 +00:00
|
|
|
.carousel-caption h3,
|
2012-01-16 02:40:17 +00:00
|
|
|
.carousel-caption p {
|
2012-01-21 23:24:06 +00:00
|
|
|
color: @white;
|
2012-11-30 22:37:24 +00:00
|
|
|
line-height: @base-line-height;
|
2012-07-09 04:47:16 +00:00
|
|
|
}
|
2012-09-26 18:20:27 +00:00
|
|
|
.carousel-caption h3 {
|
2012-07-09 04:47:16 +00:00
|
|
|
margin: 0 0 5px;
|
|
|
|
}
|
|
|
|
.carousel-caption p {
|
|
|
|
margin-bottom: 0;
|
2012-01-16 02:40:17 +00:00
|
|
|
}
|