aboutsummaryrefslogtreecommitdiff
path: root/less/carousel.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-09-26 11:20:27 -0700
committerMark Otto <[email protected]>2012-09-26 11:20:27 -0700
commitcd5ae9e0304dfba17d445b0c2dac7b17a1faa201 (patch)
treef00c0472445c4e6e65ef2654cbac2af444972133 /less/carousel.less
parent6b578ec8de0865c6c5b3e12c7824037a7d422789 (diff)
downloadbootstrap-cd5ae9e0304dfba17d445b0c2dac7b17a1faa201.tar.xz
bootstrap-cd5ae9e0304dfba17d445b0c2dac7b17a1faa201.zip
change up carousel
Diffstat (limited to 'less/carousel.less')
-rw-r--r--less/carousel.less51
1 files changed, 31 insertions, 20 deletions
diff --git a/less/carousel.less b/less/carousel.less
index 33f98ac4d..d92cb1bcc 100644
--- a/less/carousel.less
+++ b/less/carousel.less
@@ -10,9 +10,9 @@
}
.carousel-inner {
+ position: relative;
overflow: hidden;
width: 100%;
- position: relative;
}
.carousel {
@@ -69,21 +69,17 @@
.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);
+ top: 0;
+ left: 0;
+ bottom: 0;
+ width: 100px;
.opacity(50);
+ &.left {
+ #gradient > .horizontal(rgba(0,0,0,.75), rgba(0,0,0,.001));
+ background-color: transparent;
+ }
+
// we can't have this transition here
// because webkit cancels the carousel
// animation if you trip this while
@@ -94,7 +90,9 @@
// Reposition the right one
&.right {
left: auto;
- right: 15px;
+ right: 0;
+ #gradient > .horizontal(rgba(0,0,0,.001), rgba(0,0,0,.75));
+ background-color: transparent;
}
// Hover state
@@ -104,6 +102,18 @@
.opacity(90);
}
}
+.carousel-control .control {
+ position: absolute;
+ top: 50%;
+ z-index: 5;
+ display: block;
+ margin-top: -35px;
+ margin-left: 35px;
+ font-size: 80px;
+ font-weight: 100;
+ color: #fff;
+ text-shadow: 0 1px 2px rgba(0,0,0,.6);
+}
// Caption for text below images
@@ -114,16 +124,17 @@
left: 0;
right: 0;
bottom: 0;
- padding: 15px;
- background: @grayDark;
- background: rgba(0,0,0,.75);
+ z-index: 10;
+ padding: 40px;
+ text-shadow: 0 1px 2px rgba(0,0,0,.6);
+ max-width: 60%;
}
-.carousel-caption h4,
+.carousel-caption h3,
.carousel-caption p {
color: @white;
line-height: @baseLineHeight;
}
-.carousel-caption h4 {
+.carousel-caption h3 {
margin: 0 0 5px;
}
.carousel-caption p {