Jeremy Thomas 8 years ago
parent
commit
5bbc4c8037
2 changed files with 3 additions and 1 deletions
  1. 1 0
      CHANGELOG.md
  2. 2 1
      sass/components/navbar.sass

+ 1 - 0
CHANGELOG.md

@@ -10,6 +10,7 @@
 
 ### Issues closed
 
+* #1020 Customizing `.navbar-item img` max height
 * #998 `.navbar-dropdown` with **right** alignment
 * #877 `.pagination` isn't using `$pagination-background`
 * #989 `navbar-brand` overflowing on mobile

+ 2 - 1
sass/components/navbar.sass

@@ -6,6 +6,7 @@ $navbar-item-hover-color: $black !default
 $navbar-item-hover-background-color: $background !default
 $navbar-item-active-color: $black !default
 $navbar-item-active-background-color: transparent !default
+$navbar-item-img-max-height: 1.75rem !default
 
 $navbar-tab-hover-background-color: transparent !default
 $navbar-tab-hover-border-bottom-color: $primary !default
@@ -80,7 +81,7 @@ a.navbar-item,
   flex-grow: 0
   flex-shrink: 0
   img
-    max-height: 1.75rem
+    max-height: $navbar-item-img-max-height
   &.has-dropdown
     padding: 0
   &.is-tab