diff options
| author | Mark Otto <[email protected]> | 2012-01-05 01:37:06 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-01-05 01:37:06 -0800 |
| commit | bdc22e71c8cbeddb1dbee9708ab68b4f23abb6f4 (patch) | |
| tree | 8fe71ef93378fdc85c862cec7a7490ef0391cd2d /lib/thumbnails.less | |
| parent | a13ab64870f40a67ffd85532c30620f8001d0822 (diff) | |
| parent | 5661855be3da81f0a46bd99c7522a93f01706289 (diff) | |
| download | bootstrap-bdc22e71c8cbeddb1dbee9708ab68b4f23abb6f4.tar.xz bootstrap-bdc22e71c8cbeddb1dbee9708ab68b4f23abb6f4.zip | |
Merge branch '2.0-wip' of github.com:twitter/bootstrap into 2.0-wip
Conflicts:
bootstrap.css
Diffstat (limited to 'lib/thumbnails.less')
| -rw-r--r-- | lib/thumbnails.less | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/lib/thumbnails.less b/lib/thumbnails.less index 9e25f5027..6ac3cb51f 100644 --- a/lib/thumbnails.less +++ b/lib/thumbnails.less @@ -32,3 +32,53 @@ a.thumbnail:hover { .thumbnail .caption { padding: 9px; } + +.carousel { + + position: relative; + + .carousel-inner { + overflow: hidden; + width: 100%; + position: relative; + } + + .item { + display: none; + position: relative; + .transition(.6s ease-in-out left); + } + + .active, .next, .prev { display: block; } + + .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% } + + .nav { + width: auto; + .border-radius(0); + height: 50px; + position: absolute; + top: 50%; + margin: -25px 0 0; + cursor: pointer; + background: rgba(0, 0, 0, 0.7); + color: white; + font-size: 42px; + left: 5px; + font-weight: 100; + padding: 0 15px; + &.right { right: 5px; left: auto; } + &:hover { text-decoration: none; background: rgba(0, 0, 0, 0.8); } + } +}
\ No newline at end of file |
