0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00

css: .navbar-expand .dropdown position

Set/reset `.dropdown` position when `.navbar-expand`.

Demo: http://jsbin.com/pojecuh
This commit is contained in:
Catalin Zalog 2017-04-08 18:10:20 +03:00 committed by Mark Otto
parent 2436ad589c
commit 8423e5c3e6

View File

@ -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;