]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Update carousel display settings
authorMark Otto <markd.otto@gmail.com>
Sat, 1 Jul 2017 23:48:46 +0000 (16:48 -0700)
committerMark Otto <markd.otto@gmail.com>
Sat, 1 Jul 2017 23:59:16 +0000 (16:59 -0700)
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.

scss/_carousel.scss

index 6d16039b5bd66d9ea13d609b767c5bcb379a115c..8aa14ace79bf7a13339c779dee52053563de9180 100644 (file)
@@ -22,7 +22,7 @@
 .carousel-item.active,
 .carousel-item-next,
 .carousel-item-prev {
-  display: flex;
+  display: block;
 }
 
 .carousel-item-next,
 
   li {
     position: relative;
-    flex: 1 0 auto;
+    flex: 0 1 auto;
     width: $carousel-indicator-width;
     height: $carousel-indicator-height;
     margin-right: $carousel-indicator-spacer;