changeset 104:b12de12e2e5b

css (blog): add a background image if --bg-img custom property is set (in dynamic style)
author Goffi <goffi@goffi.org>
date Mon, 22 Jan 2018 08:49:49 +0100
parents ff7bd09911f7
children 490114e3d9e2
files default/static/blog.css
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;