diff options
| author | Johann-S <[email protected]> | 2017-06-04 17:56:51 +0200 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2017-06-17 13:12:39 -0700 |
| commit | af93db294b8670dabefbe481603a74e02c84dc0a (patch) | |
| tree | 90987afc8e80b0eddd4c8c4b9443c2b2b7d5e522 /scss | |
| parent | ce98a1da5bd8f50153c9924c34fd465f87814117 (diff) | |
| download | bootstrap-af93db294b8670dabefbe481603a74e02c84dc0a.tar.xz bootstrap-af93db294b8670dabefbe481603a74e02c84dc0a.zip | |
Reset Popper.js styles for Dropdowns in navbar
Diffstat (limited to 'scss')
| -rw-r--r-- | scss/_navbar.scss | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/scss/_navbar.scss b/scss/_navbar.scss index 59cc52d9a..1803a82b4 100644 --- a/scss/_navbar.scss +++ b/scss/_navbar.scss @@ -77,9 +77,8 @@ } .dropdown-menu { - position: static !important; + position: static; float: none; - transform: unset !important; } } @@ -142,6 +141,13 @@ &#{$infix} { @include media-breakpoint-down($breakpoint) { + .navbar-nav { + .dropdown-menu { + position: static; + float: none; + } + } + > .container, > .container-fluid { padding-right: 0; @@ -158,8 +164,17 @@ flex-direction: row; .dropdown-menu { - position: absolute !important; - top: 100% !important; + position: absolute; + } + + .dropdown-menu-right { + right: 0; + left: auto; // Reset the default from `.dropdown-menu` + } + + .dropdown-menu-left { + right: auto; + left: 0; } .nav-link { |
