From 0ee394a364de839867aca0f1050e29be29de2283 Mon Sep 17 00:00:00 2001 From: Anton Vakhrushev Date: Fri, 30 Aug 2019 12:13:44 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=20?= =?UTF-8?q?=D1=86=D0=B2=D0=B5=D1=82=20=D1=81=D1=81=D1=8B=D0=BB=D0=BE=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/_assets/base_style.scss | 11 +++++++++++ source/_assets/index/social.scss | 6 ++++++ source/_assets/vars.scss | 3 +++ source/index.html.twig | 24 ++++++++++++------------ 4 files changed, 32 insertions(+), 12 deletions(-) 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]