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 trop long margot-fun si beaucoup d'entrées #15

Open
J9rem opened this issue May 20, 2022 · 2 comments
Open

Menu trop long margot-fun si beaucoup d'entrées #15

J9rem opened this issue May 20, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@J9rem
Copy link
Contributor

J9rem commented May 20, 2022

Avec margot-fun (v1.0.2), quand un menu possède de nombreuses entrées, il devient long et difficile à afficher.
Exemple :
image

(il faut défiler toutes la pge pour voir tout le menu)

@J9rem J9rem added the bug Something isn't working label May 20, 2022
@J9rem
Copy link
Contributor Author

J9rem commented May 20, 2022

Une solution non satisfaisante et d'ajouter ce bout de code css dans PageCSS mais ça ne me convient pas :

#yw-topnav .dropdown-menu li {
  margin-bottom: .2rem;
}
#yw-topnav .links-container .nav a:not(.btn) {
  line-height: 1rem;
}
#yw-topnav .dropdown-menu a {
  padding: 3px 20px 3px 15px;
}
@media(max-width: 801px){
    #yw-topnav .navbar-nav > li > a {
       padding: 0.2rem 1rem !important;
    }
}

@J9rem
Copy link
Contributor Author

J9rem commented May 20, 2022

et aussi avec ceci en PageCSS c'est mieux

#yw-topnav .dropdown-menu li:hover,
#yw-topnav .dropdown-menu li:hover li {
  background-color: var(--neutral-color);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant