header nav: fix submenu positioning

This commit is contained in:
Sarah Vaupel 2023-05-19 20:43:21 +00:00
parent 7a5bb77545
commit 60c96ec1ef

View File

@ -24,8 +24,9 @@ header
// menu items // menu items
& > li & > li
display: inline-block display: inline-block
padding: 4px 20px
white-space: nowrap white-space: nowrap
a
padding: 4px 20px
&:hover &:hover
background-color: red background-color: red
@ -37,8 +38,13 @@ header
background-color: black background-color: black
display: none display: none
position: absolute position: absolute
margin: 0
padding: 0
z-index: 1 z-index: 1
list-style-type: none list-style-type: none
& > li:hover & > li
background-color: red padding: 0 10px
&:hover
background-color: red