aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2016-12-28 16:48:50 -0800
committerMark Otto <[email protected]>2016-12-28 16:48:50 -0800
commita13161ab63d7c1dcfeadbcc65d84b9a0915566f2 (patch)
tree4726fe94493e30babe01446c1d8c223031101632
parentb3dd2034a12a7dec77c9d0c186eb386a3f773a6a (diff)
downloadbootstrap-a13161ab63d7c1dcfeadbcc65d84b9a0915566f2.tar.xz
bootstrap-a13161ab63d7c1dcfeadbcc65d84b9a0915566f2.zip
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.
-rw-r--r--scss/_navbar.scss10
1 files changed, 7 insertions, 3 deletions
diff --git a/scss/_navbar.scss b/scss/_navbar.scss
index 6b2a03bb1..afa3e352b 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;
}
}