You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has been addressed by PR #2469. The changes will be available when Docsify v5 is released.
To-level headings can be targeted using .group and .group title classes
Page links can be targeted using .page-link
Nested page links can be targeted using .page-link + ul .page-link
Anchor links can be targeted using .section-link
Styling based on nesting level only works if the content found at each level is consistent for the entire navigation tree. Targeting by type is preferable because it allows for styling to be applied properly in sidebar navs like this:
- Title
-[Page 1](page1)-[Page 2](page2)-[Page 3](page3)-[Page 4](page4)
We could add both level and type classes (e.g. .level2 .page-link), but if this was necessary I don't think it is significantly cleaner or easier than something like li > li > .page-link.
Feature request
The markup in the sidebar has
ul
s,li
s,p
s, anda
s, but without any semantic classes.I'd like to be able to more easily style the menu levels.
For example, to achieve something like this:
What problem does this feature solve?
Currently, to do this, we have to write CSS like this:
What does the proposed API look like?
It may be cleaner to have classes, like
or similar. Thoughts?
The text was updated successfully, but these errors were encountered: