- This topic has 66 replies, 5 voices, and was last updated 3 years, 11 months ago by
Fernando.
-
AuthorPosts
-
February 22, 2022 at 1:37 am #2128583
Georgi
Thanks for tidying up 🙂
The code works, it placed the account icon on the right side of the menu but I see that the cart has moved out of the screen for mobile: https://prnt.sc/aXgJBUsnkkV-
So I remember we added some CSS for padding before and removed the padding from it:
.menu-bar-items { order: 2; flex: 1 0 15%; padding: 0 0px !important; }But the cart is still too close to the side https://prnt.sc/orlYmdb28oGU
How can there be some space between the cart and the wall on the right like there is on the left side with the menu?
February 22, 2022 at 2:30 am #2128643Fernando Customer Support
I can see that you have this code inside the
@media (max-width: 768px)query:nav#mobile-header .inside-navigation { padding-right: 20px; }This is what is being used to add padding.
You can add a new media query to resolve this:
@media (max-width:375px){ nav#mobile-header div.inside-navigation { padding-right: 30px; } }Kindly modify the values to your preferred values. Take not that you shouldn’t place this inside the
@media (max-width: 768px)query.Hope this helps! 🙂
February 22, 2022 at 3:19 am #2128725Georgi
I added the exact CSS you gave at the bottom in the Customizer and played with the values but nothing changes :/
February 22, 2022 at 3:45 am #2128771Fernando Customer Support
I can see that you’ve added the code and it’s working from my end.
See: https://share.getcloudapp.com/JruGr7m9
I can also see that there are some other changes in your nav one screens widths 376-768, perhaps you added/edited or removed something? Or there’s a syntax error. Kindly check as the code I provided shouldn’t be causing this. 🙂
Hope this helps! 🙂
February 22, 2022 at 4:25 am #2128827Georgi
I can’t see it in incognito. The caching plugin is deactivated so it should be visible..
Only thing I removed and changed since your prevous reply is the CSS you suggested to be removednav#mobile-header .inside-navigation { padding-right: 20px; }I don’t know really..
February 22, 2022 at 10:51 am #2129558Ying
StaffCustomer SupportThe icons goes to or out of the edge is because of this CSS:
https://www.screencast.com/t/gDNd5LT552.site-logo.mobile-header-logo { order: 2; margin: 0 auto; flex: 1 0 70%; position: relative; }Try lower the
flex-basisvalue which is set to70%currently.February 22, 2022 at 12:13 pm #2129620Georgi
I managed to make it look good on mobile using the way you suggested but when I stretch to a tablet, it looks like this: https://prnt.sc/Lohwm_LAZAbn
:/
February 22, 2022 at 12:21 pm #2129629Ying
StaffCustomer SupportYou can try add different media query to the CSS for mobile/ tablet to reach the result you want.
February 22, 2022 at 11:30 pm #2130025Georgi
I added:
@media (max-width:375px){ .site-logo.mobile-header-logo { order: 2; margin: 0 auto; flex: 1 0 62%; position: relative; }and I have the same CSS for the @media (max-width: 768px) { only with a different value for flex.
For the 768 px screen the cart and search are looking ok https://prnt.sc/Dj8K1g0MJ8xM
But when I switch to 375 px it looks distorted no matter how many times I play with the value: https://prnt.sc/TfA5or4Ygks2Help me please 🙁
February 23, 2022 at 1:16 am #2130104Fernando Customer Support
Hi Georgi,
Maybe you can modify this CSS code in your 768px media query:
.menu-bar-items { order: 2; flex: 1 0 15%; padding: 0 10px !important; }to something like this:
.menu-bar-items { order: 2; flex: 1; }Then you can add padding to the mobile header like:
nav#mobile-header > div.inside-navigation { padding: 0 10px; }Hope this helps! 🙂
February 23, 2022 at 3:16 am #2130229Georgi
Hi Fernando,
Thanks for the input. I applied the changes you said but the effect was reversed – for 375 px it looks normal https://prnt.sc/s7VWsNBoz8vt while for 768 px the cart, search and account icons are not in place https://prnt.sc/vaVOB_E9UpZw
February 23, 2022 at 11:49 am #2130995Ying
StaffCustomer SupportUnder the
768pxmedia query, change theflexofmenu-toggleto1 0 50px, and change theflexofmobile-logoto1 0 calc(100% - 130px)February 24, 2022 at 2:01 pm #2132498Georgi
Wow, this looks better now 🙂 Thank you.
Just a quick question – this is how the second change in CSS should look like?
.site-logo.mobile-header-logo { order: 2; margin: 0 auto; flex: 1 0 calc(100% - 130px); position: relative; }February 24, 2022 at 2:57 pm #2132546Ying
StaffCustomer SupportCorrect,
mobile-header-logoit is 🙂February 25, 2022 at 5:52 am #2133230Georgi
Something that bugs me since we moved the account and cart in the header – when I’m logged in as admin in dekstop, the icons are almost together https://prnt.sc/YGbULvB5h-vZ but as a visitor they look alright https://prnt.sc/i5b-QULCkKlL I cant see a reason why is that?
-
AuthorPosts
- You must be logged in to reply to this topic.