diff options
| author | Joe Carstairs <118172583+jcarstairs-scottlogic@users.noreply.github.com> | 2023-10-20 13:45:52 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-20 13:45:52 +0100 |
| commit | 58a6b29df62f95f68baa0fcc7c8b5b053d409ea6 (patch) | |
| tree | 46ffa547685292dc2907da64275f514ea25a68f4 /scss/layout/grid.scss | |
| parent | 958457be8626148a9559716caf032bb54c10bbdc (diff) | |
| parent | b2e3ed96b703f49af556d641eae57c1c4fcd8db0 (diff) | |
Merge pull request #20 from Sycamost/dev
Dev
Diffstat (limited to 'scss/layout/grid.scss')
| -rw-r--r-- | scss/layout/grid.scss | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/scss/layout/grid.scss b/scss/layout/grid.scss new file mode 100644 index 0000000..25cdd95 --- /dev/null +++ b/scss/layout/grid.scss @@ -0,0 +1,30 @@ +:is( + header, + footer, + nav, + :is(main, article) > section:not(:is(section, header) :is(section, header)) +):not(.section--full-width) { + padding-inline: calc(var(--grid-padding) + 0.5 * (100vw - var(--grid-total-width))); +} + +.grid-span-1 { + width: var(--grid-column-width); +} + +/* On screens narrower than 16rem, there is only one column. */ + +.grid-span-2 { + width: var(--grid-column-width); +} + +.grid-span-3 { + width: var(--grid-column-width); +} + +.width-prose { + width: var(--prose-width); +} + +.grid-span-full { + width: var(--grid-total-width); +} |
