From 8f06eebe44e0d387743ccebb72a5663faaf2aa24 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 4 Dec 2016 21:39:46 -0800 Subject: [PATCH] rename and un-nest icons --- scss/_carousel.scss | 84 ++++++++++++++++++++++----------------------- 1 file changed, 41 insertions(+), 43 deletions(-) diff --git a/scss/_carousel.scss b/scss/_carousel.scss index b9011e3881..fff0bcc9c9 100644 --- a/scss/_carousel.scss +++ b/scss/_carousel.scss @@ -87,38 +87,38 @@ outline: 0; opacity: .9; } +} - // Toggles - .icon-prev, - .icon-next { - position: absolute; - top: 50%; - z-index: 5; - display: inline-block; - width: $carousel-icon-width; - height: $carousel-icon-width; - margin-top: -($carousel-icon-width / 2); - font-family: serif; - line-height: 1; - } - .icon-prev { - left: 50%; - margin-left: -($carousel-icon-width / 2); - } - .icon-next { - right: 50%; - margin-right: -($carousel-icon-width / 2); - } +// Toggles +.carousel-control-icon-prev, +.carousel-control-icon-next { + position: absolute; + top: 50%; + z-index: 5; + display: inline-block; + width: $carousel-icon-width; + height: $carousel-icon-width; + margin-top: -($carousel-icon-width / 2); + font-family: serif; + line-height: 1; +} +.carousel-control-icon-prev { + left: 50%; + margin-left: -($carousel-icon-width / 2); +} +.carousel-control-icon-next { + right: 50%; + margin-right: -($carousel-icon-width / 2); +} - .icon-prev { - &::before { - content: "\2039";// SINGLE LEFT-POINTING ANGLE QUOTATION MARK (U+2039) - } +.carousel-control-icon-prev { + &::before { + content: "\2039";// SINGLE LEFT-POINTING ANGLE QUOTATION MARK (U+2039) } - .icon-next { - &::before { - content: "\203a";// SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (U+203A) - } +} +.carousel-control-icon-next { + &::before { + content: "\203a";// SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (U+203A) } } @@ -198,20 +198,18 @@ @include media-breakpoint-up(sm) { // Scale up the controls a smidge - .carousel-control { - .icon-prev, - .icon-next { - width: $carousel-control-sm-up-size; - height: $carousel-control-sm-up-size; - margin-top: -($carousel-control-sm-up-size / 2); - font-size: $carousel-control-sm-up-size; - } - .icon-prev { - margin-left: -($carousel-control-sm-up-size / 2); - } - .icon-next { - margin-right: -($carousel-control-sm-up-size / 2); - } + .carousel-control-icon-prev, + .carousel-control-icon-next { + width: $carousel-control-sm-up-size; + height: $carousel-control-sm-up-size; + margin-top: -($carousel-control-sm-up-size / 2); + font-size: $carousel-control-sm-up-size; + } + .carousel-control-icon-prev { + margin-left: -($carousel-control-sm-up-size / 2); + } + .carousel-control-icon-next { + margin-right: -($carousel-control-sm-up-size / 2); } // Show and left align the captions