mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-17 19:06:40 +02:00
css: .navbar-expand .dropdown position
Set/reset `.dropdown` position when `.navbar-expand`. Demo: http://jsbin.com/pojecuh
This commit is contained in:
@@ -31,7 +31,7 @@
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
||||||
@include media-breakpoint-down(nth(map-keys($grid-breakpoints), 1)) {
|
@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-right: 0;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
@@ -159,6 +159,10 @@
|
|||||||
.navbar-nav {
|
.navbar-nav {
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
|
||||||
|
.dropdown-menu {
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
|
||||||
.nav-link {
|
.nav-link {
|
||||||
padding-right: .5rem;
|
padding-right: .5rem;
|
||||||
padding-left: .5rem;
|
padding-left: .5rem;
|
||||||
|
Reference in New Issue
Block a user