diff options
| author | Joe Carstairs <118172583+jcarstairs-scottlogic@users.noreply.github.com> | 2024-01-19 09:33:11 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-19 09:33:11 +0000 |
| commit | 7140956da0820d4b818119eff7dfc72345f3328e (patch) | |
| tree | 503e1129a999fe834d2a7b98a4e82bf07264f49f /scss/layout/_grid.scss | |
| parent | a4f3cb02befe658594c076144be2e5200f36682a (diff) | |
| parent | 83c3460191a2089b56b091a7f4e09f39ac636e1e (diff) | |
Merge pull request #65 from joeacarstairs/deployment-staging
Update production
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); +} |
