1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-01 01:21:49 +02:00

Rename scale-color() function to shift-color() to avoid collision with Sass's own color function (#32149)

This commit is contained in:
Mark Otto
2020-11-13 10:50:59 -08:00
committed by GitHub
parent 483b6413e9
commit 55f2192a39
5 changed files with 20 additions and 15 deletions

View File

@@ -44,9 +44,9 @@
// Generate contextual modifier classes for colorizing the alert.
@each $state, $value in $theme-colors {
$background: scale-color($value, $alert-bg-scale);
$border: scale-color($value, $alert-border-scale);
$color: scale-color($value, $alert-color-scale);
$background: shift-color($value, $alert-bg-scale);
$border: shift-color($value, $alert-border-scale);
$color: shift-color($value, $alert-color-scale);
@if (contrast-ratio($background, $color) < $min-contrast-ratio) {
$color: mix($value, color-contrast($background), abs($alert-color-scale));
}