From ecf732a6c826b1a88cdc3f9ee441be872e3076b0 Mon Sep 17 00:00:00 2001 From: jonasled <git@jonasled.de> Date: Sun, 28 Feb 2021 00:46:31 +0100 Subject: [PATCH] change color on sub menu hover --- scss/_menue.scss | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/scss/_menue.scss b/scss/_menue.scss index 89bd389..1532a9b 100644 --- a/scss/_menue.scss +++ b/scss/_menue.scss @@ -27,16 +27,26 @@ width: max-content; left: 50%; transform: translateX(-50%); - background-color: $back-color-3; - border-radius: 10px; a { + background-color: $back-color-3; border-bottom: $back-color-2 solid 2px; width: 100%; color: $text-color; - &:last-of-type{ + &:first-of-type{ + border-top-left-radius: 10px; + border-top-right-radius: 10px; + } + + &:last-of-type { border-bottom: none; + border-bottom-left-radius: 10px; + border-bottom-right-radius: 10px; + } + + &:hover{ + background-color: $back-color-2; } } } -- GitLab