add CSS for separate bg col+image for navbar, page, footer
This commit is contained in:
parent
4b39f58891
commit
0642872cc9
21
css/main.css
21
css/main.css
@ -12,6 +12,13 @@ body {
|
|||||||
color: #404040;
|
color: #404040;
|
||||||
position: relative;
|
position: relative;
|
||||||
background: #FFF;
|
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 {
|
p {
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
@ -104,8 +111,11 @@ img {
|
|||||||
background: #F5F5F5;
|
background: #F5F5F5;
|
||||||
border-bottom: 1px solid #EAEAEA;
|
border-bottom: 1px solid #EAEAEA;
|
||||||
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||||
{% if site.bgimage %}
|
{% if site.navbar-col %}
|
||||||
background-image: url({{ site.bgimage }});
|
background: {{ site.navbar-col }};
|
||||||
|
{% endif %}
|
||||||
|
{% if site.navbar-img %}
|
||||||
|
background-image: url({{ site.navbar-img }});
|
||||||
background-attachment: fixed;
|
background-attachment: fixed;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
}
|
}
|
||||||
@ -269,8 +279,11 @@ footer {
|
|||||||
border-top: 1px #EAEAEA solid;
|
border-top: 1px #EAEAEA solid;
|
||||||
margin-top: 50px;
|
margin-top: 50px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
{% if site.bgimage %}
|
{% if site.footer-col %}
|
||||||
background-image: url({{ site.bgimage }});
|
background: {{ site.navbar-col }};
|
||||||
|
{% endif %}
|
||||||
|
{% if site.footer-img %}
|
||||||
|
background-image: url({{ site.footer-img }});
|
||||||
background-attachment: fixed;
|
background-attachment: fixed;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user