getgrav / grav-theme-learn2

Learn2 Grav Theme
https://getgrav.org
MIT License
80 stars 42 forks source link

Possible to have all menu items expanded by default? #28

Closed KoreMike closed 8 years ago

KoreMike commented 8 years ago

If you have a not very large manual, is it possible to have all menu items expanded by default?

Would this be an adjustment to the css or could it be done in blueprints.yaml?

flaviocopes commented 8 years ago

It's a CSS thing. You can add this CSS: #sidebar h5+ul.topics, #sidebar ul.topics ul { display: block }

KoreMike commented 8 years ago

Thanks Flaviio

On 3 May 2016 at 13:07, Flavio Copes notifications@github.com wrote:

It's a CSS thing. You can add this CSS: #sidebar h5+ul.topics, #sidebar ul.topics ul { display: block }

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/getgrav/grav-theme-learn2/issues/28#issuecomment-216508475

KoreMike commented 8 years ago

Hello again Flavio!

I can't get this working.

If you look at the attached themecss.txt file, I have added:

#sidebar h5 + ul.topics, #sidebar ul.topics ul { display: block }

At Line 158

I also removed the previous blocks:

`#sidebar h5 + ul.topics { display: none; margin-top: 0; }

sidebar h5.parent + ul.topics, #sidebar h5.active + ul.topics {

display: block; }`

because I thought they would be conflicting with the added line. I have also tried leaving those blocks in, but nothing seems to work.