diff options
author | tfabritz <t.fabritz@gmail.com> | 2022-04-28 19:48:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-28 19:48:39 +0300 |
commit | 74065c9c951193333d39aabc2045cc4fac10dc9b (patch) | |
tree | 1733220b6000075c4b2e14496949838f01aab032 /exampleSite | |
parent | e2b79aa90d57369b01556f36920d122fd3a337f5 (diff) |
Make bg image configurable (#84)v6.4.0
* Make bg image configurable
* fix prod config
* override bg on custom theme scss
Co-authored-by: Curtis Timson <curt@live.co.uk>
Diffstat (limited to 'exampleSite')
-rw-r--r-- | exampleSite/config-prod.toml | 4 | ||||
-rw-r--r-- | exampleSite/config.toml | 1 | ||||
-rw-r--r-- | exampleSite/resources/_gen/assets/scss/scss/main.scss_12bfed357d24ca59ff7ceeb30292a324.content | 13 |
3 files changed, 13 insertions, 5 deletions
diff --git a/exampleSite/config-prod.toml b/exampleSite/config-prod.toml index c345fb9..93d0bdf 100644 --- a/exampleSite/config-prod.toml +++ b/exampleSite/config-prod.toml @@ -6,11 +6,15 @@ googleanalytics = "" disqusShortname = "" disableKinds = ["taxonomy", "taxonomyTerm", "section"] + + # [params] # set below parameter to define a favicon # favicon = "favicon.ico" # set to change date format # dateFormat = "2.1.2006" + # backgroundPath = "images/bg.jpg" + # Below parameters can be set to override default post settings # [params.posts] # folderName = "post" diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 18a8c22..a6076bd 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -11,6 +11,7 @@ disableKinds = ["taxonomy", "taxonomyTerm", "section"] # favicon = "favicon.ico" # set to change date format # dateFormat = "2.1.2006" + # backgroundPath = "images/bg.jpg" # Below parameters can be set to override default post settings # [params.posts] diff --git a/exampleSite/resources/_gen/assets/scss/scss/main.scss_12bfed357d24ca59ff7ceeb30292a324.content b/exampleSite/resources/_gen/assets/scss/scss/main.scss_12bfed357d24ca59ff7ceeb30292a324.content index 7e6a5e1..cd714f0 100644 --- a/exampleSite/resources/_gen/assets/scss/scss/main.scss_12bfed357d24ca59ff7ceeb30292a324.content +++ b/exampleSite/resources/_gen/assets/scss/scss/main.scss_12bfed357d24ca59ff7ceeb30292a324.content @@ -2038,10 +2038,10 @@ table.alt tbody tr td { height: 100%; background-color: #212931; background-image: url("../../images/overlay.png"), linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url("../../images/bg.jpg"); - background-size: auto, auto, 100% auto; - background-position: center, center, top center; - background-repeat: repeat, no-repeat, no-repeat; - background-attachment: scroll, scroll, scroll; + background-size: auto, auto, 100% auto; + background-position: center, center, top center; + background-repeat: repeat, no-repeat, no-repeat; + background-attachment: scroll, scroll, scroll; z-index: -1; } #wrapper > .bg.fixed { position: fixed; @@ -2070,7 +2070,7 @@ table.alt tbody tr td { opacity: 1; } @media screen and (orientation: portrait) { #wrapper > .bg { - background-size: auto, auto, auto 175%; } } + background-size: auto, auto, auto 175%; } } /* Intro */ #intro { color: #ffffff; @@ -2979,4 +2979,7 @@ table.alt tbody tr td { img { max-width: 100%; } +#wrapper > .bg { + background-image: url("../../images/overlay.png"), linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url("../../images/bg.jpg"); } + /*# sourceMappingURL=main.css.map */
\ No newline at end of file |