summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjeffreytse <jeffreytse.mail@gmail.com>2021-06-17 20:54:49 +0800
committerjeffreytse <jeffreytse.mail@gmail.com>2021-06-17 20:57:56 +0800
commitc593085877967c77d1adf84ecc9df618a42dfb89 (patch)
treeecb95d2880d6f68c120b4c996d4145cbaae2229d
parent941fd3c2482e1716a9c1c1719ac27d6c3027d757 (diff)
fix: wrong default banner opacity and height
-rw-r--r--_includes/views/banner.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/_includes/views/banner.html b/_includes/views/banner.html
index eb622d7..4b5f5c0 100644
--- a/_includes/views/banner.html
+++ b/_includes/views/banner.html
@@ -16,19 +16,25 @@
{%- include functions.html func='get_banner' -%}
{% if banner_image %}
+ {% if banner_height %}
<style>
html .page-banner {
height: {{ banner_height }};
}
+ </style>
+ {% endif %}
+ {% if banner_opacity %}
+ <style>
html .page-banner .page-banner-img > *:first-child {
opacity: {{ banner_opacity }};
}
html[data-theme="dark"] .page-banner .page-banner-img > *:first-child {
- opacity: {{ banner_opacity | times: 0.6 }};
+ opacity: {{ banner_opacity | times: 0.718 }};
}
</style>
+ {% endif %}
<section class="page-banner">
<div class="page-banner-img">
<div style="background-image: url({{ banner_image }})"></div>