diff options
| author | Jacob Thornton <[email protected]> | 2012-01-02 22:30:57 -0800 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2012-01-02 22:30:57 -0800 |
| commit | 3fb6f6ee8670acff0c681c621b87a06a087f94be (patch) | |
| tree | f08cbf5632a01abf122cce71863f01bec7d10b40 /bootstrap.css | |
| parent | 8b58a1c3d9fea740c89f48c1771a6c7dd44e1f41 (diff) | |
| download | bootstrap-3fb6f6ee8670acff0c681c621b87a06a087f94be.tar.xz bootstrap-3fb6f6ee8670acff0c681c621b87a06a087f94be.zip | |
basic carousel implementation
Diffstat (limited to 'bootstrap.css')
| -rw-r--r-- | bootstrap.css | 39 |
1 files changed, 37 insertions, 2 deletions
diff --git a/bootstrap.css b/bootstrap.css index ae1754aa6..b4fd7e748 100644 --- a/bootstrap.css +++ b/bootstrap.css @@ -6,7 +6,7 @@ * http://www.apache.org/licenses/LICENSE-2.0 * * Designed and built with all the love in the world @twitter by @mdo and @fat. - * Date: Mon Jan 2 19:12:52 PST 2012 + * Date: Mon Jan 2 22:30:09 PST 2012 */ html, body { margin: 0; @@ -2587,13 +2587,48 @@ a.thumbnail:hover { .carousel { position: relative; } +.carousel .carousel-inner { + overflow: hidden; + width: 100%; + position: relative; +} .carousel .item { display: none; + position: relative; + -webkit-transition: 0.25s linear left; + -moz-transition: 0.25s linear left; + -ms-transition: 0.25s linear left; + -o-transition: 0.25s linear left; + transition: 0.25s linear left; } -.carousel .active { +.carousel .active, .carousel .next, .carousel .prev { display: block; } +.carousel .next, .carousel .prev { + position: absolute; + top: 0; + width: 100%; +} +.carousel .next { + left: 100%; +} +.carousel .prev { + left: -100%; +} +.carousel .next.left, .carousel .prev.right { + left: 0%; +} +.carousel .active.left { + left: -100%; +} +.carousel .active.right { + left: 100%; +} .carousel .nav { + width: auto; + -webkit-border-radius: 0; + -moz-border-radius: 0; + border-radius: 0; height: 50px; position: absolute; top: 50%; |
