adds background pattern (#242)
* adds YAML section bg image * adds bgimage * adds bgimage config * fixes layout for processed css file
This commit is contained in:
parent
fcbfbe6a13
commit
4b39f58891
@ -7,6 +7,10 @@
|
|||||||
url: "http://username.github.io"
|
url: "http://username.github.io"
|
||||||
baseurl: ""
|
baseurl: ""
|
||||||
|
|
||||||
|
# If you want a background image you can add it here.
|
||||||
|
bgimage: "/img/bgimage.png"
|
||||||
|
|
||||||
|
|
||||||
# If you are building a GitHub project page then use these settings:
|
# If you are building a GitHub project page then use these settings:
|
||||||
#url: "http://username.github.io/projectname"
|
#url: "http://username.github.io/projectname"
|
||||||
#baseurl: "/projectname"
|
#baseurl: "/projectname"
|
||||||
|
12
css/main.css
12
css/main.css
@ -1,3 +1,7 @@
|
|||||||
|
---
|
||||||
|
layout: null
|
||||||
|
---
|
||||||
|
|
||||||
@import url("pygment_highlights.css");
|
@import url("pygment_highlights.css");
|
||||||
|
|
||||||
/* --- General --- */
|
/* --- General --- */
|
||||||
@ -100,6 +104,10 @@ 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 %}
|
||||||
|
background-image: url({{ site.bgimage }});
|
||||||
|
background-attachment: fixed;
|
||||||
|
{% endif %}
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-custom .nav li a {
|
.navbar-custom .nav li a {
|
||||||
@ -261,6 +269,10 @@ 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 %}
|
||||||
|
background-image: url({{ site.bgimage }});
|
||||||
|
background-attachment: fixed;
|
||||||
|
{% endif %}
|
||||||
}
|
}
|
||||||
|
|
||||||
footer a {
|
footer a {
|
||||||
|
BIN
img/bgimage.png
Normal file
BIN
img/bgimage.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
Loading…
Reference in New Issue
Block a user