summaryrefslogtreecommitdiffstats
path: root/assets/css/layouts/_card-list.scss
blob: e6d1297043340fd111d1aee6c476906d73b7c86b (plain) (blame)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
@include namespace('card-list') {
    @include store((
        --dims: (
            --col-width: 17em
        )
    ));

    @include layout(namespace()) {
        margin-top: $line-height * 2rem;
        font-size:  1rem;

        @include element('cards') {
            margin-top: $line-height * .625rem;
            filter:     drop-shadow(#{prop(--dims --obj-shadow, $global: true)} #{prop(--colors --obj-shadow, $global: true)});

            @include modifier('grid') {
                display:               grid;
                grid-template-columns: repeat(auto-fill, minmax(#{prop(--dims --col-width)}, 1fr));
                gap:                   6px;
    
                @include element('card') {
                    @include next-twin-element {
                        margin-top: 0;
                    }
                }
            }

            @media print {
                filter: none;
            }
        }

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

            @include next-twin-element {
                margin-top: 2px;
            }
        }
    }
}