define description modal

This commit is contained in:
Jan Prochazka
2021-11-13 11:08:24 +01:00
parent ec5b887e78
commit 1f821fc654
10 changed files with 261 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
<script lang="ts">
export let disabled = false;
export let square = false;
export let narrow = false;
let domButton;
@@ -9,7 +10,7 @@
}
</script>
<div class="outer buttonLike" class:disabled class:square on:click bind:this={domButton}>
<div class="outer buttonLike" class:disabled class:square class:narrow on:click bind:this={domButton}>
<div class="inner">
<slot />
</div>
@@ -34,6 +35,10 @@
display: flex;
}
.narrow {
padding: 3px 1px;
}
.outer.disabled {
color: var(--theme-font-3);
}