Transparency of mobile menu
Permalink Browser Info Environment
Hello!
I love this theme! So very easily customized! My only thing I can't find to put in the custom css is the opacity of the drop down mobile menu. My client would like the background to be transparent. Any help you could give would be greatly appreciated!
I love this theme! So very easily customized! My only thing I can't find to put in the custom css is the opacity of the drop down mobile menu. My client would like the background to be transparent. Any help you could give would be greatly appreciated!
Type: | Ticket |
---|---|
Status: | Archived |
Jennifer,
It looks like it works as the menu is sliding down but once it is down all the way the background changes to solid white.
It looks like it works as the menu is sliding down but once it is down all the way the background changes to solid white.
Thank you so much! I will give that a try right now.
Hello,
You may need to clear cache and refresh your browser to see the CSS changes, or possibly you may need to adjust the rgba value if you want it more transparent (e.g. try changing the 0.4 to 0.3). Although if you make it too transparent, it will be difficult for people to read the links. I've attached an image of my test site using that CSS so that you can compare your transparency with mine.
If that still doesn't work, you could try this CSS instead:
If it still doesn't work for you, you can send us the link to your test site if you want us to look at your CSS. Please note this is a public thread, so if you want to send it privately, please pm or email contact@pilipalawebdesign.com
Thanks,
Jennifer
You may need to clear cache and refresh your browser to see the CSS changes, or possibly you may need to adjust the rgba value if you want it more transparent (e.g. try changing the 0.4 to 0.3). Although if you make it too transparent, it will be difficult for people to read the links. I've attached an image of my test site using that CSS so that you can compare your transparency with mine.
If that still doesn't work, you could try this CSS instead:
div.ccm-page .navbar-default .navbar-nav .open .dropdown-menu { background-color: #FFF; background-color: rgba(255, 255, 255, 0.4); }
If it still doesn't work for you, you can send us the link to your test site if you want us to look at your CSS. Please note this is a public thread, so if you want to send it privately, please pm or email contact@pilipalawebdesign.com
Thanks,
Jennifer
I read your support query again, and realise that you are trying to make your mobile menu transparent, not your drop down menu! Sorry, I misread that initially. That would explain why it didn't work... The CSS below should work. The styles within the media query are for the main menu, and the first styles are for the mobile menu. You can change the rgba values to your preference.
The theme menu styles are located here:
juniper\themes\juniper\css\build\topmenu.less
But I would use this for reference, and change it in "custom CSS" as described above.
You can inspect the CSS using a tool like Firefox page inspector, if you find you want to adjust more styles in the menu:
https://developer.mozilla.org/en-US/docs/Tools/Page_Inspector...
https://developer.mozilla.org/en-US/docs/Tools/Page_Inspector/How_to...
Thanks,
Jennifer
div.ccm-page .navbar-collapse.in { background-color: #ffffff; background-color: rgba(255, 255, 255, 0.4); } div.ccm-page .navbar-fixed-top { background-color: #ffffff; background-color: rgba(255, 255, 255, 0.4); } div.ccm-page .navbar-fixed-top.opaque { background-color: #ffffff; background-color: rgba(255, 255, 255, 0.4); } @media (min-width: 992px) { div.ccm-page .navbar-fixed-top { background-color: #ffffff;
Viewing 15 lines of 22 lines. View entire code block.
The theme menu styles are located here:
juniper\themes\juniper\css\build\topmenu.less
But I would use this for reference, and change it in "custom CSS" as described above.
You can inspect the CSS using a tool like Firefox page inspector, if you find you want to adjust more styles in the menu:
https://developer.mozilla.org/en-US/docs/Tools/Page_Inspector...
https://developer.mozilla.org/en-US/docs/Tools/Page_Inspector/How_to...
Thanks,
Jennifer
Jennifer,
That did it! Thank you so much for the quick replies and help!
Tracy
That did it! Thank you so much for the quick replies and help!
Tracy
You're welcome! Thanks for letting us know that it worked.
Best, Jennifer
Best, Jennifer
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.
To re-open this issue, reply to this message.
To re-open this issue, reply to this message.
I have just tested customisation of the submenu background in the design panel, and the CSS from the customisation is being ouputted before the theme's default styles, so the theme styles are overwriting the transparency customisation. We will look into this.
This should be how you would do it (but please note it is not working as explained above):
1. From any page click on the gear icon at the top left of the menu.
2. Then click on "Design" and click on "Customize".
https://documentation.concrete5.org/editors/in-page-editing/the-tool...
You can change individual properties in the menu here, or add custom CSS.
3. Click on "Submenu background" and move the slider to your preferred transparency below the box that says rgba. Then select choose (see attached image).
4. When you have made your changes, click "Save Changes" (bottom right of your page) and then you will be prompted whether the changes are for this page only or the entire site.
5. Click on the pencil icon and choose "Publish Changes".
This is not working, so please just add the custom CSS in the design panel. So instead of selecting "Submenu background", scroll down, and click on the gear icon next to "Custom CSS", add your CSS in the pop up box, click "Save".
For example (adjust rgba value for transparency value and colour):
Save changes as above.
Thanks, Jennifer