summaryrefslogtreecommitdiff
path: root/scss/layout/grid.scss
blob: a515df5604db3d5998234382eded0224941a997a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
:is(
  :is(header, footer, nav):not(main :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);
}