-
Notifications
You must be signed in to change notification settings - Fork 605
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
Reduce spacing between nav items #5310
Conversation
This gets us 6 more items above the fold. |
|
||
.md-nav--secondary .md-nav__link { | ||
margin-top: 0.5em; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll admit that I'm hesitant to add stuff like this for a few reasons: (1) we need to test it against all responsive breakpoints, not just on desktop; (2) it's not robust to updates to MkDocs or Material for MkDocs (what if they change the styling, or even the class names -- we'd have no way of knowing that this broke other than visual inspection).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand the concern, but the default navigation is going to be a problem. I'm not sure what to suggest as an alternative.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. There is a very good chance that this will silently break at some point. But I think you hear me.
At the very least, could I request that you: (1) add comments to each change in the CSS, and (2) add screenshots for all breakpoints?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I definitely hear you. I'm happy to take an alternative approach if there is one. Otherwise, I think this is (1) not a huge deal if there's a regression, though I could see how changes could interact badly if / when we have more custom CSS (2) a temporary solution until we revisit documentation rendering as a whole.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Sent a DM about the breakpoints)
} | ||
|
||
.md-nav--secondary .md-nav__link { | ||
margin-top: 0.5em; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note this specific change was to prevent the right-side TOC from also being condensed.
Dropped #5130 from here — it's more complicated. The useless "uv" title on the navbar remains. |
Before
After