Jump to content

Having the mobile menu slide in on the left side of my site.

Recommended Posts

If I understand what you want correctly, you want the font size to be much smaller on the mobile menu?

On the spacing. You want there to be space at the right so that the menu does not cover up the page below? If I have that right, doing that might be difficult. The issue is that on the right side of your site there is a border of white. So making the mobile not take up the whole screen would just reveal white for the most part. Lets work on one issue at a time. Font size first!

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment

Here is a crack at the fonts. Add the following to Design > Custom CSS.

.header-menu .user-accounts-text-link {

  font-size: 16px;
  
  }

.header-menu-nav-folder-content {

  justify-content: unset;
  
  }

.header-menu-nav-item a {

  font-size: 14px;
  font-weight: 600;
  padding: 6px;
  
  }

You can play with the numbers.

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
2 hours ago, inunzi said:

I’m very excited for the next step!

As a starting point add the following to your CSS.

.header-menu.header-menu--folder-list {

  width: 85%;
  
  }

.header-menu-nav-folder {

  overflow-y: hidden;
  
  }

.header-menu-nav-folder:not( .header-menu-nav-folder--active ) {

  -webkit-transform: translatex( 75% );
  -ms-transform: translatex( 75% );
  transform: translatex( 75% );
  
  visibility: hidden;
  
  }

@media screen and (max-width: 767px ) {

  .header-menu.header-menu--folder-list {
  
    width: 75%;
    
    }
    
  .header-menu-nav-folder:not( .header-menu-nav-folder--active ) {
  
    -webkit-transform: translatex( 65% );
    -ms-transform: translatex( 65% );
    transform: translatex( 65% );
    
    visibility: hidden;
    
    }
  }

This is for a 7.1 site.

Let us know how it goes.

Edited by creedon
version 2 of CSS

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
  • 5 months later...
On 3/2/2021 at 1:45 PM, Leah007 said:

If anyone found a fix for this I would be eternally grateful. My site is www.nuligoods.com. And thank you very much for the earlier code, working like a charm!

This will require a lot of code.

you can post on some FB groups
+ Squarespace Customization Resource Groups
+ Squarespace Community
+ Squarespace Entrepreneur
+ Squarespace Rockstars

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

I joined them all thank you for the recommendation!

And if anyone who is facing the same issue reads this, I ended up doing a workaround kind of cheat where I just reduced the width of the slide out menu so that it didn't get as far as my logo. Since my menu nav items are short titles anyways so they don't take up much vertical space it achieved the look I was going for without any further coding 🙂

image.thumb.png.aae627623a8099f9c273eb871ee8e133.png

Link to comment
  • 4 months later...
On 9/20/2020 at 4:31 AM, creedon said:

As a starting point add the following to your CSS.

.header-menu.header-menu--folder-list {

  width: 85%;
  
  }

.header-menu-nav-folder {

  overflow-y: hidden;
  
  }

.header-menu-nav-folder:not( .header-menu-nav-folder--active ) {

  -webkit-transform: translatex( 75% );
  -ms-transform: translatex( 75% );
  transform: translatex( 75% );
  
  visibility: hidden;
  
  }

@media screen and (max-width: 767px ) {

  .header-menu.header-menu--folder-list {
  
    width: 75%;
    
    }
    
  .header-menu-nav-folder:not( .header-menu-nav-folder--active ) {
  
    -webkit-transform: translatex( 65% );
    -ms-transform: translatex( 65% );
    transform: translatex( 65% );
    
    visibility: hidden;
    
    }
  }

This is for a 7.1 site.

Let us know how it goes.

Hi! 

I really like the code. I was wondering how I can adjust it so it also slides back? It slides open when I click on the menu, but it does not slide back. 

Thanks!

Link to comment
10 minutes ago, EliseSob said:

I was wondering how I can adjust it so it also slides back?

Please post the URL for the page on your site where you want this effect.

If your site is not public please set up a site-wide password, if you've not already done so.

Post the password here.

Adding a site-wide password is not a security breach. Please read the documentation at the link provided to understand how it works.

We can then take a look at your issue.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
14 minutes ago, creedon said:

Please post the URL for the page on your site where you want this effect.

If your site is not public please set up a site-wide password, if you've not already done so.

Post the password here.

Adding a site-wide password is not a security breach. Please read the documentation at the link provided to understand how it works.

We can then take a look at your issue.

Hi Creedon, 

Thank you for your quick response.

https://mandarin-violin-mjw7.squarespace.com/config/

password: elise

I also noted that the 'contact' button seems to slide from the left corner, whereas the text slides from the left. Is it possible to make the button also slide from the left?

Is it also possible to make the navigation titles on the mobile menu appear from top to bottom when the menu slides at the same time? 

Thanks in advance, 

Elise 

Link to comment
4 hours ago, EliseSob said:

I was wondering how I can adjust it so it also slides back? It slides open when I click on the menu, but it does not slide back.

I have updated my September 16th code post.

You'll want to set @sweep-out to true.

3 hours ago, EliseSob said:

Is it also possible to make the navigation titles on the mobile menu appear from top to bottom when the menu slides at the same time?

Are you thinking some kind of progressive reveal effect where New Page would be seen first, then About and so on? I don't have an immediate thought on that one. If someone has that effect in their bag of tricks feel free to chime in!

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
14 hours ago, creedon said:

I have updated my September 16th code post.

You'll want to set @sweep-out to true.

Are you thinking some kind of progressive reveal effect where New Page would be seen first, then About and so on? I don't have an immediate thought on that one. If someone has that effect in their bag of tricks feel free to chime in!

Dear Creedon, 

Thanks a lot! Exactly what I had in mind.

Is it maybe also possible to have the whole plane slide in? For example on squarespace.com when you click on the burger the menu slides in from the right like a square. Here you also see the reveal effect of the navigation titles that I had in mind.

Maybe @tuanphan has an idea in how to do make the mobile navigation titles reveal from top to bottom? 🙂 

 

Edited by Elise__
Link to comment

@Elise__

I have updated my September 16th code post again. Added a menu items reveal effect. The example from SS got the old brain juices flowing.

Let us know how it goes.

Edited by creedon

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.