From 81929bb0167ba14190f0856f028425d46e2abacb Mon Sep 17 00:00:00 2001 From: Fornax Date: Mon, 5 Dec 2022 15:01:04 +0100 Subject: [PATCH] Styling fixes --- res/static/style/layout.css | 14 ++- res/template/fragments/page_wrap.html | 18 ++-- svelte/src/file_viewer/FilePicker.svelte | 4 +- svelte/src/file_viewer/FileViewer.svelte | 2 +- svelte/src/file_viewer/ListNavigator.svelte | 6 +- svelte/src/layout/Footer.svelte | 6 +- .../user_file_manager/DirectoryElement.svelte | 4 +- svelte/src/util/Modal.svelte | 2 +- webcontroller/style.go | 94 +++++++++---------- 9 files changed, 73 insertions(+), 77 deletions(-) diff --git a/res/static/style/layout.css b/res/static/style/layout.css index 97702ac..99593fe 100644 --- a/res/static/style/layout.css +++ b/res/static/style/layout.css @@ -98,6 +98,10 @@ footer>.footer_content { background-color: var(--body_background); color: var(--body_text_color); display: inline-block; + width: 1000px; + max-width: 100%; + padding-top: 10px; + padding-bottom: 10px; border-radius: 8px; margin: 120px 0 60px 0; } @@ -155,8 +159,8 @@ footer>.footer_content { .page_content { background: var(--body_background); - border-top-left-radius: 12px; - border-bottom-left-radius: 12px; + border-top-left-radius: 8px; + border-bottom-left-radius: 8px; transition: border-top-left-radius 1s, border-bottom-left-radius 1s; } @@ -643,9 +647,9 @@ input[type=file] { /* Webkit Scrollbars */ ::-webkit-scrollbar { - width: 18px; + width: 16px; /* for vertical scrollbars */ - height: 18px; + height: 16px; /* for horizontal scrollbars */ } @@ -656,7 +660,7 @@ input[type=file] { ::-webkit-scrollbar-thumb { background-color: var(--scrollbar_foreground_color); border-radius: 10px; - border: 5px solid var(--body_color); + border: 4px solid var(--body_color); height: 40px; width: 40px; } diff --git a/res/template/fragments/page_wrap.html b/res/template/fragments/page_wrap.html index 553610d..bfc7f48 100644 --- a/res/template/fragments/page_wrap.html +++ b/res/template/fragments/page_wrap.html @@ -34,14 +34,18 @@ function toggleMenu() { // Menu is visible, hide it nav.style.left = -nav.offsetWidth + "px"; body.style.marginLeft = "0"; - content.style.borderTopLeftRadius = "0" - content.style.borderBottomLeftRadius = "0" + if (content) { + content.style.borderTopLeftRadius = "0" + content.style.borderBottomLeftRadius = "0" + } } else { // Menu is hidden, show it nav.style.left = "0"; body.style.marginLeft = nav.offsetWidth + "px"; - content.style.borderTopLeftRadius = "12px" - content.style.borderBottomLeftRadius = "12px" + if (content) { + content.style.borderTopLeftRadius = "8px" + content.style.borderBottomLeftRadius = "8px" + } } } function resetMenu() { @@ -54,17 +58,15 @@ function resetMenu() { {{define "footer"}}