mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-14 13:47:11 +03:00
Merge pull request #461 from timhovius/navbar-dropdown
Fixed dropdown-menu correct colors on active, hover and focus state
This commit is contained in:
commit
eefae15eb8
|
@ -167,6 +167,22 @@
|
||||||
.navbar-form .form-control-wrapper input.form-control::placeholder, .navbar-form input.form-control::placeholder {
|
.navbar-form .form-control-wrapper input.form-control::placeholder, .navbar-form input.form-control::placeholder {
|
||||||
color: @text-color;
|
color: @text-color;
|
||||||
}
|
}
|
||||||
|
.dropdown-menu {
|
||||||
|
li > a {
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
color: @material-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.active > a {
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
color: @text-color;
|
||||||
|
}
|
||||||
|
background-color: @material-color;
|
||||||
|
color: @text-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
&-inverse {
|
&-inverse {
|
||||||
|
|
|
@ -73,13 +73,6 @@ legend {
|
||||||
.variations(~" li a:hover", color, @primary);
|
.variations(~" li a:hover", color, @primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Active state
|
|
||||||
.dropdown-menu {
|
|
||||||
.variations(~" > .active > a", background-color, @primary);
|
|
||||||
.variations(~" > .active > a:hover", background-color, @primary);
|
|
||||||
.variations(~" > .active > a:focus", background-color, @primary);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Alerts
|
// Alerts
|
||||||
@import "_alerts.less";
|
@import "_alerts.less";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user