Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Changing responsive menu toggle breakpoint #932

Closed
MarineLB opened this issue Jan 4, 2017 · 6 comments
Closed

Changing responsive menu toggle breakpoint #932

MarineLB opened this issue Jan 4, 2017 · 6 comments

Comments

@MarineLB
Copy link

MarineLB commented Jan 4, 2017

Hello !
I am trying to change the breakpoint where the title bar is displayed instead of the normal desktop menu. It is changing for medium up but I find it too small.
I can't seem to find where to change that. I tried the data-hide-for attribute, and changing the breakpoint in _navigation.scss but none of this is working.

Any ideas ?
Thank you

@MarineLB
Copy link
Author

MarineLB commented Jan 4, 2017

You can check my website here : https://lesdeuxvagues.com/kameojune/v2
user : github
passsword : github

The menu is overlapping with the logo and that's why i want to make the toggle happen sooner.

@kallkwik
Copy link

Just change the code in the navigation.scss file to:

`.desktop-menu, .top-bar-left {
@include show-for(large);
}

#mobile-menu, .title-bar {
@include hide-for(large);
}`

Then change the header.php from medium to large as well.

@MarineLB
Copy link
Author

Thanks for your help!

Would it work with, say, "800px", instead of "large" ?

@MarineLB
Copy link
Author

I forgot.. I had already tried that but there is no "medium" in header.php

@kallkwik
Copy link

Hi you can also use data-hide-for="large" on your title bar to hide the menu on large or above. Then the code above should activate the tablet menu earlier.

You can change the small / medium / large breakpoints in the settings.scss file.

@MarineLB MarineLB closed this as completed Jun 1, 2017
@labanino
Copy link

labanino commented Dec 18, 2018

Go to breakpoints in _settings.scss and change the width of medium :

// 2. Breakpoints
// --------------

$breakpoints: (
  small: 0,
  medium: 640px, // E.g. by default is 640px, change it to whatever you want it to be
  large: 1024px,
  xlarge: 1200px,
  xxlarge: 1440px,
);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants