0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00

drop the fixed width of the indicators. instead use the carousel-control width as margins to ensure content doesn't overlap

This commit is contained in:
Mark Otto 2016-12-04 22:05:05 -08:00
parent 1980854c14
commit 89f5e65cfb
2 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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;