diff options
Diffstat (limited to 'assets/stylesheets/bootstrap/_dropdown.scss')
-rw-r--r-- | assets/stylesheets/bootstrap/_dropdown.scss | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/assets/stylesheets/bootstrap/_dropdown.scss b/assets/stylesheets/bootstrap/_dropdown.scss index 2ab7536..b30f2ba 100644 --- a/assets/stylesheets/bootstrap/_dropdown.scss +++ b/assets/stylesheets/bootstrap/_dropdown.scss @@ -20,7 +20,6 @@ left: 0; z-index: $zindex-dropdown; display: none; // none by default, but block on "open" of the menu - float: left; min-width: $dropdown-min-width; padding: $dropdown-padding-y 0; margin: $dropdown-spacer 0 0; // override default ul @@ -35,6 +34,7 @@ @include box-shadow($dropdown-box-shadow); } +// scss-docs-start responsive-breakpoints @each $breakpoint in map-keys($grid-breakpoints) { @include media-breakpoint-up($breakpoint) { $infix: breakpoint-infix($breakpoint, $grid-breakpoints); @@ -50,6 +50,7 @@ } } } +// scss-docs-end responsive-breakpoints // Allow for dropdowns to go bottom up (aka, dropup-menu) // Just add .dropup after the standard .dropdown class and you're set. @@ -114,7 +115,10 @@ // Dividers (basically an `<hr>`) within the dropdown .dropdown-divider { - @include nav-divider($dropdown-divider-bg, $dropdown-divider-margin-y, true); + height: 0; + margin: $dropdown-divider-margin-y 0; + overflow: hidden; + border-top: 1px solid $dropdown-divider-bg; } // Links, buttons, and more within the dropdown menu @@ -145,9 +149,10 @@ } } - @include hover-focus() { + &:hover, + &:focus { color: $dropdown-link-hover-color; - text-decoration: none; + text-decoration: if($link-hover-decoration == underline, none, null); @include gradient-bg($dropdown-link-hover-bg); } @@ -164,9 +169,7 @@ pointer-events: none; background-color: transparent; // Remove CSS gradients if they're enabled - @if $enable-gradients { - background-image: none; - } + background-image: if($enable-gradients, none, null); } } |