diff options
| author | Catalin Zalog <[email protected]> | 2017-04-08 18:10:20 +0300 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2017-04-08 12:36:28 -0700 |
| commit | 8423e5c3e6ded8094d22581503812f4d507be24e (patch) | |
| tree | 8c34a3dc63c0ede860565a32757a93962d48e4b8 | |
| parent | 2436ad589cfc235c84160fe14e4cc4ec97a9c5ca (diff) | |
| download | bootstrap-8423e5c3e6ded8094d22581503812f4d507be24e.tar.xz bootstrap-8423e5c3e6ded8094d22581503812f4d507be24e.zip | |
css: .navbar-expand .dropdown position
Set/reset `.dropdown` position when `.navbar-expand`.
Demo: http://jsbin.com/pojecuh
| -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 daef7ba7a..1133776aa 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; |
