seahaven-site/wp-content/css/nav-dropdown-fix.css
Adam Moussa d8faee7b62 Fix footer layout: restore 4-column grid on desktop
The Elementor CSS custom property chain for --width wasn't resolving
correctly on the static site. Added explicit flex layout rules for
the footer columns (25% on desktop, 48% on tablet).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-04 19:12:29 -04:00

71 lines
1.9 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);
}
/* Footer layout fix: 4-column grid */
.elementor-114 .elementor-element-1e434e0f {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
@media (min-width: 768px) {
.elementor-114 .elementor-element-35f24109,
.elementor-114 .elementor-element-4b217e53,
.elementor-114 .elementor-element-62e2207d,
.elementor-114 .elementor-element-583b5112 {
width: 25%;
flex: 0 0 25%;
}
}
@media (max-width: 1024px) and (min-width: 768px) {
.elementor-114 .elementor-element-35f24109,
.elementor-114 .elementor-element-4b217e53,
.elementor-114 .elementor-element-62e2207d,
.elementor-114 .elementor-element-583b5112 {
width: 48%;
flex: 0 0 48%;
}
}