File size: 868 Bytes
0ad74ed |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
<script lang="ts">
export let elem_id = "";
export let elem_classes: string[] = [];
export let visible = true;
</script>
<div
id={elem_id}
class="gr-group {elem_classes.join(' ')}"
class:hide={!visible}
>
<div
class="styler"
style:--block-radius="0px"
style:--block-border-width="0px"
style:--layout-gap="1px"
style:--form-gap-width="1px"
style:--button-border-width="0px"
style:--button-large-radius="0px"
style:--button-small-radius="0px"
>
<slot />
</div>
</div>
<style>
div {
border: var(--block-border-width) solid var(--border-color-primary);
background: var(--block-border-color);
border-radius: var(--block-radius);
display: flex;
flex-direction: column;
gap: var(--form-gap-width);
overflow: hidden;
}
div > :global(*:not(.absolute)) {
border: none;
border-radius: 0;
}
.hide {
display: none;
}
</style>
|