Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menu fall down #3876

Open
gadj0dil0 opened this issue Dec 17, 2024 · 2 comments
Open

Menu fall down #3876

gadj0dil0 opened this issue Dec 17, 2024 · 2 comments

Comments

@gadj0dil0
Copy link

Hello,

Is it normal than with the default theme QUARK, when i have many pages the menu down below a zone under the icon.

Thank you

menu

@pamtbaau
Copy link
Contributor

pamtbaau commented Dec 18, 2024

Yes, that is the default behaviour:
{6CD8935C-4603-4001-A98D-100B7053DF51}

This is because the .navbar has been defined to use flex-wrap: wrap

.navbar {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: space-between;
}

You can override this behavior using the following steps:

  • Install plugin DevTools using $ bin/gpm install devtools
  • Create an inheriting/child theme using $ bin/plugin devtools newtheme. Let's assume you named it mytheme.
    Fill in the questions and choose inheritance and quark at the end.
  • Tell Grav to use your inheriting/child theme by setting the following in user/config/system.yaml:
    pages:
      theme: mytheme
    
  • And lastly, in your new theme, create file /user/themes/mytheme/css/custom.css and add the css that will satisfy your preferred layout of the .navbar.

@gadj0dil0
Copy link
Author

Thank you for your fast response.

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

No branches or pull requests

2 participants