Browse Source

Remove padding from empty layouts and add option for full width layout content

gh-pages
Andrew Kingston 5 years ago
committed by Martin McKeaveney
parent
commit
53f4d6b790
  1. 2
      packages/standard-components/manifest.json
  2. 7
      packages/standard-components/src/Layout.svelte

2
packages/standard-components/manifest.json

@ -27,7 +27,7 @@
"type": "select", "type": "select",
"label": "Width", "label": "Width",
"key": "width", "key": "width",
"options": ["Small", "Medium", "Large"], "options": ["Small", "Medium", "Large", "Max"],
"defaultValue": "Large" "defaultValue": "Large"
}, },
{ {

7
packages/standard-components/src/Layout.svelte

@ -20,6 +20,7 @@
None: "none", None: "none",
} }
const widthClasses = { const widthClasses = {
Max: "max",
Large: "l", Large: "l",
Medium: "m", Medium: "m",
Small: "s", Small: "s",
@ -176,6 +177,9 @@
position: relative; position: relative;
padding: 32px; padding: 32px;
} }
.layout--none .main {
padding: 0;
}
.size--s { .size--s {
width: 800px; width: 800px;
} }
@ -185,6 +189,9 @@
.size--l { .size--l {
width: 1400px; width: 1400px;
} }
.size--max {
width: 100%;
}
/* Nav components */ /* Nav components */
.burger { .burger {

Loading…
Cancel
Save