diff --git a/source/_assets/base_style.scss b/source/_assets/base_style.scss index 5fecec3..260a194 100644 --- a/source/_assets/base_style.scss +++ b/source/_assets/base_style.scss @@ -22,6 +22,17 @@ h6 { font-weight: normal; } +a:not(:visited) { + color: $link-color; + text-decoration: none; +} + +a:hover, +a:focus, +a:active { + text-decoration: underline; +} + .hr-line { height: 0; display: block; diff --git a/source/_assets/index/social.scss b/source/_assets/index/social.scss index acc5da1..ba84135 100644 --- a/source/_assets/index/social.scss +++ b/source/_assets/index/social.scss @@ -1,3 +1,5 @@ +@import '../vars'; + .social { list-style: none; padding: 0; @@ -14,4 +16,8 @@ &__link { color: inherit; } + + &__link:hover { + color: $link-color; + } } diff --git a/source/_assets/vars.scss b/source/_assets/vars.scss index b7e1fa5..4480753 100644 --- a/source/_assets/vars.scss +++ b/source/_assets/vars.scss @@ -5,6 +5,9 @@ $base-monospace-font-family: 'Source Code Pro', monospace; $base-font-size: 20px; $base-font-color: #24292e; // from github +// Цвет ссылок +$link-color: #0366d6; // from github + // Ширина страницы $preferred-width: 740px; diff --git a/source/index.html.twig b/source/index.html.twig index d9f01e1..7037df5 100644 --- a/source/index.html.twig +++ b/source/index.html.twig @@ -33,29 +33,29 @@ use: [articles]