summaryrefslogtreecommitdiff
path: root/assets/css/components/_postlist.scss
blob: 57c6b18f3c061633c778271f49a7106a7949273e (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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
.index-section-morelink {
    @include small-button;

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

/* Post List Styles */

.posts-list {
    display: flex;
    flex-direction: column;
    margin: 1rem 0;
    .posts-item {
        overflow: hidden;
        width: 100%;
        margin: 0.5rem 0;
        header {
            width: 100%;

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

            .posts-item-meta {
                p, time {
                    color: var(--secondary-text-color);
                }
                time {
                    font-family: var(--mono-font-family);
                }
                a.tag {
                    font-size: 0.8rem;
                    color: var(--secondary-text-color);
                }
                .posts-item-title {
                    filter: url(#xs);
                    .posts-item-title-pill {
                        font-size: 1rem;
                        font-weight: normal;
                        color: var(--secondary-text-color)
                    }
                }
            }

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

        position: relative;
        .posts-item-icon {
            position: absolute;
            top: 0;
            right: 0;
            opacity: 0.25;
            z-index: -1;
            transform: rotateY(180deg) rotate(-25deg);
            img {
                width: 8rem;
                height: 8rem;
            }
        }
    }
}

#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:not(.icon-link) {
                @include small-button;
            }

            .icon-link {
                opacity: 0.5;
                transition: opacity 0.3s;
            }
            .icon-link:hover,
            &.active .icon-link {
                opacity: 1;
            }
        }

        #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 {
    .term-list-posts {
        &:not(ol) {
            list-style: none;
        }
        padding-inline-start: 0;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        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);
                flex-shrink: 0;
            }
            .posts-subtitle {
                color: var(--secondary-text-color);
            }
        }
    }
}

.taxonomy-description hr {
    margin: 0.25rem 0;
}

.posts-item-category {
    a {
        @include postCategoryPill;
    }
}