diff options
author | Catalin Zalog <c@zalog.ro> | 2017-04-08 18:10:20 +0300 |
---|---|---|
committer | Mark Otto <markd.otto@gmail.com> | 2017-04-08 22:36:28 +0300 |
commit | 8423e5c3e6ded8094d22581503812f4d507be24e (patch) | |
tree | 8c34a3dc63c0ede860565a32757a93962d48e4b8 /scss | |
parent | 2436ad589cfc235c84160fe14e4cc4ec97a9c5ca (diff) |
css: .navbar-expand .dropdown position
Set/reset `.dropdown` position when `.navbar-expand`.
Demo: http://jsbin.com/pojecuh
Diffstat (limited to 'scss')
-rw-r--r-- | scss/_navbar.scss | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scss/_navbar.scss b/scss/_navbar.scss index daef7ba7a7..1133776aa3 100644 --- a/scss/_navbar.scss +++ b/scss/_navbar.scss @@ -31,7 +31,7 @@ justify-content: space-between; @include media-breakpoint-down(nth(map-keys($grid-breakpoints), 1)) { - width: 100%; // prevent flex parent container(-fluid) from collapsing + width: 100%; // prevent flex parent container from collapsing margin-right: 0; margin-left: 0; } @@ -159,6 +159,10 @@ .navbar-nav { flex-direction: row; + .dropdown-menu { + position: absolute; + } + .nav-link { padding-right: .5rem; padding-left: .5rem; |