From 6812895488555f2068991e3de3059976ce5eccc2 Mon Sep 17 00:00:00 2001 From: Rotimi Best Date: Sat, 30 Sep 2023 10:53:38 +0100 Subject: [PATCH] CLASSROOMIO-T-180: Add better darkmode sidebar background --- src/lib/components/LMS/SideBar.svelte | 2 +- src/lib/components/Org/SideBar.svelte | 2 +- src/routes/lms/exercises/+page.svelte | 125 +++++++------------------- 3 files changed, 34 insertions(+), 95 deletions(-) diff --git a/src/lib/components/LMS/SideBar.svelte b/src/lib/components/LMS/SideBar.svelte index bb71b26d..625f2c1d 100644 --- a/src/lib/components/LMS/SideBar.svelte +++ b/src/lib/components/LMS/SideBar.svelte @@ -54,7 +54,7 @@ $menu.hidden ? '-translate-x-[100%] absolute md:translate-x-0 md:relative z-40' : 'translate-x-0 absolute md:relative z-40' - } overflow-y-auto transition w-[250px] min-w-[250px] bg-gray-100 dark:bg-black h-[calc(100vh-48px)]`} + } overflow-y-auto transition w-[250px] min-w-[250px] bg-gray-100 dark:bg-neutral-900 h-[calc(100vh-48px)]`} >
diff --git a/src/lib/components/Org/SideBar.svelte b/src/lib/components/Org/SideBar.svelte index e944d781..c9aca6c8 100644 --- a/src/lib/components/Org/SideBar.svelte +++ b/src/lib/components/Org/SideBar.svelte @@ -63,7 +63,7 @@ $menu.hidden ? '-translate-x-[100%] absolute md:translate-x-0 md:relative z-40' : 'translate-x-0 absolute md:relative z-40' - } overflow-y-auto transition w-[250px] min-w-[250px] bg-gray-100 dark:bg-black h-[calc(100vh-48px)] border border-l-0 border-t-0 border-b-0 border-r-1`} + } overflow-y-auto transition w-[250px] min-w-[250px] bg-gray-100 dark:bg-neutral-900 h-[calc(100vh-48px)] border border-l-0 border-t-0 border-b-0 border-r-1`} >
diff --git a/src/routes/lms/exercises/+page.svelte b/src/routes/lms/exercises/+page.svelte index 9b59be45..3d69762f 100644 --- a/src/routes/lms/exercises/+page.svelte +++ b/src/routes/lms/exercises/+page.svelte @@ -1,11 +1,7 @@
@@ -122,77 +92,46 @@
- {#each sections as { id, title, items, className }, idx (id)} + {#each sections as { title, items, className }}

{title}

-
- {#if items.length === 0} -
- -

- drop your {title} exercises here +

{/each}