Commit bb52852b authored by Jakob Moser's avatar Jakob Moser
Browse files

Add nasty hack to make background images in list work

parent c0f3dd2f
Loading
Loading
Loading
Loading
+26 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@
 * Author: personads :: Maximilian Müller-Eberstein (ursprüngliche Version & Design); Jakob Moser (Code-Anpassungen und Responsiveness)
 * Author URI: https://personads.me/
 *
 * Version: 1.00-snapshot-35
 * Version: 1.00-snapshot-36
 * 
 * License: GNU General Public License v3.0
 * License URI: https://www.gnu.org/licenses/gpl-3.0.html
@@ -488,6 +488,31 @@ main.list footer time {
    opacity: 0.5;
}

main.list article .content {
    position: relative;
    z-index: 1;
}

main.list article > header {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-size: 100%;
    background-position-y: center;
}

/* Only apply background-color and blending to headers that have a background-image set, otherwise all posts would have grey background */
main.list article header[style*="background-image"] {
    background-blend-mode: overlay;
    background-color: #e8e8e8;
}

main.list article > header h1 {
    left: 1.1em;
}

.list-meta > h1::before {
    display: inline-block;
    width: 1em;