Improve navigation menu hover style with submenus
This commit is contained in:
parent
af12e3d4cf
commit
96f7cf4b66
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -55,12 +55,6 @@
|
||||
@include bp(desktop) {
|
||||
border-radius: var(--layout-border-radius-small);
|
||||
}
|
||||
|
||||
&.menu-item-has-children {
|
||||
@include bp(desktop) {
|
||||
border-radius: var(--layout-border-radius-small) var(--layout-border-radius-small) 0 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.sub-menu .menu-item :where(a, label, button):where(:not(._no-menu-item-style)) {
|
||||
|
@ -204,12 +204,6 @@
|
||||
@include bp(desktop) {
|
||||
border-radius: var(--layout-border-radius-small);
|
||||
}
|
||||
|
||||
&.menu-item-has-children {
|
||||
@include bp(desktop) {
|
||||
border-radius: var(--layout-border-radius-small) var(--layout-border-radius-small) 0 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -220,6 +214,17 @@
|
||||
height: fit-content;
|
||||
transition: background-color .1s;
|
||||
|
||||
&.menu-item-has-children {
|
||||
transition: background-color .1s, border-radius .1s;
|
||||
transition-delay: 0s, .3s;
|
||||
|
||||
&:hover {
|
||||
@include bp(desktop) {
|
||||
border-radius: var(--layout-border-radius-small) var(--layout-border-radius-small) 0 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:not(:hover) {
|
||||
.sub-menu {
|
||||
pointer-events: none;
|
||||
|
Loading…
x
Reference in New Issue
Block a user