2021-05-06 21:17:27 +12:00
|
|
|
<script>
|
|
|
|
export let wide = false
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<div class:wide>
|
|
|
|
<slot />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
div {
|
2021-05-11 03:14:12 +12:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: flex-start;
|
|
|
|
align-items: stretch;
|
2021-05-06 21:17:27 +12:00
|
|
|
max-width: 80ch;
|
|
|
|
margin: 0 auto;
|
|
|
|
padding: calc(var(--spacing-xl) * 2);
|
|
|
|
}
|
|
|
|
|
|
|
|
.wide {
|
|
|
|
max-width: none;
|
|
|
|
margin: 0;
|
2021-05-10 22:53:32 +12:00
|
|
|
padding: var(--spacing-xl) calc(var(--spacing-xl) * 2)
|
|
|
|
calc(var(--spacing-xl) * 2) calc(var(--spacing-xl) * 2);
|
2021-05-06 21:17:27 +12:00
|
|
|
}
|
|
|
|
</style>
|