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

    @include component(namespace()) {
        @include element('category-header') {
            color: prop(--colors --cat --fg);
        }

        @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;
            color:      prop(--colors --post --idle-fg);

            &:visited {
                color: prop(--colors --post --visited-fg);
            }

            @include next-twin-element {
                margin-top: .6rem;
            }
        }
    }
}