# HG changeset patch # User Goffi # Date 1516607389 -3600 # Node ID b12de12e2e5b33cc49eef31e65cec5e995cde147 # Parent ff7bd09911f77b72a7515c56c932db6856723405 css (blog): add a background image if --bg-img custom property is set (in dynamic style) diff -r ff7bd09911f7 -r b12de12e2e5b default/static/blog.css --- a/default/static/blog.css Mon Jan 22 08:49:49 2018 +0100 +++ b/default/static/blog.css Mon Jan 22 08:49:49 2018 +0100 @@ -114,6 +114,9 @@ text-decoration: None; color: inherit; font-variant: small-caps; + background: rgba(200,200,200,0.6); + border-radius: 0.5em; + padding: 0.2em; } .bottom_links a:hover { @@ -209,6 +212,7 @@ border: none; border-radius: 0; padding: 0; + min-height: 0; } /*** comments ***/ @@ -277,6 +281,14 @@ /*** media queries ***/ @media (min-width: 500px) { + /*** general ***/ + + #main_area { + background-image: var(--bg-img); + background-repeat: no-repeat; + background-size: cover; + } + article.box { width: 80%; border-style: solid solid none solid;