summaryrefslogtreecommitdiffstats
path: root/assets/css/components/_post-list.scss
blob: ba4c5affcf61f30ce1c33a27093d345bd7c6d7e7 (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),
            ),
            --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()) {
        margin-top: $line-height * 2rem;

        @include element('category-header') {
            margin-top: $line-height * 2rem;
            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;
            }
        }
    }
}