diff options
| author | Pierre-Denis Vanduynslager <[email protected]> | 2017-01-14 01:59:20 -0500 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2017-03-23 23:02:28 -0700 |
| commit | 17cb5bb674fd2f6c47619726aeea29437bcd6a0a (patch) | |
| tree | fba56ef1f663d1f9db83a63bde243c5385a2febb | |
| parent | a03aaf39df876691e4ba6acb0b40e9790e4c7127 (diff) | |
| download | bootstrap-17cb5bb674fd2f6c47619726aeea29437bcd6a0a.tar.xz bootstrap-17cb5bb674fd2f6c47619726aeea29437bcd6a0a.zip | |
Allow to customize navbar-brand font-size
| -rw-r--r-- | scss/_navbar.scss | 2 | ||||
| -rw-r--r-- | scss/_variables.scss | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/scss/_navbar.scss b/scss/_navbar.scss index 9a50b4e9a..2c5cbe2ee 100644 --- a/scss/_navbar.scss +++ b/scss/_navbar.scss @@ -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; diff --git a/scss/_variables.scss b/scss/_variables.scss index b0c8859a5..0fa4f334b 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -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; |
