From 61f7045f701b77b7c4a7be0634511a3ac75fe3ba Mon Sep 17 00:00:00 2001 From: Jonas_Jones <91549607+J-onasJones@users.noreply.github.com> Date: Mon, 2 Oct 2023 18:54:22 +0200 Subject: [PATCH 01/13] Fixed Header overflow in mobile biew --- src/lib/components/Header.svelte | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lib/components/Header.svelte b/src/lib/components/Header.svelte index 75984f4..6245b5c 100644 --- a/src/lib/components/Header.svelte +++ b/src/lib/components/Header.svelte @@ -61,4 +61,11 @@ float: left; clear: both; } + + +@media screen and (max-width: 550px) { + header h1 { + font-size: 20px; + } +} From 5a5f6d3e376484fe43910aa1460b42cbea628f54 Mon Sep 17 00:00:00 2001 From: Jonas_Jones <91549607+J-onasJones@users.noreply.github.com> Date: Mon, 2 Oct 2023 18:54:48 +0200 Subject: [PATCH 02/13] Offloaded Navbar listbuilder to new component --- src/lib/components/Navbar.svelte | 74 ++------------------------------ 1 file changed, 4 insertions(+), 70 deletions(-) diff --git a/src/lib/components/Navbar.svelte b/src/lib/components/Navbar.svelte index 36ea4b3..4d05883 100644 --- a/src/lib/components/Navbar.svelte +++ b/src/lib/components/Navbar.svelte @@ -1,80 +1,14 @@ From 5108c42eb2d44213233c7f65991a380d010183a2 Mon Sep 17 00:00:00 2001 From: Jonas_Jones <91549607+J-onasJones@users.noreply.github.com> Date: Mon, 2 Oct 2023 18:55:07 +0200 Subject: [PATCH 03/13] Added new Component for Navbar Listbuilder --- src/lib/components/NavbarList.svelte | 73 ++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 src/lib/components/NavbarList.svelte diff --git a/src/lib/components/NavbarList.svelte b/src/lib/components/NavbarList.svelte new file mode 100644 index 0000000..89726f1 --- /dev/null +++ b/src/lib/components/NavbarList.svelte @@ -0,0 +1,73 @@ + + +{@html renderedList} \ No newline at end of file From 232d9421c66d3c47176b220bf3392e3fed6f55c0 Mon Sep 17 00:00:00 2001 From: Jonas_Jones <91549607+J-onasJones@users.noreply.github.com> Date: Mon, 2 Oct 2023 18:56:22 +0200 Subject: [PATCH 04/13] Fixed mobile view proposal --- src/lib/styles/style.css | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/lib/styles/style.css b/src/lib/styles/style.css index 3973525..83ceebe 100644 --- a/src/lib/styles/style.css +++ b/src/lib/styles/style.css @@ -73,7 +73,7 @@ main { .navbar { float: left; padding: 2rem; - min-width: 300px; + min-width: 200px; margin-right: 2rem; font-size: 1.2rem; } @@ -124,4 +124,21 @@ details { details a { padding-left: 0.5rem; -} \ No newline at end of file +} + +.content { + margin-left: 0; + overflow: scroll; + white-space: initial; +} + +@media screen and (max-width: 900px) { + .container { + flex-direction: column; + } + + .content { + margin-left: 32px; + margin-top: 0; + } +} From 45e2657cd1638cbadb5b335f18f6dd959c8abcf4 Mon Sep 17 00:00:00 2001 From: Jonas_Jones <91549607+J-onasJones@users.noreply.github.com> Date: Mon, 2 Oct 2023 18:56:34 +0200 Subject: [PATCH 05/13] Removed garbage code --- src/routes/+layout.svelte | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 5400519..8f4c01c 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -2,23 +2,16 @@ import Header from "$lib/components/Header.svelte"; import Footer from "$lib/components/Footer.svelte"; import Navbar from "$lib/components/Navbar.svelte"; +
-
+
- -

- YOU CANT SEE THIS YOU CANT SEE THIS YOU CANT SEE THIS YOU CANT - SEE THIS -

From 1799f16ac5fe450419ce2571a6ade4edc3854229 Mon Sep 17 00:00:00 2001 From: Jonas_Jones <91549607+J-onasJones@users.noreply.github.com> Date: Mon, 2 Oct 2023 19:09:46 +0200 Subject: [PATCH 06/13] Added extra small screen layout --- src/lib/components/Footer.svelte | 9 ++++++++- src/lib/components/Header.svelte | 7 ++++++- src/lib/styles/style.css | 8 ++++++++ src/routes/+layout.svelte | 2 -- 4 files changed, 22 insertions(+), 4 deletions(-) diff --git a/src/lib/components/Footer.svelte b/src/lib/components/Footer.svelte index de87062..8bfaa5f 100644 --- a/src/lib/components/Footer.svelte +++ b/src/lib/components/Footer.svelte @@ -27,7 +27,7 @@ footer { padding: 1rem; margin: 2rem; - margin-bottom: 0; + margin-bottom: 2rem; margin-top: 0; background: var(--container-background-color); display: flex; @@ -54,4 +54,11 @@ align-items: center; font-size: 20px; } + + @media (max-width: 550px) { + footer { + margin: 0; + border-radius: 0; + } + } diff --git a/src/lib/components/Header.svelte b/src/lib/components/Header.svelte index 6245b5c..77b2af9 100644 --- a/src/lib/components/Header.svelte +++ b/src/lib/components/Header.svelte @@ -19,7 +19,7 @@ header { padding: 1rem; margin: 2rem; - margin-top: 0; + margin-top: 2rem; margin-bottom: 0; background: rgb(0, 255, 0); display: flex; @@ -67,5 +67,10 @@ header h1 { font-size: 20px; } + + header { + margin: 0; + border-radius: 0; + } } diff --git a/src/lib/styles/style.css b/src/lib/styles/style.css index 83ceebe..f970c5a 100644 --- a/src/lib/styles/style.css +++ b/src/lib/styles/style.css @@ -142,3 +142,11 @@ details a { margin-top: 0; } } + +@media screen and (max-width: 550px) { + .column { + margin: 0; + margin-bottom: 1rem; + border-radius: 0; + } +} diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 8f4c01c..f47681f 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -5,7 +5,6 @@ -
@@ -17,4 +16,3 @@