0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00

Some .navbar .dropdown-menu optimisation (#22776)

This commit is contained in:
Catalin Zalog 2017-06-08 22:57:47 +03:00 committed by Mark Otto
parent af93db294b
commit f640ec9662
2 changed files with 0 additions and 27 deletions

View File

@ -251,21 +251,6 @@ const Dropdown = (($) => {
return $(this._element).closest('.navbar').length > 0
}
_navbarPositioning() {
const $parentNavbar = $(this._element).closest('.navbar')
if ($(this._menu).hasClass(ClassName.MENURIGHT)) {
if (!$parentNavbar.hasClass('navbar-expand')) {
return {
position: 'static',
transform: '',
float: 'none'
}
}
}
return {}
}
_getPopperConfig() {
const popperConfig = {
placement : this._getPlacement(),

View File

@ -141,13 +141,6 @@
&#{$infix} {
@include media-breakpoint-down($breakpoint) {
.navbar-nav {
.dropdown-menu {
position: static;
float: none;
}
}
> .container,
> .container-fluid {
padding-right: 0;
@ -172,11 +165,6 @@
left: auto; // Reset the default from `.dropdown-menu`
}
.dropdown-menu-left {
right: auto;
left: 0;
}
.nav-link {
padding-right: .5rem;
padding-left: .5rem;