Fix external link icons (#3890).
This commit is contained in:
@@ -88,3 +88,16 @@ $success_color: hsl(120, 100%, 95%); // light green
|
||||
margin: 2px;
|
||||
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 {
|
||||
display: none;
|
||||
font: 900 1em "Font Awesome 5 Free";
|
||||
content: "\f35d"; // https://fontawesome.com/icons/external-link-alt?style=solid
|
||||
}
|
||||
// https://fontawesome.com/icons/external-link-alt?style=solid
|
||||
@include fa-icon("Font Awesome 5 Free", 900, "\f35d");
|
||||
|
||||
a.dtext-external-link svg {
|
||||
width: 0.75em;
|
||||
padding-left: 0.25em;
|
||||
font-size: 0.6em;
|
||||
padding: 0 0.2em 0 0.3em;
|
||||
vertical-align: 1px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user