Extract selector for admin menu icon
This way we'll be able to apply it to the SDG icon, which is not included in font-awesome. Note we're adding a font-icon selector so it's defined before the admin-menu-icon selector and so in case of conflicting rules the ones in the admin-menu-icon selector are used.
This commit is contained in:
@@ -17,9 +17,7 @@
|
|||||||
@include has-fa-icon($name, $style);
|
@include has-fa-icon($name, $style);
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
font-size: rem-calc(20);
|
@extend %admin-menu-icon;
|
||||||
margin-left: rem-calc(8);
|
|
||||||
margin-right: rem-calc(10);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -141,6 +141,13 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
%font-icon {
|
||||||
|
@extend %fa-icon;
|
||||||
|
font-family: "Font Awesome 5 Free";
|
||||||
|
margin-right: rem-calc(4);
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
%svg-icon {
|
%svg-icon {
|
||||||
background: currentcolor;
|
background: currentcolor;
|
||||||
content: "";
|
content: "";
|
||||||
@@ -150,14 +157,17 @@
|
|||||||
width: 1em;
|
width: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
%admin-menu-icon {
|
||||||
|
font-size: rem-calc(20);
|
||||||
|
margin-left: rem-calc(8);
|
||||||
|
margin-right: rem-calc(10);
|
||||||
|
}
|
||||||
|
|
||||||
@mixin has-fa-icon($icon, $style) {
|
@mixin has-fa-icon($icon, $style) {
|
||||||
@extend .fa-#{$icon};
|
@extend .fa-#{$icon};
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
@extend %fa-icon;
|
@extend %font-icon;
|
||||||
font-family: "Font Awesome 5 Free";
|
|
||||||
margin-right: rem-calc(4);
|
|
||||||
vertical-align: middle;
|
|
||||||
|
|
||||||
@if $style == "regular" {
|
@if $style == "regular" {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
|
|||||||
Reference in New Issue
Block a user