From 9f85c6e1d1759d038e6ed441719bd4ef9aca8abd Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Tue, 16 Feb 2016 20:40:54 -0800 Subject: [PATCH] Extract $carousel-control-sm-up-size variable [skip sauce] [skip validator] --- scss/_carousel.scss | 12 ++++++------ scss/_variables.scss | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/scss/_carousel.scss b/scss/_carousel.scss index af8c95c624..d6c7eda014 100644 --- a/scss/_carousel.scss +++ b/scss/_carousel.scss @@ -225,16 +225,16 @@ .carousel-control { .icon-prev, .icon-next { - width: 30px; - height: 30px; - margin-top: -15px; - font-size: 30px; + 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: -15px; + margin-left: -($carousel-control-sm-up-size / 2); } .icon-next { - margin-right: -15px; + margin-right: -($carousel-control-sm-up-size / 2); } } diff --git a/scss/_variables.scss b/scss/_variables.scss index 2c48a70594..6352b602bc 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -760,6 +760,7 @@ $carousel-text-shadow: 0 1px 2px rgba(0,0,0,.6) !default; $carousel-control-color: #fff !default; $carousel-control-width: 15% !default; +$carousel-control-sm-up-size: 30px !default; $carousel-control-opacity: .5 !default; $carousel-control-font-size: 20px !default;