Archived topic
Mobile Menu Changes
14 replies · Started by Chris on May 17, 2017
Okay. The site is coming right along.
1) As the menu becomes mobile, what can I do to differentiate between the top of the menu and the content?
http://i.imgur.com/FNjYOX0.jpg
2) How do I adjust the button at this size to look more normal and NOT fill the space?
http://i.imgur.com/4uvQFMf.jpg
3) How do I adjust the overall padding of the mobile menu?
4) How do I adjust the padding of the menu items?
Hi Chris,
The link is not working for me. Can you double check?
Is this the site?: http://gtg2017.giantishere.com/
If so, the mobile menu has a shadow to separate it, and the navigation search looks good: https://www.screencast.com/t/P2lT5jAS
As for the button, try this:
@media (max-width: 768px) {
.button.gtg-btn-red-header a {
display: inline-block;
}
}
That worked for the button. Thanks!
I've added this code to decrease the buttons padding in the mobile menu but it doesn't seem to be sticking for some reason.
.button.gtg-btn-red-header a,
.button.gtg-btn-red-header a:visited {
color: #ffffff !important;
background-color: #CF0A2C !important;
padding: 6px 12px !important;
margin: -15px -10px 0 -10px !important;
border-radius: 12px !important;
}
.button.gtg-btn-red-header a:hover,
.button.gtg-btn-red-header a:active {
background-color: #97021c !important;
color: #ffffff !important;
}
@media (max-width: 768px) {
.button.gtg-btn-red-header a {
display: inline-block;
padding: 3px 7px !important;
}
}
You'd have to do this:
@media (max-width: 768px) {
.button.gtg-btn-red-header a,
.button.gtg-btn-red-header a:visited {
display: inline-block;
padding: 3px 7px !important;
}
}
For some reason, the height of the button is still not changing. It will affect the width, but no the height.
Try: line-height: 15px;
No effect.
Change this selector:
.button.gtg-btn-red-header a,
.button.gtg-btn-red-header a:visited
To:
.main-navigation .main-nav ul li.button.gtg-btn-red-header a,
.main-navigation .main-nav ul li.button.gtg-btn-red-header a:visited
Just wanted to let you know I've tried this and it seems to have no effect.
http://gtg2017.giantishere.com/contact-forms/newsletter-signup/
http://i.imgur.com/hhL7tML.jpg
Thanks!
Hmm don't see the CSS being executed. Everything is still triggering at 768px.
Any chance there are syntax errors above the code you've added that stops this CSS from being executing?
I'll check.
That's the second time now. I'll check that first before posting. Thanks as always!
Glad we could help!