Dropdown add shadow
This commit is contained in:
parent
08fdb662a6
commit
ca92c36bad
|
@ -1,5 +1,6 @@
|
||||||
:root {
|
:root {
|
||||||
--dropdown-background: var(--light-color);
|
--dropdown-background: var(--light-color);
|
||||||
|
--dropdown-shadow: var(--shadow-main);
|
||||||
--dropdown-color: var(--grey-color);
|
--dropdown-color: var(--grey-color);
|
||||||
--dropdown-background-hover: var(--light-blue);
|
--dropdown-background-hover: var(--light-blue);
|
||||||
--dropdown-font-size: 14px;
|
--dropdown-font-size: 14px;
|
||||||
|
@ -8,6 +9,7 @@
|
||||||
|
|
||||||
.uk-navbar-dropdown, .uk-dropdown {
|
.uk-navbar-dropdown, .uk-dropdown {
|
||||||
background: var(--dropdown-background);
|
background: var(--dropdown-background);
|
||||||
|
box-shadow: var(--dropdown-shadow);
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
padding: 5px 0;
|
padding: 5px 0;
|
||||||
}
|
}
|
||||||
|
@ -15,9 +17,14 @@
|
||||||
.uk-navbar-dropdown-nav > li > a, .uk-dropdown-nav > li > a {
|
.uk-navbar-dropdown-nav > li > a, .uk-dropdown-nav > li > a {
|
||||||
padding: 5px 30px;
|
padding: 5px 30px;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
color: var(--dropdown-color);
|
color: var(--dropdown-color) !important;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
|
display: inherit;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
max-width: 100%;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.uk-navbar-dropdown-nav > li:hover > a, .uk-dropdown-nav > li:hover > a,
|
.uk-navbar-dropdown-nav > li:hover > a, .uk-dropdown-nav > li:hover > a,
|
||||||
|
@ -25,6 +32,10 @@
|
||||||
background: var(--dropdown-background-hover);
|
background: var(--dropdown-background-hover);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.uk-navbar-dropdown-nav > li.uk-active > a, .uk-dropdown-nav > li.uk-active > a {
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
.uk-nav > .uk-nav-divider {
|
.uk-nav > .uk-nav-divider {
|
||||||
margin: 5px 0;
|
margin: 5px 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue