From 5d67a6e596ba19408cf0eb507fea21b345ddc455 Mon Sep 17 00:00:00 2001 From: kithenry <21903316@emu.edu.tr> Date: Wed, 14 Aug 2024 10:51:09 +0300 Subject: [PATCH] added hover effect to links, added href targets to icon links, reduced green line height --- assets/css/index.css | 20 ++++++++++++-- assets/snippets/footer.html | 54 ++++++++++++++++++++++++++++++++----- 2 files changed, 65 insertions(+), 9 deletions(-) diff --git a/assets/css/index.css b/assets/css/index.css index 7ddbb42..cc66e6f 100644 --- a/assets/css/index.css +++ b/assets/css/index.css @@ -13,6 +13,9 @@ --header-font: 'Roboto', sans-serif; --body-font: ; --footer-font: ; + + /* transitions */ + --base-transition: all .45s ease-in-out; } @@ -98,17 +101,19 @@ header .navlinks { header a { color: var(--color-light); + transition: var(--base-transition); } header a:hover { color: var(--color-secondary); + } .green-line { width: 100%; - height: 10px; + height: 8px; background-color: var(--color-secondary); } @@ -174,6 +179,12 @@ header a:hover { padding-top: 15px; margin-bottom: 4.5px; margin-right: 6px; + transition: var(--base-transition); +} + +.follow-icons .icons i:hover { + background-color: var(--color-secondary); + box-shadow: none; } .about-me { @@ -251,10 +262,15 @@ header a:hover { font-family: var(--header-font) } -.pages a { +footer a { color: var(--color-light); + transition: var(--base-transition); } +.pages a:hover{ + color: var(--color-secondary); + transition: var(--base-transition); +} .copyright { diff --git a/assets/snippets/footer.html b/assets/snippets/footer.html index 0cfa282..86d247e 100644 --- a/assets/snippets/footer.html +++ b/assets/snippets/footer.html @@ -1,7 +1,7 @@