2022-05-14 09:37:55 +08:00
|
|
|
<script lang="ts">
|
2023-08-04 06:01:18 +08:00
|
|
|
export let elem_id = "";
|
|
|
|
export let elem_classes: string[] = [];
|
|
|
|
export let visible = true;
|
2022-05-14 09:37:55 +08:00
|
|
|
</script>
|
|
|
|
|
2023-08-04 06:01:18 +08:00
|
|
|
<div
|
2023-07-18 01:05:46 +08:00
|
|
|
id={elem_id}
|
2023-08-04 06:01:18 +08:00
|
|
|
class="gr-group {elem_classes.join(' ')}"
|
2023-07-18 01:05:46 +08:00
|
|
|
class:hide={!visible}
|
|
|
|
>
|
2023-08-04 06:01:18 +08:00
|
|
|
<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 />
|
2023-07-18 01:05:46 +08:00
|
|
|
</div>
|
2022-05-14 09:37:55 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<style>
|
2023-07-18 01:05:46 +08:00
|
|
|
div {
|
|
|
|
border: var(--block-border-width) solid var(--border-color-primary);
|
|
|
|
background: var(--border-color-primary);
|
|
|
|
border-radius: var(--block-radius);
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
gap: var(--form-gap-width);
|
|
|
|
overflow: hidden;
|
2022-05-14 09:37:55 +08:00
|
|
|
}
|
2023-07-18 01:05:46 +08:00
|
|
|
div > :global(*:not(.absolute)) {
|
|
|
|
border: none;
|
|
|
|
border-radius: 0;
|
2022-05-14 09:37:55 +08:00
|
|
|
}
|
2023-06-20 02:53:35 +08:00
|
|
|
.hide {
|
|
|
|
display: none;
|
|
|
|
}
|
2023-08-04 06:01:18 +08:00
|
|
|
</style>
|