mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-11 20:28:14 +03:00
Improving dropdown style inside collapsible navbar
This commit is contained in:
parent
6625d42cc2
commit
639ec57327
|
@ -94,7 +94,26 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dropdowns get custom display
|
// Dropdowns get custom display
|
||||||
.open .dropdown-menu {
|
.dropdown{
|
||||||
|
.dropdown-toggle{
|
||||||
|
.caret{
|
||||||
|
display:none;
|
||||||
|
}
|
||||||
|
&:after{
|
||||||
|
content: 'keyboard_arrow_right';
|
||||||
|
font-family: 'Material Icons';
|
||||||
|
font-size: 1.5em;
|
||||||
|
float:right;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.dropdown-menu{
|
||||||
|
margin-left:20px;
|
||||||
|
}
|
||||||
|
&.open{
|
||||||
|
.dropdown-toggle:after{
|
||||||
|
content: 'keyboard_arrow_down';
|
||||||
|
}
|
||||||
|
.dropdown-menu {
|
||||||
> .dropdown-header {
|
> .dropdown-header {
|
||||||
border: 0;
|
border: 0;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
|
@ -105,6 +124,7 @@
|
||||||
}
|
}
|
||||||
> li > a {
|
> li > a {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
|
font-size: inherit;
|
||||||
&:hover,
|
&:hover,
|
||||||
&:focus {
|
&:focus {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
|
@ -130,6 +150,8 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.navbar-link {
|
.navbar-link {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
|
@ -197,6 +219,11 @@
|
||||||
}
|
}
|
||||||
.dropdown-menu {
|
.dropdown-menu {
|
||||||
border-radius: @border-radius-base;
|
border-radius: @border-radius-base;
|
||||||
|
@media (max-width: @grid-float-breakpoint-max) {
|
||||||
|
.dropdown-header{
|
||||||
|
background-color: lighten(@variation-color,5%);
|
||||||
|
}
|
||||||
|
}
|
||||||
li > a {
|
li > a {
|
||||||
font-size: @mdb-dropdown-font-size;
|
font-size: @mdb-dropdown-font-size;
|
||||||
padding: 13px 16px;
|
padding: 13px 16px;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user