More windows 98 tweaks.. because I can't stop

This commit is contained in:
2024-08-29 19:35:37 +02:00
parent fa4084c24b
commit 8399800952
6 changed files with 46 additions and 46 deletions

View File

@@ -440,7 +440,7 @@ tr {
tr>td, tr>td,
tr>th { tr>th {
padding: 0.2em 0.5em; padding: 0.2em;
} }
/* API documentation markup */ /* API documentation markup */

View File

@@ -8,6 +8,8 @@ let button
let dialog let dialog
export let no_login_label = "Pixeldrain" export let no_login_label = "Pixeldrain"
// Hide the label if the screen is smaller than 800px
export let hide_name = true export let hide_name = true
export let hide_logo = false export let hide_logo = false
export let style = "" export let style = ""
@@ -46,7 +48,7 @@ const click = e => {
<div class="wrapper"> <div class="wrapper">
<button bind:this={button} on:click={open} href="/user" class="button round" title="Menu" style={style}> <button bind:this={button} on:click={open} href="/user" class="button round" title="Menu" style={style}>
{#if !hide_logo} {#if !hide_logo}
<PixeldrainLogo style="height: 1.8em; width: 1.8em; margin: 2px;"/> <PixeldrainLogo style="height: 1.6em; width: 1.6em;"/>
{/if} {/if}
<span class="button_username" class:hide_name> <span class="button_username" class:hide_name>
{window.user.username === "" ? no_login_label : window.user.username} {window.user.username === "" ? no_login_label : window.user.username}
@@ -115,17 +117,17 @@ const click = e => {
.wrapper { .wrapper {
flex-grow: 0; flex-grow: 0;
flex-shrink: 0; flex-shrink: 0;
display: inline; display: inline-flex;
align-self: center; align-self: center;
} }
.button { .button {
flex: 0 0 content; flex: 0 0 content;
background: none;
margin: 0;
color: var(--body_text_color);
box-shadow: none; box-shadow: none;
} }
.button_username {
margin: 0 4px;
}
dialog { dialog {
background-color: var(--card_color); background-color: var(--card_color);

View File

@@ -67,8 +67,6 @@ let expand = e => {
</script> </script>
<div class="toolbar" class:expanded> <div class="toolbar" class:expanded>
<div class="separator hidden_horizontal" style="margin-top: 0;"></div>
<div class="stats_container" on:click={expand} on:keypress={expand} role="button" tabindex="0"> <div class="stats_container" on:click={expand} on:keypress={expand} role="button" tabindex="0">
<button class="button_expand hidden_vertical" on:click={expand}> <button class="button_expand hidden_vertical" on:click={expand}>
{#if expanded} {#if expanded}

View File

@@ -17,7 +17,7 @@ export let hide_branding = false
<td></td> <td></td>
<td>Name</td> <td>Name</td>
<td>Size</td> <td>Size</td>
<td></td> <td>Actions</td>
</tr> </tr>
{#each $nav.children as child, index (child.path)} {#each $nav.children as child, index (child.path)}
<a <a
@@ -40,7 +40,7 @@ export let hide_branding = false
{/if} {/if}
</td> </td>
<td class="node_icons"> <td class="node_icons">
<div class="icons_wrap">
{#if child.abuse_type !== undefined} {#if child.abuse_type !== undefined}
<i class="icon" title="This file / directory has received an abuse report. It cannot be shared">block</i> <i class="icon" title="This file / directory has received an abuse report. It cannot be shared">block</i>
{:else if child.id} {:else if child.id}
@@ -62,6 +62,7 @@ export let hide_branding = false
<i class="icon">edit</i> <i class="icon">edit</i>
</button> </button>
{/if} {/if}
</div>
</td> </td>
</a> </a>
{/each} {/each}
@@ -104,7 +105,6 @@ export let hide_branding = false
color: var(--highlight_text_color); color: var(--highlight_text_color);
} }
td { td {
padding: 4px;
vertical-align: middle; vertical-align: middle;
} }
.node_icon { .node_icon {
@@ -112,6 +112,7 @@ td {
width: 32px; width: 32px;
vertical-align: middle; vertical-align: middle;
border-radius: 4px; border-radius: 4px;
margin: 2px;
} }
.node_name { .node_name {
width: 100%; width: 100%;
@@ -122,16 +123,10 @@ td {
min-width: 50px; min-width: 50px;
white-space: nowrap; white-space: nowrap;
} }
.node_icons { .icons_wrap {
white-space: nowrap; display: flex;
text-align: right; flex-direction: row;
padding: 0; justify-content: end;
}
.action_button {
margin: 0;
background: none;
color: var(--body_text_color);
box-shadow: none;
} }
.hidden { .hidden {
display: none; display: none;

View File

@@ -10,7 +10,7 @@ import UploadLoginWall from "./UploadLoginWall.svelte";
<div class="page_content"> <div class="page_content">
<header class="header" style="text-align: initial"> <header class="header" style="text-align: initial">
<div class="menu_button_container"> <div class="menu_button_container">
<Menu no_login_label="Not logged in" hide_name={false} hide_logo style="color: #eeeeee;"/> <Menu no_login_label="Not logged in" hide_name={false} hide_logo style="border-radius: 0 0 0 8px; margin: 0"/>
</div> </div>
<div class="header_image_container"></div> <div class="header_image_container"></div>
</header> </header>
@@ -101,6 +101,5 @@ header > h1 {
.menu_button_container { .menu_button_container {
display: flex; display: flex;
justify-content: end; justify-content: end;
padding-right: 0.5em;
} }
</style> </style>

View File

@@ -552,6 +552,7 @@ footer, .footer_content,
.sharebar, .sharebar,
.directory_sorters, .directory_area, .directory_sorters, .directory_area,
.container > .directory, .container > .directory,
.file_preview > .directory,
.directory > .node, .directory > .node,
.file, .file_button, .file, .file_button,
.upload_task, .upload_task,
@@ -577,14 +578,18 @@ footer, .footer_content,
border-top-right-radius: 3px !important; border-top-right-radius: 3px !important;
box-shadow: inset -1px 0 #0a0a0a,inset 1px 1px #dfdfdf,inset -2px 0 grey,inset 2px 2px #fff !important; box-shadow: inset -1px 0 #0a0a0a,inset 1px 1px #dfdfdf,inset -2px 0 grey,inset 2px 2px #fff !important;
} }
.headerbar > .wrapper > .button { .directory > tr {
color: #fff !important; border: none !important;
}
.button_toggle_navigation {
padding: 8px !important;
} }
input[type="email"], input[type="email"],
input[type="number"], input[type="number"],
input[type="password"], input[type="password"],
input[type="text"], input[type="text"],
input[type="date"],
select, textarea, pre { select, textarea, pre {
border-radius: 0 !important; border-radius: 0 !important;
border: none !important; border: none !important;
@@ -602,6 +607,7 @@ code {
.file_preview, .file_preview,
hr, hr,
.toolbar > .separator, .toolbar > .separator,
.toolbar > .grid > .separator,
.highlight_shaded { .highlight_shaded {
border-radius: 0 !important; border-radius: 0 !important;
border: none !important; border: none !important;