From 89729b72ea178e2380ff75652399b8221e8ceaa8 Mon Sep 17 00:00:00 2001 From: abiyasa05 Date: Thu, 29 May 2025 12:17:08 +0700 Subject: [PATCH] add responsive sidebar for manage question on role teacher --- .../teacher/questions/index.blade.php | 67 ++++++++++++++----- 1 file changed, 50 insertions(+), 17 deletions(-) diff --git a/Penilaian Literasi/iClOP-V2/resources/views/literacy/teacher/questions/index.blade.php b/Penilaian Literasi/iClOP-V2/resources/views/literacy/teacher/questions/index.blade.php index 5d4fabe..221c855 100644 --- a/Penilaian Literasi/iClOP-V2/resources/views/literacy/teacher/questions/index.blade.php +++ b/Penilaian Literasi/iClOP-V2/resources/views/literacy/teacher/questions/index.blade.php @@ -18,6 +18,32 @@ padding: 20px; } + @media (max-width: 768px) { + #sidebarMenu { + position: fixed; + top: 0; + left: 0; + width: 245px; + height: 100vh; + background-color: #fff; + z-index: 1040; + transform: translateX(-100%); + transition: transform 0.3s ease-in-out; + display: block !important; + box-shadow: 2px 0 5px rgba(0,0,0,0.1); + overflow-y: auto; + padding-top: 60px; + } + + #sidebarMenu.active { + transform: translateX(0); + } + + #toggleSidebar { + position: relative; + z-index: 1051; + } + } /* NAV LINK */ .nav-link { @@ -186,40 +212,40 @@ - @@ -228,7 +254,7 @@
-
+ +