Unquote string when removing the hash from a color
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
3ec20be575
commit
a2f024ae1d
|
@ -27,9 +27,10 @@
|
||||||
* @return string The color without #
|
* @return string The color without #
|
||||||
*/
|
*/
|
||||||
@function remove-hash-from-color($color) {
|
@function remove-hash-from-color($color) {
|
||||||
|
$color: unquote($color);
|
||||||
$index: str-index(inspect($color), '#');
|
$index: str-index(inspect($color), '#');
|
||||||
@if $index {
|
@if $index {
|
||||||
$color: str-slice(inspect($color), 0, 1) + str-slice(inspect($color), 3);
|
$color: str-slice(inspect($color), 2);
|
||||||
}
|
}
|
||||||
@return $color;
|
@return $color;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue