source: tanzpartie-hugo/themes/bilberry-hugo-theme/assets/sass/_articles.scss @ 16971

Last change on this file since 16971 was 16971, checked in by Henrik Bettermann, 2 years ago
File size: 10.5 KB
Line 
1article {
2    border-radius: 4px;
3    overflow: hidden;
4    background-color: $article-background-color;
5    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
6    width: ($site-width - 100px);
7    position: relative;
8
9    // :before and :after to generate the < pointer
10    &:before {
11        content: "";
12        display: block;
13        border: 11px solid transparent;
14        border-right-color: #ddd;
15        position: absolute;
16        top: 49px;
17        left: -22px;
18    }
19
20    &:after {
21        content: "";
22        display: block;
23        border: 10px solid transparent;
24        border-right-color: #fff;
25        position: absolute;
26        top: 50px;
27        left: -20px;
28    }
29
30    .featured-image {
31        width: 100%;
32
33        img {
34            width: 100%;
35        }
36    }
37
38    .content {
39        padding: 2em;
40
41        h1 {
42            font-size: 1.75em;
43            margin-bottom: 0.25em;
44
45            a {
46                font-style: normal;
47                color: inherit;
48
49                &:hover {
50                    color: $highlight-color;
51                    text-decoration: none;
52                }
53            }
54        }
55
56        h2 {
57            font-size: 1.6em;
58        }
59
60        h3 {
61            font-size: 1.5em;
62        }
63
64        h4 {
65            font-size: 1.4em;
66        }
67
68        h5 {
69            font-size: 1.3em;
70        }
71
72        h6 {
73            font-size: 1.2em;
74            font-weight: bold;
75        }
76
77        .meta {
78            text-transform: uppercase;
79            font-style: normal;
80            letter-spacing: 1px;
81            margin-bottom: 2rem;
82            font-size: 0.825em;
83            color: $meta-text-color;
84            padding-bottom: 2.5%;
85            border-bottom: 3px double $meta-border-color;
86            margin-bottom: 4.5%;
87
88            a {
89                color: inherit;
90                font-style: normal;
91
92                &:hover {
93                    color: $highlight-color;
94                    text-decoration: underline;
95                }
96            }
97
98            span {
99                &:before {
100                    content: " / ";
101                    margin: 0 1rem;
102                }
103
104                &:first-child:before {
105                    margin: 0 !important;
106                    content: "" !important;
107                }
108
109                a:not(:last-child):after {
110                    content: ", ";
111                }
112            }
113        }
114
115        a {
116            font-style: normal;
117            color: $highlight-color;
118
119            &:hover {
120                text-decoration: underline;
121            }
122        }
123
124        a.more {
125            display: block;
126            margin: 2.5rem 0 1rem;
127            color: $highlight-color;
128            font-size: 1.125em;
129            text-decoration: none;
130            font-style: normal;
131
132            &:hover {
133                text-decoration: underline;
134            }
135        }
136
137        .task-list {
138            list-style: none;
139
140            .task-list-item {
141                margin-bottom: 0;
142                position: relative;
143                top: 3px;
144                margin-right: 0.25em;
145            }
146        }
147
148        .archive-list {
149            ul {
150                list-style: none;
151                margin-top: 1.25em;
152
153                li {
154                    border-bottom: 1px solid #eee;
155                    padding-right: 10px;
156                }
157
158                a {
159                    position: relative;
160                    left: 0;
161                    display: inline-block;
162                    transition: left 0.3s ease-in-out;
163                    color: $highlight-color;
164                    font-family: $content-font;
165                    font-style: normal;
166
167                    span {
168                        color: $meta-text-color;
169                    }
170
171                    &:hover {
172                        left: 10px;
173                        color: $base-color;
174                        text-decoration: none;
175                    }
176                }
177            }
178        }
179
180        blockquote {
181            background-color: #f6f6f6;
182            font-family: $headline-font;
183            margin: 1.5em 0;
184            padding: 2em;
185            border-left: 0.5em solid #ededed;
186            font-size: 1.05em;
187
188            cite {
189                text-transform: uppercase;
190                font-style: normal;
191                font-weight: bold;
192                font-size: 0.9em;
193            }
194
195            p:last-child {
196                margin-bottom: 0;
197            }
198        }
199
200        img {
201            max-width: 100%;
202            display: block;
203            margin: 0 auto;
204        }
205
206        video {
207            max-width: 100%;
208        }
209
210        #TableOfContents {
211            display: block;
212            background: transparent;
213            padding-bottom: 2rem;
214            font-size: 1.2em;
215
216            ul {
217                display: list-item;
218                padding-left: 0;
219
220                &:not(:first-child) {
221                    display: list-item;
222                    padding-left: 0.9rem;
223                    font-size: 95%;
224                }
225            }
226
227            li {
228                display: inherit;
229                color: $text-color;
230
231                a {
232                    color: inherit;
233                    text-align: left;
234                    padding: 0;
235
236                    &:hover {
237                        color: $highlight-color;
238                        background-color: transparent;
239                    }
240                }
241            }
242        }
243    }
244
245    .highlight {
246        margin: 1em 0;
247    }
248
249    .footer {
250        display: flex;
251        align-items: center;
252        flex-direction: row;
253        justify-content: space-between;
254        background: transparentize($base-color, 0.90);
255
256        font-family: $article-footer-font;
257        font-size: 0.9em;
258
259        &.no-tags {
260            flex-direction: row-reverse;
261        }
262
263        .tags {
264            display: flex;
265            align-items: center;
266            margin: 1em 2em;
267
268            .links {
269                margin-left: 0.75em;
270
271                a:not(:last-child):after {
272                    content: " / ";
273                    color: $text-color !important;
274                }
275            }
276        }
277
278        .languages {
279            display: flex;
280            align-items: center;
281            margin: 1em 2em;
282            white-space: nowrap;
283
284            .fa {
285                font-size: 1.5em;
286            }
287
288            .links {
289                margin-left: 0.75em;
290                text-transform: uppercase;
291                font-family: $content-font;
292                letter-spacing: 0.1em;
293
294                a:not(:last-child):after {
295                    content: " | ";
296                    color: $text-color !important;
297                }
298            }
299        }
300    }
301
302    // Footnotes
303    .footnotes {
304        font-size: 0.9em;
305
306        ol {
307            counter-reset: list;
308            display: table;
309
310            li {
311                list-style: none;
312                counter-increment: list;
313                display: table-row;
314
315                &:before {
316                    content: counter(list) ".";
317                    display: table-cell;
318                    text-align: right;
319                    padding-right: 0.75em;
320                }
321
322                p {
323                    margin-bottom: 0.5em;
324                }
325            }
326        }
327    }
328
329    // Quotes
330    &.quote {
331        background-color: $special-color;
332
333        &:after {
334            border-right-color: $special-color;
335        }
336
337        a:hover {
338            color: inherit;
339            font-size: 1.1em;
340        }
341
342        @include featuredImage();
343
344        blockquote {
345            padding: 5.5%;
346            margin: 0;
347            text-align: center;
348            color: #fff;
349            background: none;
350            font-size: 1.2em;
351            position: relative;
352            z-index: 10;
353
354            p {
355                line-height: 170%;
356                font-size: 1.1em;
357            }
358
359            cite {
360                font-family: $headline-font;
361                font-weight: 600;
362                text-transform: uppercase;
363                line-height: 140%;
364
365                font-size: 0.725em;
366                text-align: center;
367                letter-spacing: 1px;
368
369                &:before {
370                    content: "— ";
371                }
372            }
373        }
374    }
375
376    // Gallery
377    &.gallery {
378        .flexslider {
379            margin: 0;
380            border: 0;
381
382            .flex-direction-nav a {
383                display: flex;
384                flex-direction: column;
385                justify-content: center;
386
387                &:before {
388                    color: rgba(255, 255, 255, 0.9);
389                    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
390                }
391            }
392        }
393    }
394
395    // Video
396    &.video,
397    &.article {
398        .responsive-video {
399            position: relative;
400            /* 16:9 ratio*/
401            padding-bottom: 56.25%;
402            padding-top: 0px;
403            height: 0;
404            overflow: hidden;
405
406            iframe {
407                position: absolute;
408                top: 0;
409                left: 0;
410                width: 100%;
411                height: 100%;
412                border: 0;
413            }
414        }
415    }
416
417    // Audio
418    &.audio,
419    &.article {
420        .responsive-audio iframe,
421        .responsive-audio audio {
422            width: 100%;
423            border: 0;
424        }
425    }
426
427    // Link
428    &.link {
429        background-color: $special-color;
430        min-height: 7em;
431
432        &:after {
433            border-right-color: $special-color;
434        }
435
436        &:hover {
437            background-color: $highlight-color;
438            transition: all 0.3s ease-in-out;
439
440            &:after {
441                border-right-color: $highlight-color;
442                transition: all 0.3s ease-in-out;
443            }
444        }
445
446        @include featuredImage();
447
448        a {
449            color: #fff;
450            text-decoration: none;
451            display: flex;
452            flex-direction: column;
453            justify-content: center;
454            align-items: center;
455            left: 0;
456            top: 0;
457            width: 100%;
458            height: 100%;
459            position: relative;
460            z-index: 10;
461
462            h4 {
463                font-variant: small-caps;
464                font-size: 2em;
465                margin: 2rem;
466            }
467
468            p {
469                margin: 2em;
470                margin-top: 0;
471            }
472        }
473    }
474
475    &.status {
476        .content :last-child {
477            margin-bottom: 0;
478        }
479    }
480}
481
482#comments-container {
483    margin-left: 100px;
484    padding-bottom: 1.2em;
485}
Note: See TracBrowser for help on using the repository browser.