Make all dropdown menus auto drop on hover.
This commit is contained in:
25
scss/bootstrap/_dropdown.scss
Normal file
25
scss/bootstrap/_dropdown.scss
Normal file
@@ -0,0 +1,25 @@
|
||||
// Make dropdown menus auto drop
|
||||
@include media-breakpoint-up(md) {
|
||||
.dropdown {
|
||||
.dropdown-menu {
|
||||
display: block;
|
||||
opacity: 0;
|
||||
transition: all .15s linear;
|
||||
pointer-events: none; // Prevent auto show when mouse is below top menu item
|
||||
min-width: 190px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.dropdown-menu {
|
||||
display: block;
|
||||
opacity: 1;
|
||||
pointer-events: auto; // Prevent auto hide when mouse is in dropdown menu
|
||||
}
|
||||
}
|
||||
|
||||
.dropdown-menu-end {
|
||||
right: 0;
|
||||
left: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user