From d9949cb9543f4269896fa505af3a4ce9782a11de Mon Sep 17 00:00:00 2001 From: Gregory Trolliet Date: Sat, 13 Mar 2021 11:40:24 +0100 Subject: [PATCH] [THEME] Make hamburger button size relative --- static/css/style.css | 11 ++++++----- static/svg/bars.svg | 4 +++- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/static/css/style.css b/static/css/style.css index bfe3b02..649b969 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -115,7 +115,7 @@ a:focus { } @media only screen and (min-width: 1000px) { #navigation .navigation-container { - max-width: 900px; + max-width: var(--content-width); } } #navigation-title { @@ -131,7 +131,7 @@ a:focus { } #navigation .menu-button { float: right; - position:relative; + position: relative; display: none; width: 4em; height: 4em; @@ -147,11 +147,12 @@ a:focus { #navigation .menu-button .menu-button-image { display: inline-block; position: relative; - height: 20px; - width: 24px; - top: 14px; + height: 1.5em; + width: 1.5em; + top: 0.75em; background-image: url(../svg/bars.svg); background-size: contain; + background-repeat: no-repeat; margin: auto; vertical-align: top; } diff --git a/static/svg/bars.svg b/static/svg/bars.svg index 7c4e587..a4b7e8d 100644 --- a/static/svg/bars.svg +++ b/static/svg/bars.svg @@ -1 +1,3 @@ - \ No newline at end of file + + +