Skip to content

Commit 0642872

Browse files
authored
add CSS for separate bg col+image for navbar, page, footer
1 parent 4b39f58 commit 0642872

1 file changed

Lines changed: 17 additions & 4 deletions

File tree

css/main.css

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ body {
1212
color: #404040;
1313
position: relative;
1414
background: #FFF;
15+
{% if site.page-col %}
16+
background: {{ site.page-col }};
17+
{% endif %}
18+
{% if site.page-img %}
19+
background-image: url({{ site.page-img }});
20+
background-attachment: fixed;
21+
{% endif %}
1522
}
1623
p {
1724
line-height: 1.5;
@@ -104,8 +111,11 @@ img {
104111
background: #F5F5F5;
105112
border-bottom: 1px solid #EAEAEA;
106113
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
107-
{% if site.bgimage %}
108-
background-image: url({{ site.bgimage }});
114+
{% if site.navbar-col %}
115+
background: {{ site.navbar-col }};
116+
{% endif %}
117+
{% if site.navbar-img %}
118+
background-image: url({{ site.navbar-img }});
109119
background-attachment: fixed;
110120
{% endif %}
111121
}
@@ -269,8 +279,11 @@ footer {
269279
border-top: 1px #EAEAEA solid;
270280
margin-top: 50px;
271281
font-size: 14px;
272-
{% if site.bgimage %}
273-
background-image: url({{ site.bgimage }});
282+
{% if site.footer-col %}
283+
background: {{ site.navbar-col }};
284+
{% endif %}
285+
{% if site.footer-img %}
286+
background-image: url({{ site.footer-img }});
274287
background-attachment: fixed;
275288
{% endif %}
276289
}

0 commit comments

Comments
 (0)