From 22e502c90c42706e43c152994d982d3b50064c4c Mon Sep 17 00:00:00 2001 From: Yasen Pramatarov Date: Sat, 3 Aug 2024 16:25:42 +0300 Subject: [PATCH] Fixes sidebar --- public_html/static/all.css | 13 +++++++++++++ public_html/templates/page-header.php | 6 +++--- public_html/templates/page-menu.php | 4 ++++ public_html/templates/page-sidebar.php | 19 +++++++------------ 4 files changed, 27 insertions(+), 15 deletions(-) diff --git a/public_html/static/all.css b/public_html/static/all.css index d3e3197..45ca37f 100644 --- a/public_html/static/all.css +++ b/public_html/static/all.css @@ -120,3 +120,16 @@ .widget { border: 1px solid gray; } + +.sidebar-wrapper { + width: 250px; /* Default width of the sidebar */ + transition: width 0.3s; /* Smooth transition for collapsing */ + overflow-x: hidden; /* Hide horizontal scrollbar */ +} +.sidebar-wrapper.collapsed { + width: 0; /* Collapsed width */ +} +.sidebar-content { + width: 250px; /* Keep content width for centering */ +} + diff --git a/public_html/templates/page-header.php b/public_html/templates/page-header.php index 0855ccd..a846733 100644 --- a/public_html/templates/page-header.php +++ b/public_html/templates/page-header.php @@ -5,9 +5,9 @@ - - - + + + Jilo Web diff --git a/public_html/templates/page-menu.php b/public_html/templates/page-menu.php index ecc3e3c..9709cc7 100644 --- a/public_html/templates/page-menu.php +++ b/public_html/templates/page-menu.php @@ -2,6 +2,10 @@