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

Always show menus expanded? #414

Open
MostHated opened this issue Jul 2, 2020 · 2 comments
Open

Always show menus expanded? #414

MostHated opened this issue Jul 2, 2020 · 2 comments

Comments

@MostHated
Copy link

Hello
I have been trying to figure out if there is a way to always show the entire menu as expanded, not just when you are under a particular top-level, but even at the main root _index.md. Is this possible currently?

Thanks,
-MH

@macropin
Copy link

macropin commented Jan 6, 2021

I've got a similar issue. I'm trying to prevent the second level menus from fully expanding.

@macropin
Copy link

macropin commented Jan 7, 2021

@MostHated add the following to your custom theme and this should expand all the menus:

#sidebar ul.topics ul {
  display: block;
}

For my requirements the following css will expand only the child menu one level:

/*
#sidebar ul.topics > li.active ul {
    display: none;
}
#sidebar ul.topics > li.active > ul {
    display: block;
}

Both the above were adapted from answers given in #88

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