Merge pull request #4560 from consul/improve_icon_support
Fix SVG icons on old browsers
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user