Extract Button component

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
Rūdolfs Ošiņš
2022-09-06 11:36:31 +02:00
committed by Alexis Sellier
parent b9a2e9d954
commit dc8a8f883c
29 changed files with 352 additions and 282 deletions
+5 -7
View File
@@ -4,6 +4,7 @@
import Loading from "@app/Loading.svelte";
import Placeholder from "@app/Placeholder.svelte";
import * as utils from "@app/utils";
import Button from "@app/Button.svelte";
import Tree from "./Tree.svelte";
import Blob from "./Blob.svelte";
@@ -128,10 +129,6 @@
}
@media (max-width: 720px) {
button.browse {
width: 100%;
border-color: var(--color-secondary-faded);
}
.column-right {
padding: 1.5rem 0;
min-width: 0;
@@ -161,11 +158,12 @@
<!-- Mobile navigation -->
{#if tree.entries.length > 0}
<nav class="mobile">
<button
class="regular browse secondary center-content"
<Button
style="width: 100%;"
variant="secondary"
on:click={toggleMobileFileTree}>
Browse
</button>
</Button>
</nav>
{/if}
@@ -60,6 +60,7 @@
font-size: 0.75rem;
height: var(--button-tiny-height);
padding: 0.25rem 0.5rem;
background-color: var(--color-background);
}
.revision-toggle:hover {
background-color: var(--color-foreground-background);