From 1980854c14809c115c2ca780a9af1672de6913d5 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 4 Dec 2016 22:01:31 -0800 Subject: [PATCH] rename var --- scss/_carousel.scss | 10 +++++----- scss/_variables.scss | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scss/_carousel.scss b/scss/_carousel.scss index ec8636060d..f1277dabec 100644 --- a/scss/_carousel.scss +++ b/scss/_carousel.scss @@ -89,9 +89,9 @@ top: 50%; z-index: 5; display: inline-block; - width: $carousel-icon-width; - height: $carousel-icon-width; - margin-top: -($carousel-icon-width / 2); + width: $carousel-control-icon-width; + height: $carousel-control-icon-width; + margin-top: -($carousel-control-icon-width / 2); font-family: serif; line-height: 1; background: transparent no-repeat center center; @@ -99,12 +99,12 @@ } .carousel-control-prev-icon { left: 50%; - margin-left: -($carousel-icon-width / 2); + margin-left: -($carousel-control-icon-width / 2); background-image: $carousel-control-prev-icon-bg; } .carousel-control-next-icon { right: 50%; - margin-right: -($carousel-icon-width / 2); + margin-right: -($carousel-control-icon-width / 2); background-image: $carousel-control-next-icon-bg; } diff --git a/scss/_variables.scss b/scss/_variables.scss index 1c478c6431..43cb981445 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -895,7 +895,7 @@ $carousel-indicator-active-bg: #fff !default; $carousel-caption-width: 70% !default; $carousel-caption-color: #fff !default; -$carousel-icon-width: 20px !default; +$carousel-control-icon-width: 20px !default; $carousel-control-prev-icon-bg: str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' fill='#{$carousel-control-color}' viewBox='0 0 8 8'%3E%3Cpath d='M4 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E"), "#", "%23") !default; $carousel-control-next-icon-bg: str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' fill='#{$carousel-control-color}' viewBox='0 0 8 8'%3E%3Cpath d='M1.5 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E"), "#", "%23") !default;