Allow to customize navbar-brand font-size

This commit is contained in:
Pierre-Denis Vanduynslager 2017-01-14 01:59:20 -05:00 committed by Mark Otto
parent a03aaf39df
commit 17cb5bb674
2 changed files with 3 additions and 2 deletions

View File

@ -49,7 +49,7 @@
padding-top: $navbar-brand-padding-y;
padding-bottom: $navbar-brand-padding-y;
margin-right: $navbar-padding-x;
font-size: $font-size-lg;
font-size: $navbar-brand-font-size;
line-height: inherit;
white-space: nowrap;

View File

@ -601,8 +601,9 @@ $nav-pills-active-link-bg: $component-active-bg !default;
$navbar-padding-x: $spacer !default;
$navbar-padding-y: ($spacer / 2) !default;
$navbar-brand-font-size: $font-size-lg !default;
// Compute the navbar-brand padding-y so the navbar-brand will have the same height as navbar-text and nav-link
$nav-link-height: $font-size-lg * $line-height-base !default;
$nav-link-height: $navbar-brand-font-size * $line-height-base !default;
$navbar-brand-height: ($font-size-base * $line-height-base + $nav-link-padding-y * 2) !default;
$navbar-brand-padding-y: ($navbar-brand-height - $nav-link-height) / 2 !default;