From 0642872cc90b10103046bd8e14679044550d3615 Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Mon, 4 Sep 2017 12:40:47 -0700 Subject: [PATCH] add CSS for separate bg col+image for navbar, page, footer --- css/main.css | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/css/main.css b/css/main.css index 32d21a0..54f9b7f 100644 --- a/css/main.css +++ b/css/main.css @@ -12,6 +12,13 @@ body { color: #404040; position: relative; background: #FFF; + {% if site.page-col %} + background: {{ site.page-col }}; + {% endif %} + {% if site.page-img %} + background-image: url({{ site.page-img }}); + background-attachment: fixed; + {% endif %} } p { line-height: 1.5; @@ -104,8 +111,11 @@ img { background: #F5F5F5; border-bottom: 1px solid #EAEAEA; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; - {% if site.bgimage %} - background-image: url({{ site.bgimage }}); + {% if site.navbar-col %} + background: {{ site.navbar-col }}; + {% endif %} + {% if site.navbar-img %} + background-image: url({{ site.navbar-img }}); background-attachment: fixed; {% endif %} } @@ -269,8 +279,11 @@ footer { border-top: 1px #EAEAEA solid; margin-top: 50px; font-size: 14px; - {% if site.bgimage %} - background-image: url({{ site.bgimage }}); + {% if site.footer-col %} + background: {{ site.navbar-col }}; + {% endif %} + {% if site.footer-img %} + background-image: url({{ site.footer-img }}); background-attachment: fixed; {% endif %} }