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

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

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