aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2016-12-04 22:05:05 -0800
committerMark Otto <[email protected]>2016-12-04 22:05:05 -0800
commit89f5e65cfb24311473bf07bd414cbccf4f8d9596 (patch)
treeccabd97a21bcc7c64247aa70a8d7385468eed1dc
parent1980854c14809c115c2ca780a9af1672de6913d5 (diff)
downloadbootstrap-89f5e65cfb24311473bf07bd414cbccf4f8d9596.tar.xz
bootstrap-89f5e65cfb24311473bf07bd414cbccf4f8d9596.zip
drop the fixed width of the indicators. instead use the carousel-control width as margins to ensure content doesn't overlap
-rw-r--r--scss/_carousel.scss10
-rw-r--r--scss/_variables.scss2
2 files changed, 6 insertions, 6 deletions
diff --git a/scss/_carousel.scss b/scss/_carousel.scss
index f1277dabe..31d0b6840 100644
--- a/scss/_carousel.scss
+++ b/scss/_carousel.scss
@@ -116,12 +116,14 @@
.carousel-indicators {
position: absolute;
+ right: 0;
bottom: 10px;
- left: 50%;
+ left: 0;
z-index: 15;
- width: $carousel-indicators-width;
- padding-left: 0;
- margin-left: -($carousel-indicators-width / 2);
+ // Use the .carousel-control's width as margin so we don't overlay those
+ margin-right: $carousel-control-width;
+ margin-left: $carousel-control-width;
+ padding-left: 0; // override <ul> default
text-align: center;
list-style: none;
diff --git a/scss/_variables.scss b/scss/_variables.scss
index 43cb98144..6ce7d723a 100644
--- a/scss/_variables.scss
+++ b/scss/_variables.scss
@@ -886,8 +886,6 @@ $carousel-control-color: #fff !default;
$carousel-control-width: 15% !default;
$carousel-control-opacity: .5 !default;
-$carousel-indicators-width: 60% !default;
-
$carousel-indicator-width: 30px !default;
$carousel-indicator-height: 3px !default;
$carousel-indicator-active-bg: #fff !default;