diff options
author | Mark Otto <markd.otto@gmail.com> | 2020-11-13 21:50:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-13 21:50:59 +0300 |
commit | 55f2192a398cdb4446937322f14b3e7e359a0d00 (patch) | |
tree | e71a118fc14cbd68e59be239ade796cb4666911c /scss/_functions.scss | |
parent | 483b6413e90e5ae01cc7719cb6388bc175d3b275 (diff) |
Rename scale-color() function to shift-color() to avoid collision with Sass's own color function (#32149)
Diffstat (limited to 'scss/_functions.scss')
-rw-r--r-- | scss/_functions.scss | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scss/_functions.scss b/scss/_functions.scss index b95fbf94e2..29114fc816 100644 --- a/scss/_functions.scss +++ b/scss/_functions.scss @@ -161,9 +161,8 @@ $_luminance-list: .0008 .001 .0011 .0013 .0015 .0017 .002 .0022 .0025 .0027 .003 @return mix(black, $color, $weight); } -// Scale a color: // Shade the color if the weight is positive, else tint it -@function scale-color($color, $weight) { +@function shift-color($color, $weight) { @return if($weight > 0, shade-color($color, $weight), tint-color($color, -$weight)); } // scss-docs-end color-functions |