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

Fix sidebar line-height. #1182

Merged
merged 1 commit into from
Apr 3, 2020

Conversation

ehuss
Copy link
Contributor

@ehuss ehuss commented Apr 3, 2020

Fixes #1168.

The issue is that the CSS was selecting for .expanded, but that doesn't match collapsed items, causing the lines to jump around as the "expanded" class was added/removed.

The solution is to give a dedicated class for chapter items, and apply the styling to those. A separate class is more convenient, so it doesn't need to deal with matching the bare <li> which is used for grouping collapsed sections, and also "spacer" entries.

@Dylan-DPC-zz Dylan-DPC-zz merged commit e839ef0 into rust-lang:master Apr 3, 2020
Ruin0x11 pushed a commit to Ruin0x11/mdBook that referenced this pull request Aug 30, 2020
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

Successfully merging this pull request may close these issues.

Sidebar line height issues in 0.3.6
2 participants