aboutsummaryrefslogtreecommitdiff
path: root/lib/carousel.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-01-15 16:27:36 -0800
committerMark Otto <[email protected]>2012-01-15 16:27:36 -0800
commitc02501e1b714ebb44c560483316ac36c4f709c50 (patch)
treeda14d0fa220a05c590ae71dfb9444e995417843c /lib/carousel.less
parent3d9298b04ba493d877afaa81d8f48545f0a89a3f (diff)
downloadbootstrap-c02501e1b714ebb44c560483316ac36c4f709c50.tar.xz
bootstrap-c02501e1b714ebb44c560483316ac36c4f709c50.zip
move carousel to separate stylesheet, update popovers to fix ie7 bug, fix pagination, fix alerts
Diffstat (limited to 'lib/carousel.less')
-rw-r--r--lib/carousel.less54
1 files changed, 54 insertions, 0 deletions
diff --git a/lib/carousel.less b/lib/carousel.less
new file mode 100644
index 000000000..0cfb0127a
--- /dev/null
+++ b/lib/carousel.less
@@ -0,0 +1,54 @@
+// CAROUSEL
+// --------
+
+.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; }
+
+ .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% }
+
+ .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