Browse Source

Allow page width to be overridden

master
Rory Powell 5 years ago
parent
commit
22c8f79aef
  1. 5
      packages/bbui/src/Layout/Page.svelte
  2. 2689
      packages/client/stats.html

5
packages/bbui/src/Layout/Page.svelte

@ -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);

2689
packages/client/stats.html

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save