Hjoou Posted July 24, 2020 Share Posted July 24, 2020 Site URL: https://www.rogerroger.co/ Hi everyone and thank you in advance! I need help to customize two elements on my mobile menu bar. I don't have issues on desktop, it looks like this: But on mobile, it looks like this: The close button is black, the CTA button isn't looking like the rest of the site and the CTA is sitting a little too low for my liking. I'm hoping to get it to look like this mock up: Is there any way I can fix it? Thank you for your time! Here's what my CSS looks like for the menu now: Quote /*Mobile menu */ .header--menu-open .header-menu .header-menu-bg{background:#1e1e1e!important} .header--menu-open .header-menu-nav-item:nth-child(5) a {color:#fcc10c!important} .header--menu-open a{color:#FFF!important} .header--menu-open .header-menu .header-menu-cta a{background-color:#FFF;color:#FFF!important} .header--menu-open .burger-inner:before, .header--menu-open .burger-inner:after{background-color:#FFF!important} .header-menu-cta { background-color: #1e1e1e; } Link to comment
rwp Posted July 24, 2020 Share Posted July 24, 2020 Looks like you got the button figured out? This will fix the close button: .header-burger-btn.burger.burger--active .burger-inner.header-menu-icon-doubleLineHamburger { filter: invert(1); } Link to comment
Hjoou Posted July 28, 2020 Author Share Posted July 28, 2020 On 7/24/2020 at 11:52 PM, rwp said: Looks like you got the button figured out? This will fix the close button: .header-burger-btn.burger.burger--active .burger-inner.header-menu-icon-doubleLineHamburger { filter: invert(1); } Thank you so much for replying, I've applied the code for the invert filter and it worked perfectly! thank you. Unfortunately I haven't fixed the the CTA button on the mobile version. Would you be able to help me with that still? Thank you for taking the time! Link to comment
rwp Posted July 28, 2020 Share Posted July 28, 2020 Can you remove the CSS that you added for that button. The importants are not letting me mess with it easily. Link to comment
Hjoou Posted July 29, 2020 Author Share Posted July 29, 2020 Okay done, I've removed all CSS for the mobile menu Link to comment
rwp Posted July 29, 2020 Share Posted July 29, 2020 Try this /*Mobile menu */ .header--menu-open .header-menu .header-menu-bg { background: #1e1e1e !important; } .header--menu-open a { color:#FFF !important; } .header-burger-btn.burger.burger--active .burger-inner.header-menu-icon-doubleLineHamburger { filter: invert(1); } .theme-btn--primary.btn { color: orange !important; border-color: orange !important; } .header-menu-cta { padding-bottom: 15vh !important; } Link to comment
Hjoou Posted July 30, 2020 Author Share Posted July 30, 2020 17 hours ago, rwp said: Try this /*Mobile menu */ .header--menu-open .header-menu .header-menu-bg { background: #1e1e1e !important; } .header--menu-open a { color:#FFF !important; } .header-burger-btn.burger.burger--active .burger-inner.header-menu-icon-doubleLineHamburger { filter: invert(1); } .theme-btn--primary.btn { color: orange !important; border-color: orange !important; } .header-menu-cta { padding-bottom: 15vh !important; } It’s PERFECT thank you so much! Link to comment
tuanphan Posted July 31, 2020 Share Posted July 31, 2020 On 7/29/2020 at 11:01 AM, Hjoou said: Okay done, I've removed all CSS for the mobile menu Have you found the solution yet? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Hjoou Posted August 3, 2020 Author Share Posted August 3, 2020 Hey @tuanphan @rwp solved it for me I've pinned his code to the top Link to comment
Kacia Posted November 16, 2020 Share Posted November 16, 2020 Thank you @rwp for this code! For @rwp or anybody else: I customized this code for my site and tried to take it farther by customizing the subnav items. I want to move the subnav items up higher so that when a user clicks a folder, the subnav menu is horizontally aligned with the main nav item. Screenshots to clarify! My main mobile nav now looks like this. Without any fiddling, the subnav looks like this. With this bit of code... .header-menu-controls-control { margin-top: -30vh; } ...I was able to move part of the subnav up, as shown in this screenshot. How do I get the rest of the subnav to move up with it? URL is https://vibraphone-dove-dpfn.squarespace.com/ PW: He@1ing Thanks! Kacia Link to comment
tuanphan Posted November 17, 2020 Share Posted November 17, 2020 Try adding to Home > Design > Custom CSS .header-menu-nav-folder-content { justify-content: flex-start; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Kacia Posted November 17, 2020 Share Posted November 17, 2020 5 hours ago, tuanphan said: Try adding to Home > Design > Custom CSS .header-menu-nav-folder-content { justify-content: flex-start; } PERFECT. Your speed and accuracy in this forum is incredible, thank you so much! Link to comment
tuanphan Posted November 18, 2020 Share Posted November 18, 2020 I see scroll bar here + text off center. on Tablet, text (under banner) is a bit narrow. Do you want to fix? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Kacia Posted November 18, 2020 Share Posted November 18, 2020 8 hours ago, tuanphan said: I see scroll bar here + text off center. on Tablet, text (under banner) is a bit narrow. Do you want to fix? Yes please! I actually posted a separate question about the off-center text, details here: Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.