summaryrefslogtreecommitdiffstats
path: root/assets/css/components/_post-list.scss
blob: 7a3b8a03aa98efd757d1411c795d03ffc150343a (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
42
43
@include namespace('post-list') {
    @include store((
        --colors: (
            --cat: (
                --fg: prop(--colors --fg-lo, $global: true),
            ),
            --meta: (
                --fg: prop(--colors --fg-hi, $global: true),
            )
        )
    ));

    @include component(namespace()) {
        margin-top: $line-height * 2rem;

        @include element('category-header') {
            margin-top: $line-height * 2rem;
            color:      prop(--colors --cat --fg);

            :link,
            :visited {
                text-decoration: none;

                &:hover {
                    text-decoration: underline;
                }
            }
        }

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

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

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