diff --git a/.gitignore b/.gitignore index 96b2a3c..0331789 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ __pycache__/ .env.* !.env.example !.env.test -.venv/ \ No newline at end of file +.venv/ +.DS_Store diff --git a/rocky-interface/src/lib/components/Topbar.svelte b/rocky-interface/src/lib/components/Topbar.svelte index 1d39474..62cbc13 100644 --- a/rocky-interface/src/lib/components/Topbar.svelte +++ b/rocky-interface/src/lib/components/Topbar.svelte @@ -6,13 +6,18 @@ let { user = null }: { user: User | null } = $props(); let showAdministration = $derived(Boolean(user?.isAdmin)); + const isHamburgerDay = Math.random() < 0.05; // x% chance to show the hamburger icon
diff --git a/rocky-interface/src/lib/styles/components/components.css b/rocky-interface/src/lib/styles/components/components.css index 9c0ffc2..47a8f11 100644 --- a/rocky-interface/src/lib/styles/components/components.css +++ b/rocky-interface/src/lib/styles/components/components.css @@ -112,6 +112,11 @@ flex: 1; } +@media (max-width: 768px) { + .spacer { + flex: 0; + } +} /* Overlay for mobile sidebar */ @media (max-width: 768px) { .sidebar { @@ -248,6 +253,29 @@ color: var(--color-text-secondary); } +/* Mobile View for Courses Sidebar */ +@media (max-width: 768px) { + .course-popout { + position: static; + width: 100%; + height: auto; + max-height: 400px; + border-radius: 0; + border-left: none; + border-right: none; + box-shadow: none; + border-top: 1px solid var(--color-gray-200); + border-bottom: 1px solid var(--color-gray-200); + overflow-y: auto; + } +} + +@media (max-width: 768px) { + .course-popout-header { + display: none; + } +} + /* ========== WIDGET PANEL ========== */ .widget-panel { width: var(--size-widget-panel-width); @@ -265,10 +293,7 @@ @media (max-width: 768px) { .widget-panel { - width: 100%; - min-width: 0; - height: auto; - border-top: 1px solid var(--color-gray-300); + display:none; } } diff --git a/rocky-interface/static/hamburger.svg b/rocky-interface/static/hamburger.svg new file mode 100644 index 0000000..9ec4c50 --- /dev/null +++ b/rocky-interface/static/hamburger.svg @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file