diff options
| author | Chris Rebert <[email protected]> | 2016-02-17 21:13:17 -0800 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2016-02-17 21:13:17 -0800 |
| commit | 06fac24b033e570da56463476366fc0b32c03427 (patch) | |
| tree | 423606d0eff3da8606b4cd7a310b797e22e3bc77 | |
| parent | 702041e0c5e916103b36016b0cb6cd5a1ba215b5 (diff) | |
| parent | 105bfbc5f9ba3040a7851ccfd15bd2d2a206ec25 (diff) | |
| download | bootstrap-06fac24b033e570da56463476366fc0b32c03427.tar.xz bootstrap-06fac24b033e570da56463476366fc0b32c03427.zip | |
Merge pull request #19241 from twbs/carousel-indicators-width
Extract $carousel-indicators-width variable
| -rw-r--r-- | scss/_carousel.scss | 4 | ||||
| -rw-r--r-- | scss/_variables.scss | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/scss/_carousel.scss b/scss/_carousel.scss index 744ec2f56..2ff886a39 100644 --- a/scss/_carousel.scss +++ b/scss/_carousel.scss @@ -163,9 +163,9 @@ bottom: 10px; left: 50%; z-index: 15; - width: 60%; + width: $carousel-indicators-width; padding-left: 0; - margin-left: -30%; + margin-left: -($carousel-indicators-width / 2); text-align: center; list-style: none; diff --git a/scss/_variables.scss b/scss/_variables.scss index 92469904a..a5bd67369 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -780,6 +780,8 @@ $carousel-control-sm-up-size: 30px !default; $carousel-control-opacity: .5 !default; $carousel-control-font-size: 20px !default; +$carousel-indicators-width: 60% !default; + $carousel-indicator-size: 10px !default; $carousel-indicator-active-size: 12px !default; $carousel-indicator-active-bg: #fff !default; |
