Add icons for external links

This commit is contained in:
2018-06-24 14:53:03 +03:00
parent 8899990c09
commit 288ff73fd4
6 changed files with 35 additions and 2 deletions

View File

@ -4,6 +4,7 @@ html,
body {
font-size: $base-font-size;
font-family: $base-font-family;
color: $base-font-color;
padding: 0;
margin: 0;
@ -20,3 +21,26 @@ h5,
h6 {
font-weight: normal;
}
%external-link-icon {
display: inline-block;
margin-left: 0.6em;
color: $base-font-color;
font-size: $base-font-size - 4px;
@media (max-width: $first-media-step) {
font-size: $base-font-size - 2px;
}
}
a[href*="//github.com"]:after {
@extend %external-link-icon;
font-family: 'Font Awesome 5 Brands', serif;
content: '\f09b';
}
a[target="_blank"]:not([href*="//github.com"]):after {
@extend %external-link-icon;
font-family: 'Font Awesome 5 Free', serif;
content: '\f35d';
}

View File

@ -2,6 +2,7 @@ $base-font-family: 'PT Serif', serif;
// Базовый размер шрифта
$base-font-size: 20px;
$base-font-color: #333;
// Ширина страницы
$preferred-width: 700px;