Implement new design

Co-authored-by: dnlklmn <pelicansinberlin@gmail.com>
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
Rūdolfs Ošiņš
2023-10-13 18:05:19 +02:00
co-authored by dnlklmn
parent c5c609167e
commit d914710396
147 changed files with 5374 additions and 4191 deletions
+29
View File
@@ -0,0 +1,29 @@
<script lang="ts">
type T = $$Generic;
export let items: T[];
</script>
<style>
.dropdown {
align-items: center;
border-radius: var(--border-radius-small);
max-height: 60vh;
overflow-y: auto;
}
.dropdown-item {
padding: 0.25rem 0.25rem 0 0.25rem;
font-size: var(--font-size-small);
}
.dropdown-item:last-child {
padding-bottom: 0.25rem;
}
</style>
<div class="dropdown">
{#each items as item}
<div class="dropdown-item">
<slot name="item" {item} />
</div>
{/each}
</div>