Sha256: 0e528f6a96e9e25bd34e3c983650d98cda7698ea7ffd6b6bf2327a86538309c6

Contents?: true

Size: 1.79 KB

Versions: 107

Compression:

Stored size: 1.79 KB

Contents

// CAROUSEL
// --------

.carousel {
  position: relative;
  margin-bottom: $baseLineHeight;
  line-height: 1;
}

.carousel-inner {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.carousel {

  .item {
    display: none;
    position: relative;
    @include transition(.6s ease-in-out left);
  }

  // Account for jankitude on images
  .item > img {
    display: block;
    line-height: 1;
  }

  .active,
  .next,
  .prev { display: block; }

  .active {
    left: 0;
  }

  .next,
  .prev {
    position: absolute;
    top: 0;
    width: 100%;
  }

  .next {
    left: 100%;
  }
  .prev {
    left: -100%;
  }
  .next.left,
  .prev.right {
    left: 0;
  }

  .active.left {
    left: -100%;
  }
  .active.right {
    left: 100%;
  }

}

// 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: $white;
  text-align: center;
  background: $grayDarker;
  border: 3px solid $white;
  @include border-radius(23px);
  @include opacity(50);

  // 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);

  // Reposition the right one
  &.right {
    left: auto;
    right: 15px;
  }

  // Hover state
  &:hover {
    color: $white;
    text-decoration: none;
    @include opacity(90);
  }
}

// Caption for text below images
// -----------------------------

.carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 15px 5px;
  background: $grayDark;
  background: rgba(0,0,0,.75);
}
.carousel-caption h4,
.carousel-caption p {
  color: $white;
}

Version data entries

107 entries across 81 versions & 8 rubygems

Version Path
sass-twitter-bootstrap-2.0.1 vendor/assets/stylesheets/twitter/_carousel.scss
openshift-origin-console-1.3.4 vendor/assets/stylesheets/bootstrap/_carousel.scss
openshift-origin-console-1.3.3 vendor/assets/stylesheets/bootstrap/_carousel.scss
openshift-origin-console-1.3.2 vendor/assets/stylesheets/bootstrap/_carousel.scss
anjlab-bootstrap-rails-2.0.4.4 vendor/assets/stylesheets/carousel.scss
bootstrap-sass-rails-2.0.4.3 vendor/assets/stylesheets/twitter/bootstrap/_carousel.scss
bootstrap-sass-rails-2.0.4.2 vendor/assets/stylesheets/twitter/bootstrap/_carousel.scss
bootstrap-sass-rails-rtl-2.0.4.12 vendor/assets/stylesheets/twitter/bootstrap/_carousel.scss
sass-twitter-bootstrap-0.1.0 vendor/assets/stylesheets/twitter/_carousel.scss
anjlab-bootstrap-rails-2.0.4.3 vendor/assets/stylesheets/carousel.scss
anjlab-bootstrap-rails-2.0.4.2 vendor/assets/stylesheets/carousel.scss
bootstrap-sass-rails-2.0.4.1 vendor/assets/stylesheets/twitter/bootstrap/_carousel.scss
bootstrap-generators-2.0.4 vendor/twitter/bootstrap/sass/_carousel.scss
bootstrap-sass-rails-2.0.4.0 vendor/assets/stylesheets/twitter/bootstrap/_carousel.scss
anjlab-bootstrap-rails-2.0.4.1 vendor/assets/stylesheets/carousel.scss
anjlab-bootstrap-rails-2.0.4.0 vendor/assets/stylesheets/carousel.scss
bootstrap-sass-rails-2.0.3.0 vendor/assets/stylesheets/twitter/bootstrap/_carousel.scss
bootstrap-sass-rails-2.0.3.0pre3 vendor/assets/stylesheets/twitter/bootstrap/_carousel.scss
bootstrapped-rails-2.0.8.1 vendor/assets/twitter/scss/carousel.scss
bootstrapped-rails-2.0.8 vendor/assets/twitter/scss/carousel.scss