]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Use variables for theme-color-level function
authorMark Otto <markdotto@gmail.com>
Sun, 21 Jan 2018 01:00:44 +0000 (17:00 -0800)
committerMark Otto <markd.otto@gmail.com>
Sun, 21 Jan 2018 20:15:12 +0000 (12:15 -0800)
Closes #25313

scss/_functions.scss

index 1266d34bd9029922e92809b52827b479c7d9e8f9..b44d7d99861a5ff593e32edeaa44bd2dfbe40752 100644 (file)
@@ -79,7 +79,7 @@
 // Request a theme color level
 @function theme-color-level($color-name: "primary", $level: 0) {
   $color: theme-color($color-name);
-  $color-base: if($level > 0, #000, #fff);
+  $color-base: if($level > 0, $black, $white);
   $level: abs($level);
 
   @return mix($color-base, $color, $level * $theme-color-interval);