From: Mark Otto Date: Thu, 29 Dec 2016 00:48:50 +0000 (-0800) Subject: bring over styles from .nav for .navbar-nav X-Git-Tag: v4.0.0-alpha.6~93 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8f63d6442bce0eca623dbdc76113ce51972db04;p=thirdparty%2Fbootstrap.git bring over styles from .nav for .navbar-nav since we're no longer using the .nav as a base class, we need to bring over some base styles for redoing browser list styles and setting flex in motion. also brings with it some .nav-link styling. we're still using this global class, but with this small modification for alignment of content in responsive modes. --- diff --git a/scss/_navbar.scss b/scss/_navbar.scss index 6b2a03bb17..afa3e352b9 100644 --- a/scss/_navbar.scss +++ b/scss/_navbar.scss @@ -128,11 +128,15 @@ // Custom navbar navigation built on the base `.nav` styles. .navbar-nav { + display: flex; + flex-direction: column; // cannot use `inherit` to get the `.navbar`s value + padding-left: 0; + margin-bottom: 0; + list-style: none; .nav-link { - display: block; - padding-top: .425rem; - padding-bottom: .425rem; + padding-left: 0; + padding-right: 0; } }