From 6d5e681745139791e8f1b380a9aa14d417ab7970 Mon Sep 17 00:00:00 2001 From: Hendrik Kleinwaechter Date: Thu, 27 Jul 2023 13:44:00 +0200 Subject: [PATCH] Fix desktop/mobile issues --- book/style.css | 17 ++++++++++++----- website/assets/close.svg | 4 ++++ website/modify_build.rb | 2 +- 3 files changed, 17 insertions(+), 6 deletions(-) create mode 100644 website/assets/close.svg diff --git a/book/style.css b/book/style.css index cde13d6..d4c8878 100644 --- a/book/style.css +++ b/book/style.css @@ -216,13 +216,13 @@ figcaption.caption { text-decoration: none; } - @media (max-width: 768px) { .toggle-menu-label { display: block; padding: 10px; cursor: pointer; } + .hamb{ cursor: pointer; padding: 5px; @@ -230,19 +230,22 @@ figcaption.caption { align-items: center; align-content: center; justify-content: center; -} } .hamb-line { display: block; - position: relative; transition: all .2s ease-out; filter: brightness(0) invert(1); + background: url("menu.svg") no-repeat center center; + background-size: contain; + width: 30px; + height: 30px; + font-size: 0px; } span.hamb-line:hover { - background-color: #000 !important; - filter: brightness(0) invert(0.95); + background-color: transparent !important; + font-size: 0px; } .menu-items { @@ -267,6 +270,10 @@ figcaption.caption { #toggle-menu:checked ~ .menu-items { display: block; } + #toggle-menu:checked ~ .toggle-menu-label span { + background-image: url("close.svg"); + background-color: transparent !important; + } .logo { display: block; diff --git a/website/assets/close.svg b/website/assets/close.svg new file mode 100644 index 0000000..7f35e1d --- /dev/null +++ b/website/assets/close.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/website/modify_build.rb b/website/modify_build.rb index deb9422..abe30b2 100644 --- a/website/modify_build.rb +++ b/website/modify_build.rb @@ -189,7 +189,7 @@ class ModifyBuild 🍞 The Sourdough Framework - + } end