2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-15 11:59:39 +03:00

Use variables for theme-color-level function

Closes #25313
This commit is contained in:
Mark Otto
2018-01-20 17:00:44 -08:00
committed by Mark Otto
parent 5a6be71791
commit 3be511264c
+1 -1
View 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);