mirror of
https://github.com/foo-dogsquared/hugo-theme-more-contentful.git
synced 2025-02-07 12:19:26 +00:00
Add style for external links
This commit is contained in:
parent
9dd7994dbb
commit
c6c35ddd82
@ -34,6 +34,21 @@ article {
|
|||||||
h1, h2, h3 {
|
h1, h2, h3 {
|
||||||
margin-bottom: 1rem;
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user