2021-05-06 11:17:27 +02:00
|
|
|
<script>
|
|
|
|
export let wide = false
|
2022-03-07 14:14:36 +01:00
|
|
|
export let maxWidth = "80ch"
|
2022-05-18 18:22:58 +02:00
|
|
|
export let noPadding = false
|
2021-05-06 11:17:27 +02:00
|
|
|
</script>
|
|
|
|
|
2022-05-18 18:22:58 +02:00
|
|
|
<div style="--max-width: {maxWidth}" class:wide class:noPadding>
|
2021-05-06 11:17:27 +02:00
|
|
|
<slot />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
div {
|
2021-05-10 17:14:12 +02:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: flex-start;
|
|
|
|
align-items: stretch;
|
2022-03-07 14:14:36 +01:00
|
|
|
max-width: var(--max-width);
|
2021-05-06 11:17:27 +02:00
|
|
|
margin: 0 auto;
|
|
|
|
padding: calc(var(--spacing-xl) * 2);
|
2021-05-18 14:52:26 +02:00
|
|
|
min-height: calc(100% - var(--spacing-xl) * 4);
|
2021-05-06 11:17:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.wide {
|
|
|
|
max-width: none;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2022-05-18 18:22:58 +02:00
|
|
|
|
|
|
|
.noPadding {
|
|
|
|
padding: 0px;
|
|
|
|
margin: 0px;
|
|
|
|
}
|
2021-05-06 11:17:27 +02:00
|
|
|
</style>
|