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
When a toctree item is "current" in the sidebar, the <a> element is bold and has an extra border-top and border-bottom of 1 px. This causes the containing <li class="toctree-l#"> to grow in height by 2 px.
Example:
Effect
Every time an item is clicked in the toctree, the item itself and the items below will change vertical position slightly.
My guess is that these styles were intended only to apply to the first li.current > a (since the comment hints at this and there are overrides below), but only li.toctree-l4 > a has settings for border-top: none and border-bottom: none
Suggested fix
Add border-top: none and border-bottom: none for li.toctree-l#.current > a (with # 1--4)
OR
Set a fixed height for toctree <li> elements
The text was updated successfully, but these errors were encountered:
Issue
When a toctree item is "current" in the sidebar, the
<a>
element is bold and has an extraborder-top
andborder-bottom
of 1 px. This causes the containing<li class="toctree-l#">
to grow in height by 2 px.Example:
Effect
Every time an item is clicked in the toctree, the item itself and the items below will change vertical position slightly.
Cause
_theme_layout.sass:81-82:
My guess is that these styles were intended only to apply to the first
li.current > a
(since the comment hints at this and there are overrides below), but onlyli.toctree-l4 > a
has settings forborder-top: none
andborder-bottom: none
Suggested fix
Add
border-top: none
andborder-bottom: none
forli.toctree-l#.current > a
(with#
1--4)OR
Set a fixed height for toctree
<li>
elementsThe text was updated successfully, but these errors were encountered: