1
0
Fork 0
mirror of synced 2024-08-12 08:31:27 +12:00
budibase/packages/bbui/src/Layout/Page.svelte

33 lines
580 B
Svelte
Raw Normal View History

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