Digital experiences for all disciplines
New Landing › How can we help? › Atelier › Mega menu transparency
New Landing › How can we help? › Atelier › Mega menu transparency
- This topic has 10 replies, 3 voices, and was last updated 8 years by Kyle – SUPPORT.
-
Posted in: Atelier
-
February 19, 2016 at 12:17 pm #250641
Hi Guys,
I use the code below (from you) to make the sticky menu transparent.
.is-sticky .sticky-header {
background-color: rgba(255,255,255,0.95) !important;
}However when the header is transparent, the mega menu itself doesn’t and it looks a bit funny… Is it possible to make the background of the mega menu transparent?
ps. you need to login as the site has an active maintenance mode.
Thanks!
February 22, 2016 at 12:08 pm #251085Hi,
Please use this:
.resized-header nav .menu ul.sub-menu, .resized-header li.menu-item.sf-mega-menu > ul.sub-menu > div, .resized-header nav .menu ul.sub-menu, .resized-header li.menu-item.sf-mega-menu > ul.sub-menu > div { background-color: rgba(255,255,255,0.95) !important; }
Thanks.
February 22, 2016 at 12:51 pm #251122Unfortunately the mega menu dropdown still not transparent ๐
February 22, 2016 at 1:32 pm #251141Hi,
For full transparency you need to adjust the color code above, to this:
background-color: rgba(255,255,255,0) !important;
Previously it had a 95% solid fill, change it to 0 will make it without any fill color. I have done this on your site.Thanks.
February 22, 2016 at 2:02 pm #251155Hi David,
I don’t need full transparency, but there is still some glitches…
a) when we start scrolling (but the header is still the same height) it becomes transparent, but the dropdown doesn’t (See pic #1)
b) when the sticky header is active, the background of the dropdown is transparent (thanks!), but the submenu themselves have their own background for some reason – and they are not transparent (See pic #2)
Attachments:
You must be logged in to view attached files.February 22, 2016 at 5:32 pm #251258Change David’s css to:
.resized-header nav .menu .sf-mega-menu > ul.sub-menu, .resized-header li.menu-item.sf-mega-menu > ul.sub-menu > div, .resized-header nav .menu .sf-mega-menu > ul.sub-menu, .resized-header li.menu-item.sf-mega-menu > ul.sub-menu > div { background-color: rgba(255,255,255,0.80) !important; } .resized-header nav .menu .sf-mega-menu > ul.sub-menu .sub-menu { background: transparent; }
– Kyle
March 13, 2016 at 4:26 am #255026Hi Kyle,
It is now perfect when the header is resized (after scrolling), but there is interval when we scroll down but the header still doesn’t get resized and in this case the dropdown mega menu is not transparent (although the header is).
March 15, 2016 at 10:54 am #255465@micheal_w – can you screenshot this? I am having trouble replicating. Is it just when you scroll down slightly and pause?
Thanks.
March 15, 2016 at 10:54 am #255466Ok change it to:
nav .menu .sf-mega-menu > ul.sub-menu, li.menu-item.sf-mega-menu > ul.sub-menu > div, nav .menu .sf-mega-menu > ul.sub-menu, li.menu-item.sf-mega-menu > ul.sub-menu > div { background-color: rgba(255,255,255,0.80) !important; } nav .menu .sf-mega-menu > ul.sub-menu .sub-menu { background: transparent; }
– Kyle
March 15, 2016 at 10:57 am #255468It works, you’re the King, thank you ๐
March 15, 2016 at 11:05 am #255472No problem ๐
-
Posted in: Atelier
You must be logged in to reply to this topic.