Zvýraznění odkazů a ikona k externímu odkazu

Ikona se přidává tak, že Zola generuje ke každému externím odkazům
`rel="noreferrer"` a CSS selektorem se všem takovým odkazům přidá ikona,
viz issue #9.

Closes: #9
remotes/1722757888236843906/tmp_refs/heads/search
Emil Miler 4 years ago
parent b6cc936c46
commit 316a8ca814

@ -9,6 +9,7 @@ build_search_index = false
[markdown] [markdown]
smart_punctuation = true smart_punctuation = true
external_links_no_referrer = true
[extra] [extra]

@ -138,9 +138,20 @@ main {
} }
p { margin: 1em 0 } p { margin: 1em 0 }
p, ul { line-height: 1.5 } p, ul { line-height: 1.5 }
a { font-weight: bold } a {
font-weight: bold;
color: #5E81AC;
}
a:hover { text-decoration: underline } a:hover { text-decoration: underline }
a[rel~="noreferrer"]::after {
content: "\e907";
font-family: icomoon;
font-size: .8em;
font-weight: normal;
margin-left: .2em;
}
section { section {
margin-bottom: 5rem; margin-bottom: 5rem;
} }
@ -153,7 +164,10 @@ main {
align-items: stretch; align-items: stretch;
justify-items: center; justify-items: center;
a { font-weight: normal } a {
font-weight: normal;
color: inherit;
}
a:hover { text-decoration: none } a:hover { text-decoration: none }
article { article {
@ -224,7 +238,10 @@ main {
} }
.info { .info {
a { font-weight: normal } a {
font-weight: normal;
color: inherit;
}
a:hover { text-decoration: underline } a:hover { text-decoration: underline }
} }
@ -322,6 +339,7 @@ main {
text-transform: uppercase; text-transform: uppercase;
font-size: .9rem; font-size: .9rem;
font-weight: bold; font-weight: bold;
color: inherit;
&:hover { &:hover {
text-decoration: none; text-decoration: none;

Loading…
Cancel
Save