2018-08-28 15:53:47 +02:00
|
|
|
// Global, we want all menus to look like this.
|
2018-09-07 12:27:37 +02:00
|
|
|
ul.dropdown-menu
|
2018-08-28 15:53:47 +02:00
|
|
|
box-shadow: $dropdown-box-shadow
|
2018-08-31 19:32:17 +02:00
|
|
|
top: 95% // So there is less gap between the dropdown and the item.
|
2018-08-28 15:53:47 +02:00
|
|
|
|
|
|
|
> li
|
2018-09-07 12:27:37 +02:00
|
|
|
&:first-child > a
|
|
|
|
padding-top: ($dropdown-item-padding-y * 1.5)
|
|
|
|
&:last-child > a
|
|
|
|
padding-bottom: ($dropdown-item-padding-y * 1.5)
|
|
|
|
|
2018-08-28 15:53:47 +02:00
|
|
|
> a
|
2018-09-07 12:27:37 +02:00
|
|
|
padding-top: $dropdown-item-padding-y
|
|
|
|
padding-bottom: $dropdown-item-padding-y
|
|
|
|
|
|
|
|
.dropdown-divider
|
|
|
|
margin: 0
|
|
|
|
|
|
|
|
.dropdown-item:last-child
|
|
|
|
border-bottom-left-radius: $border-radius
|
|
|
|
border-bottom-right-radius: $border-radius
|
2018-08-28 15:53:47 +02:00
|
|
|
|
|
|
|
// Open dropdown on mouse hover dropdowns in the navbar.
|
|
|
|
nav .dropdown:hover
|
|
|
|
ul.dropdown-menu
|
|
|
|
display: block
|