summaryrefslogtreecommitdiff
path: root/assets/css/components/_postlist.scss
blob: 8fb10f65105214e2efcc69054d77a60e80c82d02 (plain)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
.index-section-morelink {
    @include small-button;

    &::after {
        content: " »";
    }
}

/* Post List Styles */

.posts-list {
    display: flex;
    flex-direction: column;
    margin: 1rem 0;
    .posts-item {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        margin: 0.5rem 0;
        header {
            width: 100%;

            @media screen and (min-width: 768px) {
                display: flex;
                justify-content: space-between;
            }

            .posts-item-meta {
                time {
                    color: var(--secondary-text-color);
                    font-family: var(--mono-font-family);
                }
            }

            .posts-item-category {
                margin: 0.5rem 0;
            }
        }
        .posts-item-summary {
            h1, h2, h3, h4, h5, h6 {
                display: none;
            }
            font-size: 1em;
        }
    }
}

#posts-list-navigation {
    ul {
        position: relative;
        width: 100%;
        padding-inline-start: 0;
        display: flex;
        list-style: none;
        gap: 0.2rem;
        li {
            flex-shrink: 0;
            flex-grow: 0;
            &.active {
                font-weight: bolder
            }
            a {
                @include small-button;
            }
        }

        #search-instruction {
            font-size: 0.9rem;
            color: var(--secondary-text-color);
            margin-left: 0.5rem;

        }

        .list-decoration {
            position: absolute;
            right: 0;
            img {
                opacity: 0.55;
                height: 2rem;
                width: 2rem;
            }
        }
    }
}

.term-list {
    ul {
        list-style: none;
        padding-inline-start: 0;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        li {
            display: flex;
            justify-content: space-between;
            font-size: 1.1rem;
            time {
                font-size: 0.9rem;
                font-family: var(--mono-font-family);
                color: var(--secondary-text-color);
            }
        }
    }
}

.posts-item-category {
    a {
        border: 2px solid var(--border-color);
        border-radius: 0.2rem;
        padding: 0.2rem 0.5rem;
        text-decoration: none;
        font-size: 0.8rem;
        display: inline-block;
    }
}

/* Card List Styles */

#latest-cards {
    margin: 1rem 0;
    .latest-cards-container {
        display: flex;
        width: 100%;
        overflow-x: auto;
        gap: 1rem;
        .card {
            flex-shrink: 0;
            width: 50%;
        }
    }
}