- This topic has 7 replies, 2 voices, and was last updated 5 years, 11 months ago by David.
-
AuthorPosts
-
May 10, 2018 at 6:37 am #572327Creative
Hi there, I’m developing a site with a slideout navigation menu (coming in from the right) but would really like the popup to be the full width/height of the page (and with the links centred) rather than the small menu that comes in.
I saw an earlier support reply (from last December) that suggested adding this:
@media (min-width: 400px) { .slideout-navigation { width: 100%; } }
… but all that does is cause the menu to permanently appear, albeit shifted over to the right by a few hundred pixels. I’m assuming something must also be needed to push the “hidden” state further off to the right, but I don’t know what I need to change to achieve this?
Thanks!
May 10, 2018 at 6:54 am #572347DavidStaffCustomer SupportIs this for mobile? If so then currently this is not an easy option as the background overlay has the exit button so if the nav is opened full screen there is no exit option available. If thats not a problem then we can look at some CSS
Alternatively you can sort of fake it by making the slideout overlay color the same as the slideout navigation colors:
.slideout-overlay { background-color: #aaa; } .offside-js--is-open .slideout-overlay { opacity: 1; }
And if you need to change he exit button color:
.slideout-exit { color: #000 !important; }
May 10, 2018 at 6:56 am #572350CreativeIt’s for desktop – and yes, good point about the exit button although that previous answer suggested adding a text link to the menu to close it, which I’m happy to do if that’s the only way around it!
But yeah, it’s not so much mobile where it’s a problem as it is on desktop, where at the moment the max site width is 1400px so a small 265px (or whatever it is) menu isn’t really cutting it in terms of the desired effect 🙂
May 10, 2018 at 7:07 am #572357DavidStaffCustomer SupportSomething like this:
May 10, 2018 at 7:13 am #572362CreativePretty much! Two more examples of the kind of thing I’m after:
http://www.social-communications.co.uk/
http://demos.themetrust.com/beckett/May 10, 2018 at 7:30 am #572374DavidStaffCustomer SupportOK i have something similar here:
So you can use this CSS and then some of the above to format the overlay colors to match.
@media (min-width: 768px) { .offside { left: 50%; margin-left: -132.5px; top: -100%; } .offside.is-open { -webkit-transform: translate3d(0,100%, 0); -moz-transform: translate3d(0, 100%, 0); -ms-transform: translate3d(0, 100%, 0); -o-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0); } }
May 10, 2018 at 7:33 am #572378CreativeThat has absolutely nailed it! Thank you!
May 10, 2018 at 7:39 am #572381DavidStaffCustomer SupportYour welcome Seb glad i could help
-
AuthorPosts
- You must be logged in to reply to this topic.