From 906e52665aef85fcb5e7b6f7ca1c0b89decfd5b3 Mon Sep 17 00:00:00 2001 From: Tanishq Dubey Date: Sun, 20 Oct 2024 17:03:51 -0400 Subject: [PATCH] hamburgesa menu for small devices --- templates/index.html | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/templates/index.html b/templates/index.html index 4b6c744..6543019 100644 --- a/templates/index.html +++ b/templates/index.html @@ -126,7 +126,12 @@ text-decoration: none; color: {{ accent_color }}; } - + .nav-toggle { + display: none; + cursor: pointer; + font-size: 1.5rem; + text-align: right; + } @media (max-width: 768px) { @@ -155,13 +160,23 @@ height: auto; position: static; padding: 10px; - } + } + .sidebar-nav ul { + display: none; + } + .nav-toggle { + display: block; + } + .sidebar-nav.active ul { + display: block; + } }