From 705ff19890a6d9290f75370d3619930e8381fc94 Mon Sep 17 00:00:00 2001 From: Wonderfall Date: Mon, 25 Jul 2022 17:49:52 +0200 Subject: [PATCH] add close button for menu --- assets/css/common/header.css | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/assets/css/common/header.css b/assets/css/common/header.css index 5d7420b2..61053f8d 100644 --- a/assets/css/common/header.css +++ b/assets/css/common/header.css @@ -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; }