Don't add default margin to font awesome icons
We were removing the margin half of the time, and sometimes removing it made us use `!important` rules.
This commit is contained in:
@@ -74,6 +74,7 @@ $outline-focus: 3px solid #ffbf47 !default;
|
||||
|
||||
$input-height: $line-height * 2 !default;
|
||||
|
||||
$font-icon-margin: rem-calc(4) !default;
|
||||
$icon-width: $line-height * 2 !default;
|
||||
|
||||
$off-screen-left: -1000rem !default;
|
||||
|
||||
@@ -23,6 +23,10 @@
|
||||
.preview-link {
|
||||
@include has-fa-icon(eye, regular);
|
||||
@include hollow-button;
|
||||
|
||||
&::before {
|
||||
margin-right: $font-icon-margin;
|
||||
}
|
||||
}
|
||||
|
||||
.publish-link {
|
||||
|
||||
@@ -36,7 +36,6 @@
|
||||
&::after {
|
||||
bottom: $padding / 2;
|
||||
color: $white;
|
||||
margin-right: 0;
|
||||
position: absolute;
|
||||
right: calc(#{$padding} + #{$quote-padding});
|
||||
}
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
|
||||
&::before {
|
||||
font-size: 1.6em;
|
||||
margin-right: 0 !important;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -33,10 +33,6 @@
|
||||
position: absolute;
|
||||
right: $close-icon-margin;
|
||||
top: $close-icon-margin;
|
||||
|
||||
&::before {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
|
||||
@@ -71,7 +71,6 @@
|
||||
&::after {
|
||||
font-size: 2em;
|
||||
margin-left: auto;
|
||||
margin-right: 0;
|
||||
transform: translateY(-25%);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,5 +6,9 @@
|
||||
color: $brand-secondary;
|
||||
font-weight: bold;
|
||||
margin-top: $line-height;
|
||||
|
||||
&::before {
|
||||
margin-right: $font-icon-margin;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -204,7 +204,6 @@
|
||||
&::after {
|
||||
font-weight: bold;
|
||||
margin-left: 0.5em;
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1470,6 +1470,7 @@ table {
|
||||
|
||||
&::before {
|
||||
font-size: rem-calc(24);
|
||||
margin-right: $font-icon-margin;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1863,6 +1864,7 @@ table {
|
||||
|
||||
.show-children::before,
|
||||
.collapse-children::before {
|
||||
margin-right: $font-icon-margin;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
@@ -1891,6 +1893,7 @@ table {
|
||||
}
|
||||
|
||||
&::before {
|
||||
margin-right: $font-icon-margin;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
}
|
||||
@@ -2456,6 +2459,10 @@ table {
|
||||
@include has-fa-icon(times, solid);
|
||||
color: $color-alert;
|
||||
}
|
||||
|
||||
&::before {
|
||||
margin-right: $font-icon-margin;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
%font-icon {
|
||||
@extend %fa-icon;
|
||||
font-family: "Font Awesome 5 Free";
|
||||
margin-right: rem-calc(4);
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
@include has-fa-icon(circle, solid, after);
|
||||
|
||||
&::before {
|
||||
@include breakpoint(medium) {
|
||||
margin-right: 0;
|
||||
@include breakpoint(small only) {
|
||||
margin-right: $font-icon-margin;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
|
||||
color: #ecf00b;
|
||||
font-size: $circle-icon-size;
|
||||
margin-right: 0;
|
||||
position: absolute;
|
||||
left: $notification-icon-size - rem-calc(5);
|
||||
top: $menu-link-top-padding - $circle-icon-size / 2;
|
||||
|
||||
@@ -1215,7 +1215,6 @@
|
||||
|
||||
&::after {
|
||||
margin-left: $line-height / 4;
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user