Files
classroomio/src/components/PageBody/index.svelte
T

31 lines
577 B
Svelte
Raw Normal View History

2021-07-01 09:31:26 +03:00
<script>
// import
2021-07-03 19:29:41 +00:00
// border border-gray-300 rounded-md p-3 bg-blue-200 bg-opacity-25
2021-08-24 10:45:43 +03:00
export let width = 'max-w-3xl w-11/12';
export let className = '';
2021-07-01 09:31:26 +03:00
</script>
2021-09-04 22:27:00 +03:00
<div class="root mt-4 mx-auto {width} {className} relative pb-5 px-4">
2021-07-01 09:31:26 +03:00
{#if $$slots.header}
<div
class="head flex items-center justify-between sticky right-0 w-full py-3"
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;
2021-08-18 19:47:02 +03:00
height: 85vh;
}
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-08-31 11:37:29 +03:00
background-color: #fafbfc;
2021-07-01 09:31:26 +03:00
}
</style>