diff --git a/res/include/script/dependencies/Modal.js b/res/include/script/dependencies/Modal.js index c7ca62a..ac6b147 100644 --- a/res/include/script/dependencies/Modal.js +++ b/res/include/script/dependencies/Modal.js @@ -23,7 +23,7 @@ function Modal(parent, closeCallback, title, width, height) { this.window.addEventListener("click", e => { e.stopPropagation() }) this.header = document.createElement("div") - this.header.classList = "modal_header highlight_1" + this.header.classList = "modal_header" this.titleDiv = document.createElement("div") this.titleDiv.classList = "modal_title" diff --git a/res/include/style/layout.css b/res/include/style/layout.css index 14b8e48..c1667b0 100644 --- a/res/include/style/layout.css +++ b/res/include/style/layout.css @@ -53,7 +53,7 @@ body{ font-size: 17px; line-height: 1.8em; color: var(--text_color); - background-color: var(--layer_2_color); + background-color: var(--layer_1_color); padding: 0; } .checkers { @@ -66,7 +66,7 @@ body{ .inset { padding-top: 70px; box-shadow: inset 1px 1px 10px 0 var(--shadow_color); - border-radius: 16px; + border-radius: 12px; text-align: center; overflow: hidden; } @@ -106,7 +106,6 @@ body{ height: 100%; left: 0; float: left; - background-color: var(--layer_2_color); padding: 20px 10px 10px 0; overflow-y: auto; overflow-x: hidden; @@ -124,6 +123,9 @@ body{ overflow-y: auto; overflow-x: hidden; background-color: var(--layer_2_color); + border-top-left-radius: 12px; + border-bottom-left-radius: 12px; + padding: 8px; transition: left 0.5s; } @media (max-width: 1000px) { @@ -133,6 +135,7 @@ body{ .page_body { left: 0; width: 100%; + padding: 4px; } } .limit_width { @@ -240,7 +243,7 @@ body{ h1, h2, h3, h4, h5, h6 { line-height: 1em; - margin: 0.5em 10px; + margin: 0.5em 0; font-weight: normal; font-weight: lighter; font-family: sans-serif; @@ -270,9 +273,8 @@ h5 { h6 { font-size: 1em; } - -p, .indent { - margin: 10px; +.indent { + margin: 8px; } hr { @@ -484,7 +486,7 @@ select:disabled , select.disabled { white-space: nowrap; text-align: center; background-color: var(--layer_1_color); - box-shadow: inset 0 -10px 8px -12px var(--shadow_color), 0 0 10px var(--shadow_color); + box-shadow: inset 0 -10px 8px -12px var(--shadow_color); } .tab_bar > button, .tab_bar > .button { diff --git a/res/include/style/modal.css b/res/include/style/modal.css index 6f6d454..894735c 100644 --- a/res/include/style/modal.css +++ b/res/include/style/modal.css @@ -32,6 +32,7 @@ flex-shrink: 0; display: flex; flex-direction: row; + background: var(--layer_1_color); padding: 1px; } diff --git a/svelte/src/file_viewer/DetailsWindow.svelte b/svelte/src/file_viewer/DetailsWindow.svelte index f3b545b..0875e75 100644 --- a/svelte/src/file_viewer/DetailsWindow.svelte +++ b/svelte/src/file_viewer/DetailsWindow.svelte @@ -88,7 +88,7 @@ onMount(() => { }) -
+
diff --git a/svelte/src/file_viewer/EditWindow.svelte b/svelte/src/file_viewer/EditWindow.svelte index 78a53e2..b32646c 100644 --- a/svelte/src/file_viewer/EditWindow.svelte +++ b/svelte/src/file_viewer/EditWindow.svelte @@ -138,7 +138,7 @@ let delete_list = async e => { -
+
{#if loading}
@@ -153,7 +153,7 @@ let delete_list = async e => { {#if list.can_edit}

Edit album

Rename

-
+ -
+ {/if} {#if file.can_edit}

Edit file

Rename

- + -
+ {/if}
diff --git a/svelte/src/file_viewer/EmbedWindow.svelte b/svelte/src/file_viewer/EmbedWindow.svelte index b6242f9..eeeb7a0 100644 --- a/svelte/src/file_viewer/EmbedWindow.svelte +++ b/svelte/src/file_viewer/EmbedWindow.svelte @@ -101,24 +101,27 @@ const example = () => {
-

- If you have a website you can embed pixeldrain files in your own - webpages here. -

-

- The IFrame embed gives you a frame with a slightly more minimalistic - file viewer in it. The embedded file viewer has a fullscreen button and - the toolbar is collapsed by default. If you do not have a pixeldrain Pro - account the frame will also have advertisements in it. -

-

- The hotlink embed option only works for single files uploaded with a Pro - account. You can use this to directly embed a video player, audio - player, photo element or a download button in your site. Make sure you - have bandwidth sharing enabled on your - subscription page or the embed will not - work. -

+
+

+ If you have a website you can embed pixeldrain files in your own + webpages here. +

+

+ The IFrame embed gives you a frame with a slightly more minimalistic + file viewer in it. The embedded file viewer has a fullscreen button + and the toolbar is collapsed by default. If you do not have a + pixeldrain Pro account the frame will also have advertisements in + it. +

+

+ The hotlink embed option only works for single files uploaded with a + Pro account. You can use this to directly embed a video player, + audio player, photo element or a download button in your site. Make + sure you have bandwidth sharing enabled on your + subscription page or the embed will + not work. +

+
- {#if tab === "iframe"} -

Appearance

+
+ {#if tab === "iframe"} +

Appearance

+

+ You can change the pixeldrain theme for your embedded file. Try the + available themes here. +

+
+ + + + + + + + +
+ {:else} +

Direct link

+

+ You can directly download the file from this link without using the + file viewer: +
+ {domain_url()}{file.get_href} +

+ {/if} + +

Code

- You can change the pixeldrain theme for your embedded file. Try the - available themes here. + Put this code in your website to embed the file.

- - - - - - - -
- {:else} -

Direct link

-

- You can directly download the file from this link without using the - file viewer: -
- {domain_url()}{file.get_href} -

- {/if} - -

Code

-

- Put this code in your website to embed the file. -

-
- -
- - +

Example

-

Example

diff --git a/svelte/src/user_file_manager/DirectoryElement.svelte b/svelte/src/user_file_manager/DirectoryElement.svelte index 64b1359..ee902d2 100644 --- a/svelte/src/user_file_manager/DirectoryElement.svelte +++ b/svelte/src/user_file_manager/DirectoryElement.svelte @@ -373,6 +373,8 @@ const node_click = (index) => { padding: 0; overflow-x: auto; text-align: left; + background-color: var(--layer_2_color); + border-radius: 16px; } #node_container { display: block; diff --git a/svelte/src/user_file_manager/FileManager.svelte b/svelte/src/user_file_manager/FileManager.svelte index 7e9ba0a..fede13c 100644 --- a/svelte/src/user_file_manager/FileManager.svelte +++ b/svelte/src/user_file_manager/FileManager.svelte @@ -256,16 +256,8 @@ onMount(() => { - - - -
- +
{#if page === "home"} diff --git a/svelte/src/util/Modal.svelte b/svelte/src/util/Modal.svelte index d4ccc40..4501a18 100644 --- a/svelte/src/util/Modal.svelte +++ b/svelte/src/util/Modal.svelte @@ -48,7 +48,7 @@ const keydown = e => { {#if visible}
Name