diff options
author | jeffreytse <jeffreytse.mail@gmail.com> | 2021-06-17 20:54:49 +0800 |
---|---|---|
committer | jeffreytse <jeffreytse.mail@gmail.com> | 2021-06-17 20:57:56 +0800 |
commit | c593085877967c77d1adf84ecc9df618a42dfb89 (patch) | |
tree | ecb95d2880d6f68c120b4c996d4145cbaae2229d /_includes/views/banner.html | |
parent | 941fd3c2482e1716a9c1c1719ac27d6c3027d757 (diff) |
fix: wrong default banner opacity and height
Diffstat (limited to '_includes/views/banner.html')
-rw-r--r-- | _includes/views/banner.html | 8 |
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> |