add close button for menu

This commit is contained in:
Wonderfall 2022-07-25 17:49:52 +02:00
parent 41f827f1d5
commit 705ff19890

View File

@ -91,6 +91,18 @@ body:not(.dark) #sun {
display: inline;
}
#hamburger-input:checked ~ #hamburger-menu {
background: none;
}
#hamburger-input:checked ~ #hamburger-menu:after {
content: "\00d7";
position: absolute;
font-size: 28px;
line-height: 0;
top: 28px;
}
#hamburger-input:checked ~ .overlay {
visibility: visible;
}