(fix) dropdown items color

pull/2096/head
Gabriel Rodriguez Alsina 6 years ago
parent e03047b309
commit 99c058d352
  1. 24
      apps/block_scout_web/assets/css/components/_dropdown.scss

@ -1,13 +1,17 @@
$dropdown-menu-item-color: #333 !default;
$dropdown-menu-item-hover-color: #fff !default;
$dropdown-menu-item-hover-background: $secondary !default;
// These styles extend the default Bootstrap styles // These styles extend the default Bootstrap styles
.dropdown-menu { .dropdown-menu {
border-bottom: 1px solid #e2e5ec;
border-left: 1px solid #e2e5ec;
border-radius: 0 0 8px 8px !important; border-radius: 0 0 8px 8px !important;
border-right: 1px solid #e2e5ec;
border: none; border: none;
box-shadow: $box-shadow; box-shadow: $box-shadow;
padding: 0; padding: 0;
width: 100%; width: 100%;
border-left: 1px solid #e2e5ec;
border-right: 1px solid #e2e5ec;
border-bottom: 1px solid #e2e5ec;
&.right { &.right {
left: auto; left: auto;
@ -27,11 +31,17 @@
} }
.dropdown-item { .dropdown-item {
color: $dropdown-menu-item-color;
font-size: 12px; font-size: 12px;
padding: 10px 20px; padding: 10px 20px;
&:hover { & {
color: #fff; &.active,
&:hover,
&:focus {
background-color: $dropdown-menu-item-hover-background;
color: $dropdown-menu-item-hover-color;
}
} }
&:first-child { &:first-child {
@ -56,10 +66,6 @@
} }
} }
&.active {
background-color: $secondary;
}
&.division { &.division {
border-top: 1px solid $base-border-color; border-top: 1px solid $base-border-color;
} }

Loading…
Cancel
Save