Fix dropdown menu location (mobile menu).
This commit is contained in:
parent
b300fe1b7b
commit
9c3547f712
|
@ -50,6 +50,7 @@
|
|||
}
|
||||
#menu-mobile {
|
||||
display: inherit;
|
||||
width: 10em;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -59,11 +60,13 @@
|
|||
max-width: 100%;
|
||||
height: 100%;
|
||||
align-items: center;
|
||||
|
||||
}
|
||||
|
||||
#menu div div {
|
||||
#menu div#menu-desktop div {
|
||||
padding-left: 2em;
|
||||
padding-right: 2em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#menu-desktop div:hover {
|
||||
|
@ -75,13 +78,23 @@
|
|||
|
||||
#menu-mobile-dropdown-content {
|
||||
display: none;
|
||||
z-index: 1;
|
||||
z-index: 2;
|
||||
position: absolute;
|
||||
min-width: 160px;
|
||||
top: $header_height + 0.3em;
|
||||
padding-left: 2em;
|
||||
|
||||
}
|
||||
|
||||
#menu-mobile-dropdown-content div {
|
||||
padding: 12px 16px;
|
||||
color: #F2F1E8;
|
||||
border: solid 1px;
|
||||
text-align: center;
|
||||
padding: 0.3em;
|
||||
|
||||
}
|
||||
|
||||
#menu-mobile-dropdown-button{
|
||||
padding: 10px;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
|
|
|
@ -40,7 +40,6 @@ export class HeaderComponent implements OnInit {
|
|||
toggleMobileDropdown(): void {
|
||||
const dropdownContentStyle = document.getElementById('menu-mobile-dropdown-content')!.style;
|
||||
if (dropdownContentStyle.display == 'block') {
|
||||
//FIXME: Currently doesn't work because content overlaps button
|
||||
dropdownContentStyle.display = 'none';
|
||||
} else {
|
||||
dropdownContentStyle.display = 'block';
|
||||
|
|
Loading…
Reference in New Issue
Block a user