Repository navigation
Indent the pages of the Command line group in the sidebar - #26
Merged
Merged
Conversation
From 76.25em up the theme draws a group of the sidebar as a bold heading and takes the indent off the pages under it, so mise, Homebrew, Scoop, apt and Download stood in the same column as the pages above and below the group. They get the indent that the theme gives the pages of a group that folds, 0.6rem. The selector is the theme's own with one more section in front: the active tab, Get started, is a section as well, and its pages must stay where they are. Below 76.25em the sidebar is the theme's drawer, which already indents them.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After #25, the sidebar of Get started shows Command line as a bold heading with its five pages under it, all in the same column as Gradle plugin, Spotless and IntelliJ IDEA. Nothing shows that mise, Homebrew, Scoop, apt and Download belong to the heading.
Why
From 76.25em up, the theme draws a group of the sidebar (
navigation.sections) as a bold heading and setsmargin-left: 0on the list under it. Below that width the sidebar is the theme's drawer, where the same pages are indented.What changes
docs/stylesheets/navigation.css, listed inextra_css, gives that list the indent the theme gives the pages of a group that folds,0.6rem, from 76.25em up. It is one rule for each text direction, as the theme has.The selector is the theme's own with one more
.md-nav__item--sectionin front. The active tab, Get started, is a section as well, so without it the whole sidebar would move: Gradle plugin, Spotless and the rest must stay where they are. With the extra section the rule matches only a group inside a group, which today is Command line.Checked
zensical build --clean --strictpasses.Left alone: the heading stays bold. I looked at the light palette only; the rule sets a margin and no colour, so the dark palette gets the same indent.