aboutsummaryrefslogtreecommitdiff
path: root/templates/shortcodes/imagehover.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/shortcodes/imagehover.html')
-rw-r--r--templates/shortcodes/imagehover.html41
1 files changed, 0 insertions, 41 deletions
diff --git a/templates/shortcodes/imagehover.html b/templates/shortcodes/imagehover.html
deleted file mode 100644
index 99dd4e4..0000000
--- a/templates/shortcodes/imagehover.html
+++ /dev/null
@@ -1,41 +0,0 @@
-{%- set_global bg = " " %}
-{%- set_global bgname = " " %}
-{%- for source in sources %}
- {%- set sourcename = source | split(pat=".") | first %}
- {%- if loop.first %}
- {%- set_global bg = source %}
- {%- set_global bgname = source | split(pat=".") | first %}
- {%- else %}
-
- <div id="{{ sourcename }}">## {{ sourcename }} </div>
- <div id="{{ sourcename }}image" alt="{{ sourcename }}"> </div>
-
- {%- endif %}
-{%- endfor %}
-
-{%- if w and h and p %}
- {%- set padding = h / w * p %}
-{%- elif w and h %}
- {%- set padding = h / w * 50 %}
-{%- else %}
- {%- set padding = 50 %}
-{%- endif %}
-
-<style>
- {%- for source in sources %}
- {%- set sourcename = source | split(pat=".") | first %}
- {%- if not loop.first %}
- #{{ sourcename | safe }}image {
- background-image: url('{{ get_url(path="/", trailing_slash=false) }}{{ page.path | safe }}{{ bg | safe }}');
- background-size: contain;
- background-repeat: no-repeat;
- width: {{ p | default(value=50) }}%;
- height: 0;
- padding-top: {{ padding }}%;
- }
- #{{ sourcename | safe }}image:hover {
- background-image: url('{{ get_url(path="/", trailing_slash=false) }}{{ page.path | safe }}{{ source | safe }}');
- }
- {%- endif %}
- {%- endfor %}
-</style>