Skip to content

Commit 4ad33d0

Browse files
authored
Nav: Fix right padding on level2+ (#1068)
The sets the right padding the same as the first level. The current padding is too large and varies between toc levels. Now, the right padding is the same between all levels and only the left padding changes
1 parent e001cca commit 4ad33d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sass/_theme_layout.sass

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ html
133133
li.toctree-l#{$toc_level + 1} > a
134134
@extend %display_current_toctree_element
135135
padding: $gutter / 4 $gutter * ($toc_level + .5)
136+
padding-right: $gutter
136137
a:hover span.toctree-expand
137138
@extend %toctree_hover_link_color
138139
@if $toc_level > 2 and $toc_level < 5

0 commit comments

Comments
 (0)