info@53: //
info@53: // Carousel
info@53: // --------------------------------------------------
info@53: 
info@53: 
info@53: // Wrapper for the slide container and indicators
info@53: .carousel {
info@53:   position: relative;
info@53: }
info@53: 
info@53: .carousel-inner {
info@53:   position: relative;
info@53:   overflow: hidden;
info@53:   width: 100%;
info@53: 
info@53:   > .item {
info@53:     display: none;
info@53:     position: relative;
info@53:     .transition(.6s ease-in-out left);
info@53: 
info@53:     // Account for jankitude on images
info@53:     > img,
info@53:     > a > img {
info@53:       .img-responsive();
info@53:       line-height: 1;
info@53:     }
info@53:   }
info@53: 
info@53:   > .active,
info@53:   > .next,
info@53:   > .prev { display: block; }
info@53: 
info@53:   > .active {
info@53:     left: 0;
info@53:   }
info@53: 
info@53:   > .next,
info@53:   > .prev {
info@53:     position: absolute;
info@53:     top: 0;
info@53:     width: 100%;
info@53:   }
info@53: 
info@53:   > .next {
info@53:     left: 100%;
info@53:   }
info@53:   > .prev {
info@53:     left: -100%;
info@53:   }
info@53:   > .next.left,
info@53:   > .prev.right {
info@53:     left: 0;
info@53:   }
info@53: 
info@53:   > .active.left {
info@53:     left: -100%;
info@53:   }
info@53:   > .active.right {
info@53:     left: 100%;
info@53:   }
info@53: 
info@53: }
info@53: 
info@53: // Left/right controls for nav
info@53: // ---------------------------
info@53: 
info@53: .carousel-control {
info@53:   position: absolute;
info@53:   top: 0;
info@53:   left: 0;
info@53:   bottom: 0;
info@53:   width: @carousel-control-width;
info@53:   .opacity(@carousel-control-opacity);
info@53:   font-size: @carousel-control-font-size;
info@53:   color: @carousel-control-color;
info@53:   text-align: center;
info@53:   text-shadow: @carousel-text-shadow;
info@53:   // We can't have this transition here because WebKit cancels the carousel
info@53:   // animation if you trip this while in the middle of another animation.
info@53: 
info@53:   // Set gradients for backgrounds
info@53:   &.left {
info@53:     #gradient > .horizontal(@start-color: rgba(0,0,0,.5); @end-color: rgba(0,0,0,.0001));
info@53:   }
info@53:   &.right {
info@53:     left: auto;
info@53:     right: 0;
info@53:     #gradient > .horizontal(@start-color: rgba(0,0,0,.0001); @end-color: rgba(0,0,0,.5));
info@53:   }
info@53: 
info@53:   // Hover/focus state
info@53:   &:hover,
info@53:   &:focus {
info@53:     outline: none;
info@53:     color: @carousel-control-color;
info@53:     text-decoration: none;
info@53:     .opacity(.9);
info@53:   }
info@53: 
info@53:   // Toggles
info@53:   .icon-prev,
info@53:   .icon-next,
info@53:   .glyphicon-chevron-left,
info@53:   .glyphicon-chevron-right {
info@53:     position: absolute;
info@53:     top: 50%;
info@53:     z-index: 5;
info@53:     display: inline-block;
info@53:   }
info@53:   .icon-prev,
info@53:   .glyphicon-chevron-left {
info@53:     left: 50%;
info@53:   }
info@53:   .icon-next,
info@53:   .glyphicon-chevron-right {
info@53:     right: 50%;
info@53:   }
info@53:   .icon-prev,
info@53:   .icon-next {
info@53:     width:  20px;
info@53:     height: 20px;
info@53:     margin-top: -10px;
info@53:     margin-left: -10px;
info@53:     font-family: serif;
info@53:   }
info@53: 
info@53:   .icon-prev {
info@53:     &:before {
info@53:       content: '\2039';// SINGLE LEFT-POINTING ANGLE QUOTATION MARK (U+2039)
info@53:     }
info@53:   }
info@53:   .icon-next {
info@53:     &:before {
info@53:       content: '\203a';// SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (U+203A)
info@53:     }
info@53:   }
info@53: }
info@53: 
info@53: // Optional indicator pips
info@53: //
info@53: // Add an unordered list with the following class and add a list item for each
info@53: // slide your carousel holds.
info@53: 
info@53: .carousel-indicators {
info@53:   position: absolute;
info@53:   bottom: 10px;
info@53:   left: 50%;
info@53:   z-index: 15;
info@53:   width: 60%;
info@53:   margin-left: -30%;
info@53:   padding-left: 0;
info@53:   list-style: none;
info@53:   text-align: center;
info@53: 
info@53:   li {
info@53:     display: inline-block;
info@53:     width:  10px;
info@53:     height: 10px;
info@53:     margin: 1px;
info@53:     text-indent: -999px;
info@53:     border: 1px solid @carousel-indicator-border-color;
info@53:     border-radius: 10px;
info@53:     cursor: pointer;
info@53: 
info@53:     // IE8-9 hack for event handling
info@53:     //
info@53:     // Internet Explorer 8-9 does not support clicks on elements without a set
info@53:     // `background-color`. We cannot use `filter` since that's not viewed as a
info@53:     // background color by the browser. Thus, a hack is needed.
info@53:     //
info@53:     // For IE8, we set solid black as it doesn't support `rgba()`. For IE9, we
info@53:     // set alpha transparency for the best results possible.
info@53:     background-color: #000 \9; // IE8
info@53:     background-color: rgba(0,0,0,0); // IE9
info@53:   }
info@53:   .active {
info@53:     margin: 0;
info@53:     width:  12px;
info@53:     height: 12px;
info@53:     background-color: @carousel-indicator-active-bg;
info@53:   }
info@53: }
info@53: 
info@53: // Optional captions
info@53: // -----------------------------
info@53: // Hidden by default for smaller viewports
info@53: .carousel-caption {
info@53:   position: absolute;
info@53:   left: 15%;
info@53:   right: 15%;
info@53:   bottom: 20px;
info@53:   z-index: 10;
info@53:   padding-top: 20px;
info@53:   padding-bottom: 20px;
info@53:   color: @carousel-caption-color;
info@53:   text-align: center;
info@53:   text-shadow: @carousel-text-shadow;
info@53:   & .btn {
info@53:     text-shadow: none; // No shadow for button elements in carousel-caption
info@53:   }
info@53: }
info@53: 
info@53: 
info@53: // Scale up controls for tablets and up
info@53: @media screen and (min-width: @screen-sm-min) {
info@53: 
info@53:   // Scale up the controls a smidge
info@53:   .carousel-control {
info@53:     .glyphicons-chevron-left,
info@53:     .glyphicons-chevron-right,
info@53:     .icon-prev,
info@53:     .icon-next {
info@53:       width: 30px;
info@53:       height: 30px;
info@53:       margin-top: -15px;
info@53:       margin-left: -15px;
info@53:       font-size: 30px;
info@53:     }
info@53:   }
info@53: 
info@53:   // Show and left align the captions
info@53:   .carousel-caption {
info@53:     left: 20%;
info@53:     right: 20%;
info@53:     padding-bottom: 30px;
info@53:   }
info@53: 
info@53:   // Move up the indicators
info@53:   .carousel-indicators {
info@53:     bottom: 20px;
info@53:   }
info@53: }