From 3108e2805d5e8b470b704818f5b99b77418ad6b5 Mon Sep 17 00:00:00 2001 From: SYwaves Date: Wed, 12 Apr 2023 13:34:21 +0700 Subject: [PATCH 1/2] close-menu optimization --- sigma.css | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/sigma.css b/sigma.css index cc28b8c1..07de09ed 100644 --- a/sigma.css +++ b/sigma.css @@ -559,6 +559,13 @@ sup { /* off-canvas */ .close-menu { display: none; + position: fixed; + width: 100%; + height: 100%; + top: 0; + left: 0; + background: rgba(0, 0, 0, 0.3) 1px 1px repeat; + z-index: -1; } /* side bar mobile query on their own */ @@ -603,28 +610,12 @@ sup { transition: left 0.5s ease-in-out 0.1s; } - #side-bar::after { - content: ''; - position: absolute; - top: 0; - width: 0; - height: 100%; - background-color: rgba(0, 0, 0, 0.2); - } - #side-bar:target { left: 0; } #side-bar:target .close-menu { display: block; - position: fixed; - width: 100%; - height: 100%; - top: 0; - left: 0; - background: rgba(0, 0, 0, 0.3) 1px 1px repeat; - z-index: -1; } } From 1045e05e7afa8a57f9b6594c3764e5e22b7d25f0 Mon Sep 17 00:00:00 2001 From: SYwaves Date: Wed, 12 Apr 2023 14:27:20 +0700 Subject: [PATCH 2/2] widen horizontal space a bit --- sigma.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sigma.css b/sigma.css index 07de09ed..cc1ca391 100644 --- a/sigma.css +++ b/sigma.css @@ -437,7 +437,7 @@ sup { position: absolute; top: 0.5rem; left: 1.5rem; - width: 14rem; + width: 13.75rem; padding: 0; border: none; display: block; @@ -621,8 +621,8 @@ sup { /* CONTENT */ #main-content { - margin: 0 1.5rem 0 18rem; - padding: 0.875rem; + margin: 0 1.5rem 0 17rem; + padding: 0.75rem; position: relative; }