2021-07-01 09:31:26 +03:00
|
|
|
<script>
|
|
|
|
|
// import
|
2023-08-20 19:08:48 +00:00
|
|
|
// border border-gray-300 rounded-md p-3 bg-primary-200 bg-opacity-25
|
2023-07-27 16:08:04 +00:00
|
|
|
export let width = 'max-w-4xl w-full lg:w-11/12';
|
2021-09-14 07:01:44 +03:00
|
|
|
export let padding = 'pb-5 px-4';
|
2021-08-24 10:45:43 +03:00
|
|
|
export let className = '';
|
2023-08-30 14:31:40 +00:00
|
|
|
export let headerClassName = '';
|
2021-07-01 09:31:26 +03:00
|
|
|
</script>
|
|
|
|
|
|
2021-09-14 07:01:44 +03:00
|
|
|
<div class="root mt-4 mx-auto {width} {className} relative {padding}">
|
2021-07-01 09:31:26 +03:00
|
|
|
{#if $$slots.header}
|
2023-08-30 14:31:40 +00:00
|
|
|
<div
|
|
|
|
|
class="head dark:bg-gray-800 flex items-center justify-between sticky right-0 w-full px-3 {headerClassName}"
|
|
|
|
|
>
|
2021-07-01 09:31:26 +03:00
|
|
|
<slot name="header" />
|
|
|
|
|
</div>
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
<slot />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<style>
|
2021-08-18 19:47:02 +03:00
|
|
|
.root {
|
2021-08-26 13:35:56 +03:00
|
|
|
overflow-y: auto;
|
2023-08-05 07:47:17 +01:00
|
|
|
height: calc(100vh - 127px);
|
2021-08-18 19:47:02 +03:00
|
|
|
}
|
2021-07-01 09:31:26 +03:00
|
|
|
.head {
|
2021-08-18 19:47:02 +03:00
|
|
|
top: 0px;
|
2021-07-03 19:29:41 +00:00
|
|
|
z-index: 1;
|
2021-07-01 09:31:26 +03:00
|
|
|
}
|
|
|
|
|
</style>
|