Merge pull request #4560 from consul/improve_icon_support

Fix SVG icons on old browsers
This commit is contained in:
Javi Martín
2021-06-23 13:00:13 +02:00
committed by GitHub

View File

@@ -6,12 +6,14 @@
}
%svg-icon {
background: currentcolor;
content: "";
height: 1em;
mask-repeat: no-repeat;
mask-size: 100% 100%;
width: 1em;
@supports (mask-image: url()) {
background: currentcolor;
content: "";
height: 1em;
mask-repeat: no-repeat;
mask-size: 100% 100%;
width: 1em;
}
}
%admin-menu-icon {
@@ -37,11 +39,8 @@
}
}
@supports (mask-image: url()) {
&::#{$position} {
@extend %svg-icon;
mask-image: image-url("fontawesome/#{$style}/#{$icon}.svg");
}
&::#{$position} {
@extend %svg-icon;
mask-image: image-url("fontawesome/#{$style}/#{$icon}.svg");
}
}