aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2017-07-01 16:48:46 -0700
committerMark Otto <[email protected]>2017-07-01 16:59:16 -0700
commit2bf4de0698461f3916c869e84c9f781458974fb3 (patch)
tree14b5b74b8624bf8b2aeb38f249e4f0ce3ef24c04
parent75156f419a503dda978b875d582e184c222bddd4 (diff)
downloadbootstrap-2bf4de0698461f3916c869e84c9f781458974fb3.tar.xz
bootstrap-2bf4de0698461f3916c869e84c9f781458974fb3.zip
Update carousel display settings
Use `display: block` since we're not really using any flex styles on the `.carousel-items` (only their controls and indicators). For the indicators, since moving to `width`, our indicators grow to fill available space, so we need to change `flex: 1 0 auto` to `flex: 0 1 auto` to prevent that.
-rw-r--r--scss/_carousel.scss4
1 files changed, 2 insertions, 2 deletions
diff --git a/scss/_carousel.scss b/scss/_carousel.scss
index 6d16039b5..8aa14ace7 100644
--- a/scss/_carousel.scss
+++ b/scss/_carousel.scss
@@ -22,7 +22,7 @@
.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
- display: flex;
+ display: block;
}
.carousel-item-next,
@@ -133,7 +133,7 @@
li {
position: relative;
- flex: 1 0 auto;
+ flex: 0 1 auto;
width: $carousel-indicator-width;
height: $carousel-indicator-height;
margin-right: $carousel-indicator-spacer;