Add style for external links

This commit is contained in:
Gabriel Arazas 2022-10-20 19:14:49 +08:00
parent 9dd7994dbb
commit c6c35ddd82

View File

@ -34,6 +34,21 @@ article {
h1, h2, h3 {
margin-bottom: 1rem;
}
main {
/* Select all links that are external. */
a[href]:not(:where(
a[href^="#"],
a[href^="./"],
a[href^="../"],
a[href^="/"]:not(a[href^="//"]),
))::after, a[rel~="external"]::after {
color: var(--base05);
font-size: 0.50em;
content: " [🡕]";
vertical-align: super;
}
}
}