mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +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:
parent
1980854c14
commit
89f5e65cfb
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user