From 1706f494f06a3981097b42f42854a870a51af864 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 22 Dec 2016 14:31:33 -0800 Subject: [PATCH] flexbox powered indicators This revamps the indicators to use flexbox instead of inline-block for added flexbility (hah). Indicators now automatically scale based on the number of elements present, and max out at the `$carousel-indicator-width` instead of always being that wide. --- scss/_carousel.scss | 8 ++++++-- scss/_variables.scss | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/scss/_carousel.scss b/scss/_carousel.scss index 01ad613e0f..18286b539f 100644 --- a/scss/_carousel.scss +++ b/scss/_carousel.scss @@ -121,6 +121,8 @@ bottom: 10px; left: 0; z-index: 15; + display: flex; + justify-content: center; padding-left: 0; // override