mirror of
https://github.com/Sea-Haven-Industries/seahaven-site.git
synced 2026-10-04 11:21:59 +00:00
47 lines
1.2 KiB
CSS
47 lines
1.2 KiB
CSS
|
|
/* Static site fix: CSS-only dropdown for Elementor nav menu */
|
||
|
|
.elementor-nav-menu--main .menu-item-has-children {
|
||
|
|
position: relative;
|
||
|
|
}
|
||
|
|
.elementor-nav-menu--main .menu-item-has-children > a.elementor-item {
|
||
|
|
display: inline-flex !important;
|
||
|
|
align-items: center !important;
|
||
|
|
gap: 4px !important;
|
||
|
|
}
|
||
|
|
.elementor-nav-menu--main .menu-item-has-children > a.elementor-item::after {
|
||
|
|
content: "▾" !important;
|
||
|
|
display: inline !important;
|
||
|
|
font-size: 1em !important;
|
||
|
|
line-height: 1 !important;
|
||
|
|
visibility: visible !important;
|
||
|
|
opacity: 1 !important;
|
||
|
|
width: auto !important;
|
||
|
|
height: auto !important;
|
||
|
|
border: none !important;
|
||
|
|
position: static !important;
|
||
|
|
}
|
||
|
|
.elementor-nav-menu--main .menu-item-has-children > .sub-menu {
|
||
|
|
display: none;
|
||
|
|
position: absolute;
|
||
|
|
top: 100%;
|
||
|
|
left: 0;
|
||
|
|
background: #fff;
|
||
|
|
min-width: 200px;
|
||
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
||
|
|
z-index: 9999;
|
||
|
|
padding: 0;
|
||
|
|
margin: 0;
|
||
|
|
list-style: none;
|
||
|
|
}
|
||
|
|
.elementor-nav-menu--main .menu-item-has-children:hover > .sub-menu {
|
||
|
|
display: block;
|
||
|
|
}
|
||
|
|
.elementor-nav-menu--main .sub-menu .menu-item a {
|
||
|
|
display: block;
|
||
|
|
padding: 10px 20px;
|
||
|
|
white-space: nowrap;
|
||
|
|
text-decoration: none;
|
||
|
|
}
|
||
|
|
.elementor-nav-menu--main .sub-menu .menu-item a:hover {
|
||
|
|
background: rgba(0,0,0,0.05);
|
||
|
|
}
|