Fix broken colors in some themed SVGs in web UI (#34988)
This commit is contained in:
parent
1bf8a642f0
commit
1824b1fd29
2 changed files with 10 additions and 8 deletions
|
@ -1,4 +1,6 @@
|
|||
@use 'sass:color';
|
||||
@use 'sass:string';
|
||||
@use 'sass:meta';
|
||||
|
||||
$darken-multiplier: -1 !default;
|
||||
$lighten-multiplier: 1 !default;
|
||||
|
@ -19,3 +21,11 @@ $lighten-multiplier: 1 !default;
|
|||
$space: hsl
|
||||
);
|
||||
}
|
||||
|
||||
@function hex-color($color) {
|
||||
@if meta.type-of($color) == 'color' {
|
||||
$color: string.slice(color.ie-hex-str($color), 4);
|
||||
}
|
||||
|
||||
@return '%23' + string.unquote($color);
|
||||
}
|
||||
|
|
|
@ -1,14 +1,6 @@
|
|||
@use 'variables' as *;
|
||||
@use 'functions' as *;
|
||||
|
||||
@function hex-color($color) {
|
||||
@if type-of($color) == 'color' {
|
||||
$color: str-slice(ie-hex-str($color), 4);
|
||||
}
|
||||
|
||||
@return '%23' + unquote($color);
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: $font-sans-serif, sans-serif;
|
||||
background: var(--background-color);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue