summaryrefslogtreecommitdiffstats
path: root/assets/css/layouts/_card-grid.scss
blob: 7c8ad8c2c1cb4ca9a1a7f3208714df24745520ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
@include namespace('card-grid') {
    @include store((
        --dims: (
            --col-width: 17em
        )
    ));

    @include layout(namespace()) {
        display:               grid;
        grid-template-columns: repeat(auto-fill, minmax(#{prop(--dims --col-width)}, 1fr));
        gap:                   .6rem;

        @include media('<=sm') {
            grid-template-columns: 1fr;
        }
    }
}