summaryrefslogtreecommitdiffstats
path: root/assets/css/layouts/_card-grid.scss
blob: c9d927a76c90cb77d7b8e7028b2258660cae97a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
@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;
        filter:                drop-shadow(#{prop(--dims --obj-shadow, $global: true)} #{prop(--colors --obj-shadow, $global: true)});

        @include element('card') {
            box-shadow: none;
        }

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