~wuz/wuz.sh

ref: 0046f7008ba44c4fda09dd57a96b976eebadd47c wuz.sh/_includes/styles/atoms/grid.scss -rw-r--r-- 433 bytes
0046f700 — Conlin Durbin Fix colors and garden 11 months ago
                                                                                
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
.grid {
  display: grid;
  grid-gap: em(spacing(2));
  align-items: center;
}

.grid\:auto-fit {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: em(spacing(2));
}

@for $i from 1 to 12 {
  .grid\:col-$i {
    grid-template-columns: repeat($i, 1fr);
    @media screen and (max-width: 468px) {
      & {
        display: block;
      }
    }
  }

  .grid\:span-$i {
    grid-column: span $i / span $i;
  }
}