Allow page width to be overridden

This commit is contained in:
Rory Powell 2022-03-07 13:14:36 +00:00
parent b686c19658
commit 5e94c8a931
2 changed files with 3 additions and 2691 deletions

View File

@ -1,8 +1,9 @@
<script>
export let wide = false
export let maxWidth = "80ch"
</script>
<div class:wide>
<div style="--max-width: {maxWidth}" class:wide>
<slot />
</div>
@ -12,7 +13,7 @@
flex-direction: column;
justify-content: flex-start;
align-items: stretch;
max-width: 80ch;
max-width: var(--max-width);
margin: 0 auto;
padding: calc(var(--spacing-xl) * 2);
min-height: calc(100% - var(--spacing-xl) * 4);

File diff suppressed because one or more lines are too long