web-svelte => web

This commit is contained in:
Jan Prochazka
2021-02-20 19:16:05 +01:00
parent daf9e9d18b
commit 321eedefea
38 changed files with 2 additions and 3 deletions

View File

@@ -0,0 +1,25 @@
<script lang="ts">
export let title;
export let name;
export let height = null;
export let visible = true;
</script>
<div class="title" on:click={() => (visible = !visible)}>{title}</div>
{#if visible}
<slot />
{/if}
<style>
.title {
padding: 5px;
font-weight: bold;
text-transform: uppercase;
background-color: var(--theme-bg-4);
border: 1px solid var(--theme-border);
}
.title:hover {
background-color: var(--theme-bg-3);
}
</style>