Skip to content

Commit

Permalink
Fix Nav Buttons Size
Browse files Browse the repository at this point in the history
Currently Nav buttons to expand the menu are a bit small and do not match the link text. This makes the buttons match the size of the link text and deduplicates some of the style rules.
  • Loading branch information
Blendify committed Mar 3, 2021
1 parent 8ba9c8a commit 4b324a9
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions src/sass/_theme_layout.sass
Expand Up @@ -27,6 +27,12 @@ html
line-height: $base-font-size * 2
padding: 0 $base-font-size

%menu-vertical-btn
@extend .fa
@extend .fa-plus-square-o
display: block
line-height: 18px

.wy-menu-vertical
width: $nav-desktop-width

Expand Down Expand Up @@ -65,13 +71,9 @@ html
padding-right: 0
// Expand links
span.toctree-expand
display: block
@extend %menu-vertical-btn
float: left
margin-left: -1.2em
@extend .fa
@extend .fa-plus-square-o
font-size: .8em
line-height: 1.6em
color: darken($menu-link-medium, 20%)

// On state for the first level
Expand All @@ -89,11 +91,6 @@ html
span.toctree-expand
color: $menu-link-medium
span.toctree-expand
@extend .fa
@extend .fa-minus-square-o
display: block
font-size: .8em
line-height: 1.6em
color: darken($menu-link-medium, 30%)

li.toctree-l1.current > a
Expand Down

0 comments on commit 4b324a9

Please sign in to comment.