Fix external link icons (#3890).
This commit is contained in:
@@ -88,3 +88,16 @@ $success_color: hsl(120, 100%, 95%); // light green
|
|||||||
margin: 2px;
|
margin: 2px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://fontawesome.com/how-to-use/on-the-web/advanced/css-pseudo-elements
|
||||||
|
@mixin fa-icon($family, $weight, $content) {
|
||||||
|
display: inline-block;
|
||||||
|
font-style: normal;
|
||||||
|
font-variant: normal;
|
||||||
|
text-rendering: auto;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
|
||||||
|
font-family: $family;
|
||||||
|
font-weight: $weight;
|
||||||
|
content: $content;
|
||||||
|
}
|
||||||
|
|||||||
@@ -88,16 +88,13 @@ div.prose {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://fontawesome.com/how-to-use/on-the-web/advanced/css-pseudo-elements
|
|
||||||
a.dtext-external-link::after {
|
a.dtext-external-link::after {
|
||||||
display: none;
|
// https://fontawesome.com/icons/external-link-alt?style=solid
|
||||||
font: 900 1em "Font Awesome 5 Free";
|
@include fa-icon("Font Awesome 5 Free", 900, "\f35d");
|
||||||
content: "\f35d"; // https://fontawesome.com/icons/external-link-alt?style=solid
|
|
||||||
}
|
|
||||||
|
|
||||||
a.dtext-external-link svg {
|
font-size: 0.6em;
|
||||||
width: 0.75em;
|
padding: 0 0.2em 0 0.3em;
|
||||||
padding-left: 0.25em;
|
vertical-align: 1px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user