revisor Posted November 10, 2020 Share Posted November 10, 2020 Site URL: https://www.gallerymilmar.com/ I am trying to make folder dropdown menu where on hover item changes background to black and, therefore, text color to white. I have almost managed to achieve that, except whenever I am located within "Artists" which is a folder with 2 portfolio in it, if I hover over painting or sculptures, the text color turns grey. If im located in "home" and hover over the painting or sculptures, it works fine. The same thing happens if I remove all my css code, the dropdown links are highlighted grey only if I am currently within that folder. Basically, I am trying to get rid of this weird grey color and have it only be white text when I hover. To summarize, the dropdown highlight behaves differently depending on my current location. I have a feeling this might be some weird squarespace built in feature and I gotta find out how to disable it. This is my current code responsible for the color within dropdown menu: .header-nav .header-nav-item--folder .header-nav-folder-content{ padding: 0; .header-nav-folder-item{ padding: .7em 1em; } .header-nav-folder-item:hover{ background: black; a {color: white !important;} } } Link to comment
Beyondspace Posted November 10, 2020 Share Posted November 10, 2020 Try this body[data-menu-overlay-theme-switcher="true"]:not(.header--menu-open) .header-nav-item--active a:hover { opacity: 1 !important; } BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
revisor Posted November 10, 2020 Author Share Posted November 10, 2020 2 hours ago, bangank36 said: Try this body[data-menu-overlay-theme-switcher="true"]:not(.header--menu-open) .header-nav-item--active a:hover { opacity: 1 !important; } it worked, thanks a lot, so yea, I guess I was right, squarespace had some weird default stuff going on Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.