summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-01-11 10:09:51 +0100
committerMorris Jobke <hey@morrisjobke.de>2021-01-11 12:41:25 +0100
commita2f024ae1db3dd7176ed6af78c73ee854e8bddba (patch)
tree8276848061493b1cac937d6028027a79b2a1fa17 /core
parent3ec20be575cfec9c82ba4e6e71f745dfcf0cda88 (diff)
downloadnextcloud-server-a2f024ae1db3dd7176ed6af78c73ee854e8bddba.tar.gz
nextcloud-server-a2f024ae1db3dd7176ed6af78c73ee854e8bddba.zip
Unquote string when removing the hash from a color
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core')
-rw-r--r--core/css/functions.scss3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/css/functions.scss b/core/css/functions.scss
index 7616441bc1d..7489e574e97 100644
--- a/core/css/functions.scss
+++ b/core/css/functions.scss
@@ -27,9 +27,10 @@
* @return string The color without #
*/
@function remove-hash-from-color($color) {
+ $color: unquote($color);
$index: str-index(inspect($color), '#');
@if $index {
- $color: str-slice(inspect($color), 0, 1) + str-slice(inspect($color), 3);
+ $color: str-slice(inspect($color), 2);
}
@return $color;
}