Blame content/assets/css/bootstrap/_carousel.scss

e8ec7a
//
e8ec7a
// Carousel
e8ec7a
// --------------------------------------------------
e8ec7a
e8ec7a
e8ec7a
// Wrapper for the slide container and indicators
e8ec7a
.carousel {
e8ec7a
  position: relative;
e8ec7a
}
e8ec7a
e8ec7a
.carousel-inner {
e8ec7a
  position: relative;
e8ec7a
  overflow: hidden;
e8ec7a
  width: 100%;
e8ec7a
e8ec7a
  > .item {
e8ec7a
    display: none;
e8ec7a
    position: relative;
e8ec7a
    @include transition(.6s ease-in-out left);
e8ec7a
e8ec7a
    // Account for jankitude on images
e8ec7a
    > img,
e8ec7a
    > a > img {
e8ec7a
      @include img-responsive();
e8ec7a
      line-height: 1;
e8ec7a
    }
e8ec7a
  }
e8ec7a
e8ec7a
  > .active,
e8ec7a
  > .next,
e8ec7a
  > .prev { display: block; }
e8ec7a
e8ec7a
  > .active {
e8ec7a
    left: 0;
e8ec7a
  }
e8ec7a
e8ec7a
  > .next,
e8ec7a
  > .prev {
e8ec7a
    position: absolute;
e8ec7a
    top: 0;
e8ec7a
    width: 100%;
e8ec7a
  }
e8ec7a
e8ec7a
  > .next {
e8ec7a
    left: 100%;
e8ec7a
  }
e8ec7a
  > .prev {
e8ec7a
    left: -100%;
e8ec7a
  }
e8ec7a
  > .next.left,
e8ec7a
  > .prev.right {
e8ec7a
    left: 0;
e8ec7a
  }
e8ec7a
e8ec7a
  > .active.left {
e8ec7a
    left: -100%;
e8ec7a
  }
e8ec7a
  > .active.right {
e8ec7a
    left: 100%;
e8ec7a
  }
e8ec7a
e8ec7a
}
e8ec7a
e8ec7a
// Left/right controls for nav
e8ec7a
// ---------------------------
e8ec7a
e8ec7a
.carousel-control {
e8ec7a
  position: absolute;
e8ec7a
  top: 0;
e8ec7a
  left: 0;
e8ec7a
  bottom: 0;
e8ec7a
  width: $carousel-control-width;
e8ec7a
  @include opacity($carousel-control-opacity);
e8ec7a
  font-size: $carousel-control-font-size;
e8ec7a
  color: $carousel-control-color;
e8ec7a
  text-align: center;
e8ec7a
  text-shadow: $carousel-text-shadow;
e8ec7a
  // We can't have this transition here because webkit cancels the carousel
e8ec7a
  // animation if you trip this while in the middle of another animation.
e8ec7a
e8ec7a
  // Set gradients for backgrounds
e8ec7a
  &.left {
e8ec7a
    @include gradient-horizontal($start-color: rgba(0,0,0,.5), $end-color: rgba(0,0,0,.0001));
e8ec7a
  }
e8ec7a
  &.right {
e8ec7a
    left: auto;
e8ec7a
    right: 0;
e8ec7a
    @include gradient-horizontal($start-color: rgba(0,0,0,.0001), $end-color: rgba(0,0,0,.5));
e8ec7a
  }
e8ec7a
e8ec7a
  // Hover/focus state
e8ec7a
  &:hover,
e8ec7a
  &:focus {
e8ec7a
    color: $carousel-control-color;
e8ec7a
    text-decoration: none;
e8ec7a
    @include opacity(.9);
e8ec7a
  }
e8ec7a
e8ec7a
  // Toggles
e8ec7a
  .icon-prev,
e8ec7a
  .icon-next,
e8ec7a
  .glyphicon-chevron-left,
e8ec7a
  .glyphicon-chevron-right {
e8ec7a
    position: absolute;
e8ec7a
    top: 50%;
e8ec7a
    left: 50%;
e8ec7a
    z-index: 5;
e8ec7a
    display: inline-block;
e8ec7a
  }
e8ec7a
  .icon-prev,
e8ec7a
  .icon-next {
e8ec7a
    width:  20px;
e8ec7a
    height: 20px;
e8ec7a
    margin-top: -10px;
e8ec7a
    margin-left: -10px;
e8ec7a
    font-family: serif;
e8ec7a
  }
e8ec7a
e8ec7a
  .icon-prev {
e8ec7a
    &:before {
e8ec7a
      content: '\2039';// SINGLE LEFT-POINTING ANGLE QUOTATION MARK (U+2039)
e8ec7a
    }
e8ec7a
  }
e8ec7a
  .icon-next {
e8ec7a
    &:before {
e8ec7a
      content: '\203a';// SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (U+203A)
e8ec7a
    }
e8ec7a
  }
e8ec7a
}
e8ec7a
e8ec7a
// Optional indicator pips
e8ec7a
//
e8ec7a
// Add an unordered list with the following class and add a list item for each
e8ec7a
// slide your carousel holds.
e8ec7a
e8ec7a
.carousel-indicators {
e8ec7a
  position: absolute;
e8ec7a
  bottom: 10px;
e8ec7a
  left: 50%;
e8ec7a
  z-index: 15;
e8ec7a
  width: 60%;
e8ec7a
  margin-left: -30%;
e8ec7a
  padding-left: 0;
e8ec7a
  list-style: none;
e8ec7a
  text-align: center;
e8ec7a
e8ec7a
  li {
e8ec7a
    display: inline-block;
e8ec7a
    width:  10px;
e8ec7a
    height: 10px;
e8ec7a
    margin: 1px;
e8ec7a
    text-indent: -999px;
e8ec7a
    border: 1px solid $carousel-indicator-border-color;
e8ec7a
    border-radius: 10px;
e8ec7a
    cursor: pointer;
e8ec7a
  }
e8ec7a
  .active {
e8ec7a
    margin: 0;
e8ec7a
    width:  12px;
e8ec7a
    height: 12px;
e8ec7a
    background-color: $carousel-indicator-active-bg;
e8ec7a
  }
e8ec7a
}
e8ec7a
e8ec7a
// Optional captions
e8ec7a
// -----------------------------
e8ec7a
// Hidden by default for smaller viewports
e8ec7a
.carousel-caption {
e8ec7a
  position: absolute;
e8ec7a
  left: 15%;
e8ec7a
  right: 15%;
e8ec7a
  bottom: 20px;
e8ec7a
  z-index: 10;
e8ec7a
  padding-top: 20px;
e8ec7a
  padding-bottom: 20px;
e8ec7a
  color: $carousel-caption-color;
e8ec7a
  text-align: center;
e8ec7a
  text-shadow: $carousel-text-shadow;
e8ec7a
  & .btn {
e8ec7a
    text-shadow: none; // No shadow for button elements in carousel-caption
e8ec7a
  }
e8ec7a
}
e8ec7a
e8ec7a
e8ec7a
// Scale up controls for tablets and up
e8ec7a
@media screen and (min-width: $screen-tablet) {
e8ec7a
e8ec7a
  // Scale up the controls a smidge
e8ec7a
  .carousel-control .icon-prev,
e8ec7a
  .carousel-control .icon-next {
e8ec7a
    width: 30px;
e8ec7a
    height: 30px;
e8ec7a
    margin-top: -15px;
e8ec7a
    margin-left: -15px;
e8ec7a
    font-size: 30px;
e8ec7a
  }
e8ec7a
e8ec7a
  // Show and left align the captions
e8ec7a
  .carousel-caption {
e8ec7a
    left: 20%;
e8ec7a
    right: 20%;
e8ec7a
    padding-bottom: 30px;
e8ec7a
  }
e8ec7a
e8ec7a
  // Move up the indicators
e8ec7a
  .carousel-indicators {
e8ec7a
    bottom: 20px;
e8ec7a
  }
e8ec7a
}