0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00

removes hardcoded value for nav-link padding

This commit is contained in:
Andres Galante 2017-12-29 08:18:13 -03:00 committed by Mark Otto
parent 8c87e019a5
commit 5f3856ce29
2 changed files with 4 additions and 2 deletions

View File

@ -168,8 +168,8 @@
} }
.nav-link { .nav-link {
padding-right: .5rem; padding-right: $navbar-nav-link-padding-x;
padding-left: .5rem; padding-left: $navbar-nav-link-padding-x;
} }
} }

View File

@ -585,6 +585,8 @@ $nav-pills-link-active-bg: $component-active-bg !default;
$navbar-padding-y: ($spacer / 2) !default; $navbar-padding-y: ($spacer / 2) !default;
$navbar-padding-x: $spacer !default; $navbar-padding-x: $spacer !default;
$navbar-nav-link-padding-x: .5rem !default;
$navbar-brand-font-size: $font-size-lg !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 // 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-base * $line-height-base + $nav-link-padding-y * 2) !default; $nav-link-height: ($font-size-base * $line-height-base + $nav-link-padding-y * 2) !default;