Sha256: ca9b040c7d60ff97fccf85ab5c7390819b94ab798e2c0d7076031f25a5887410

Contents?: true

Size: 1.76 KB

Versions: 133

Compression:

Stored size: 1.76 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;
    .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;
  .border-radius(23px);
  .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;
    .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

133 entries across 133 versions & 15 rubygems

Version Path
middleman-core-3.1.1 fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_carousel.less
middleman-core-3.1.0 fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_carousel.less
middleman-core-3.1.0.rc.4 fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_carousel.less
middleman-core-3.1.0.rc.3 fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_carousel.less
middleman-core-3.1.0.rc.2 fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_carousel.less
burp_cms-1.3.7 app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/carousel.less
burp_cms-1.3.6 app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/carousel.less
burp_cms-1.3.5 app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/carousel.less
burp_cms-1.3.4 app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/carousel.less
middleman-core-3.1.0.rc.1 fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_carousel.less
burp_cms-1.3.3 app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/carousel.less
burp_cms-1.3.2 app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/carousel.less
burp_cms-1.3.1 app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/carousel.less
burp_cms-1.3.0 app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/carousel.less
middleman-more-3.0.14 fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_carousel.less
middleman-more-3.1.0.beta.3 fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_carousel.less
middleman-more-3.1.0.beta.2 fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_carousel.less
middleman-more-3.1.0.beta.1 fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_carousel.less
middleman-more-3.0.13 fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_carousel.less
middleman-more-3.0.12 fixtures/twitter-bootstrap-app/source/twitter-bootstrap-ebc6935/less/_carousel.less