hover for entire nav should work for dropdown

main
Jonathan Dahan 11 months ago
parent 070478b1d9
commit a13758cfe2

@ -12,11 +12,11 @@ body {
header { header {
background: white; background: white;
position: sticky; position: sticky;
top: 1em; top: 0;
& > nav { & > nav {
background: white; background: white;
position: sticky; position: sticky;
top: 0.5em; top: 0;
display: flex; display: flex;
font-size: xx-large; font-size: xx-large;
& a { & a {
@ -56,8 +56,10 @@ li { list-style: none }
min-width: fit-content; min-width: fit-content;
} }
header { header {
max-height: 1em; &:hover > nav > menu > li {
top: 0em; visibility: initial;
display: block;
}
& > nav { & > nav {
top: 1em; top: 1em;
& menu { & menu {
@ -70,10 +72,6 @@ li { list-style: none }
visibility: inherit; visibility: inherit;
display: block; display: block;
} }
&:hover li {
visibility: initial;
display: block;
}
} }
} }
} }

Loading…
Cancel
Save