summaryrefslogtreecommitdiff
path: root/_includes
diff options
context:
space:
mode:
Diffstat (limited to '_includes')
-rw-r--r--_includes/functions/get_banner.html5
-rw-r--r--_includes/views/banner.html7
2 files changed, 12 insertions, 0 deletions
diff --git a/_includes/functions/get_banner.html b/_includes/functions/get_banner.html
index bb19ac2..acfb4f4 100644
--- a/_includes/functions/get_banner.html
+++ b/_includes/functions/get_banner.html
@@ -26,3 +26,8 @@
{% assign name = 'banner.height' %}
{%- include functions.html func='get_value' -%}
{% assign banner_height = return %}
+
+{%- include functions.html func='log' level='debug' msg='Get banner_min_height value' -%}
+{% assign name = 'banner.min_height' %}
+{%- include functions.html func='get_value' -%}
+{% assign banner_min_height = return %}
diff --git a/_includes/views/banner.html b/_includes/views/banner.html
index d70c3a7..32bb3cd 100644
--- a/_includes/views/banner.html
+++ b/_includes/views/banner.html
@@ -25,7 +25,14 @@
{% endif %}
{% if banner_height %}
<style>
+ {% assign num = banner_height | times: 1 %}
+ {% assign unit = banner_height | replace_first: num %}
+ {% assign banner_min_height = banner_min_height | default: banner_height %}
html .page-banner {
+ height: {{ banner_height | times: 0.368 | append: unit }};
+ min-height: {{ banner_min_height }};
+ }
+ html[data-scroll-status="top"] .page-banner {
height: {{ banner_height }};
}
</style>