Style fixes
This commit is contained in:
@@ -271,11 +271,11 @@ const share = () => {
|
|||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<div bind:this={header_bar} class="file_viewer_headerbar highlight_1">
|
<div bind:this={header_bar} class="file_viewer_headerbar">
|
||||||
<button on:click={toolbar_toggle} class="button_toggle_toolbar" class:button_highlight={toolbar_visible}>
|
<button on:click={toolbar_toggle} class="button_toggle_toolbar round" class:button_highlight={toolbar_visible}>
|
||||||
<i class="icon">menu</i>
|
<i class="icon">menu</i>
|
||||||
</button>
|
</button>
|
||||||
<a href="/" id="button_home" class="button button_home">
|
<a href="/" id="button_home" class="button button_home round">
|
||||||
<PixeldrainLogo style="height: 1.6em; width: 1.6em; margin: 0 0.2em 0 0; color: currentColor;"></PixeldrainLogo>
|
<PixeldrainLogo style="height: 1.6em; width: 1.6em; margin: 0 0.2em 0 0; color: currentColor;"></PixeldrainLogo>
|
||||||
</a>
|
</a>
|
||||||
<div class="file_viewer_headerbar_title">
|
<div class="file_viewer_headerbar_title">
|
||||||
@@ -340,7 +340,7 @@ const share = () => {
|
|||||||
</div></div></div>
|
</div></div></div>
|
||||||
<Sharebar bind:this={sharebar}></Sharebar>
|
<Sharebar bind:this={sharebar}></Sharebar>
|
||||||
|
|
||||||
<div class="file_viewer_file_preview" class:toolbar_visible>
|
<div class="file_viewer_file_preview checkers" class:toolbar_visible>
|
||||||
{#if state.viewer_type === "dir"}
|
{#if state.viewer_type === "dir"}
|
||||||
<FileManager state={state} on:navigate={e => {navigate(e.detail, true)}} on:loading={e => {state.loading = e.detail}}></FileManager>
|
<FileManager state={state} on:navigate={e => {navigate(e.detail, true)}} on:loading={e => {state.loading = e.detail}}></FileManager>
|
||||||
{:else if state.viewer_type === "audio"}
|
{:else if state.viewer_type === "audio"}
|
||||||
@@ -390,6 +390,7 @@ const share = () => {
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
background-color: var(--layer_2_color);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Headerbar (row 1) */
|
/* Headerbar (row 1) */
|
||||||
@@ -413,6 +414,9 @@ const share = () => {
|
|||||||
display: inline;
|
display: inline;
|
||||||
align-self: center;
|
align-self: center;
|
||||||
}
|
}
|
||||||
|
.file_viewer > .file_viewer_headerbar > .button_toggle_toolbar > .icon {
|
||||||
|
font-size: 1.6em;
|
||||||
|
}
|
||||||
.file_viewer > .file_viewer_headerbar > .file_viewer_headerbar_title {
|
.file_viewer > .file_viewer_headerbar > .file_viewer_headerbar_title {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
flex-shrink: 1;
|
flex-shrink: 1;
|
||||||
@@ -435,7 +439,7 @@ const share = () => {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: var(--text_color);
|
color: var(--text_color);
|
||||||
background-color: var(--layer_2_color);
|
background-color: var(--layer_3_color);
|
||||||
transition: 0.2s background-color, 0.2s color;
|
transition: 0.2s background-color, 0.2s color;
|
||||||
}
|
}
|
||||||
.breadcrumb_button:hover, .breadcrumb_button:focus, .breadcrumb_button:active {
|
.breadcrumb_button:hover, .breadcrumb_button:focus, .breadcrumb_button:active {
|
||||||
@@ -462,7 +466,6 @@ const share = () => {
|
|||||||
position: relative;
|
position: relative;
|
||||||
display: none; /* Becomes visible if the page is a list */
|
display: none; /* Becomes visible if the page is a list */
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background-color: var(--layer_1_color);
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 1em;
|
line-height: 1em;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
@@ -492,6 +495,7 @@ const share = () => {
|
|||||||
right: 0;
|
right: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
border-radius: 16px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
min-height: 100px;
|
min-height: 100px;
|
||||||
min-width: 100px;
|
min-width: 100px;
|
||||||
@@ -509,13 +513,13 @@ const share = () => {
|
|||||||
z-index: 49;
|
z-index: 49;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
float: left;
|
float: left;
|
||||||
background-color: var(--layer_1_color);
|
|
||||||
left: -8em;
|
left: -8em;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
transition: left 0.5s;
|
transition: left 0.5s;
|
||||||
|
background-color: var(--layer_2_color);
|
||||||
}
|
}
|
||||||
.toolbar.toolbar_visible { left: 0; }
|
.toolbar.toolbar_visible { left: 0; }
|
||||||
.file_viewer > .file_viewer_window > .file_viewer_file_preview.toolbar_visible { left: 8em; }
|
.file_viewer > .file_viewer_window > .file_viewer_file_preview.toolbar_visible { left: 8em; }
|
||||||
|
@@ -78,6 +78,8 @@ const share_tumblr = () => {
|
|||||||
z-index: 48;
|
z-index: 48;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
transition: left 0.5s;
|
transition: left 0.5s;
|
||||||
|
border-top-left-radius: 16px;
|
||||||
|
border-bottom-left-radius: 16px;
|
||||||
}
|
}
|
||||||
.visible { left: 8em; }
|
.visible { left: 8em; }
|
||||||
.button_full_width > svg {
|
.button_full_width > svg {
|
||||||
|
@@ -235,7 +235,7 @@ const toggle_select = () => {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 16px 0 16px 0;
|
margin: 16px 0 16px 0;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
background-color: var(--layer_2_color);
|
background-color: var(--layer_1_color);
|
||||||
box-shadow: 1px 1px 5px var(--shadow_color);
|
box-shadow: 1px 1px 5px var(--shadow_color);
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
@@ -250,7 +250,7 @@ const toggle_select = () => {
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
.directory :global(.node:not(:last-child)) {
|
.directory :global(.node:not(:last-child)) {
|
||||||
border-bottom: 1px solid var(--layer_3_color);
|
border-bottom: 1px solid var(--layer_2_color);
|
||||||
}
|
}
|
||||||
.directory :global(.node:hover:not(.node_selected)) {
|
.directory :global(.node:hover:not(.node_selected)) {
|
||||||
background-color: var(--input_color_dark);
|
background-color: var(--input_color_dark);
|
||||||
|
Reference in New Issue
Block a user