From 5f3856ce29919f48a2d1edd2c34f20833e33cadd Mon Sep 17 00:00:00 2001 From: Andres Galante Date: Fri, 29 Dec 2017 08:18:13 -0300 Subject: [PATCH] removes hardcoded value for nav-link padding --- scss/_navbar.scss | 4 ++-- scss/_variables.scss | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scss/_navbar.scss b/scss/_navbar.scss index 6b76649a14..677a2753f6 100644 --- a/scss/_navbar.scss +++ b/scss/_navbar.scss @@ -168,8 +168,8 @@ } .nav-link { - padding-right: .5rem; - padding-left: .5rem; + padding-right: $navbar-nav-link-padding-x; + padding-left: $navbar-nav-link-padding-x; } } diff --git a/scss/_variables.scss b/scss/_variables.scss index b2af0a466f..1d4f44b96c 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -585,6 +585,8 @@ $nav-pills-link-active-bg: $component-active-bg !default; $navbar-padding-y: ($spacer / 2) !default; $navbar-padding-x: $spacer !default; +$navbar-nav-link-padding-x: .5rem !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-base * $line-height-base + $nav-link-padding-y * 2) !default;