From 2f6d377f7b37d8ea5d4fcd24b99840d4b15d935a Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Thu, 22 Jan 2026 00:35:51 -0500 Subject: [PATCH] up --- assets/css/styles.css | 47 +++++++++++++++++++++++++++++++++++++ index.php | 54 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+) diff --git a/assets/css/styles.css b/assets/css/styles.css index c93a9f0..29542f4 100644 --- a/assets/css/styles.css +++ b/assets/css/styles.css @@ -140,6 +140,53 @@ body { transition: margin-left 0.3s ease; } +/* Responsive behavior: collapse sidebar on small screens */ +@media (max-width: 991.98px) { + .sidebar { + transform: translateX(-100%); + width: 220px; + left: 0; + transition: transform 0.25s ease; + box-shadow: none; + } + + .sidebar.open { + transform: translateX(0); + box-shadow: 2px 0 20px rgba(0,0,0,0.2); + z-index: 1200; + } + + .main-content { + margin-left: 0; + } + + /* Overlay used to block background when sidebar open */ + .sidebar-overlay { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: rgba(0,0,0,0.35); + z-index: 1100; + display: none; + } + + /* Make header actions wrap to avoid overflow */ + .content-header { + flex-wrap: wrap; + gap: 8px; + } + + .header-actions { + margin-top: 8px; + } +} + +/* Desktop: ensure sidebar visible */ +@media (min-width: 992px) { + .sidebar { transform: translateX(0); } +} .content-header { background: white; padding: 20px 30px; diff --git a/index.php b/index.php index 9291249..67d9fd3 100644 --- a/index.php +++ b/index.php @@ -84,6 +84,10 @@ try {