aboutsummaryrefslogtreecommitdiff
path: root/templates/shortcodes
diff options
context:
space:
mode:
authorJieiku2022-05-31 01:11:55 -0700
committerJieiku2022-05-31 01:11:55 -0700
commita7305f7eeb72df69e80f6a4a6cdab48dceb6f348 (patch)
tree03c527b8c08682d5dc92deea70da16b177dadc38 /templates/shortcodes
parent92a95518b6649a7ed427d486a41935fbd041a9c2 (diff)
downloadabridge-a7305f7eeb72df69e80f6a4a6cdab48dceb6f348.tar.gz
abridge-a7305f7eeb72df69e80f6a4a6cdab48dceb6f348.tar.bz2
abridge-a7305f7eeb72df69e80f6a4a6cdab48dceb6f348.zip
ImageHover Shortcode, Font Resources
Diffstat (limited to 'templates/shortcodes')
-rw-r--r--templates/shortcodes/imagehover.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/templates/shortcodes/imagehover.html b/templates/shortcodes/imagehover.html
new file mode 100644
index 0000000..350506c
--- /dev/null
+++ b/templates/shortcodes/imagehover.html
@@ -0,0 +1,26 @@
+{%- set_global bg = " " %}
+{%- for source in sources %}
+ {%- if not loop.first %}
+ ## {{ source | safe }}
+ <div id="hoverimage{{loop.index}}"> </div>
+ {%- else %}
+ {% set_global bg = source %}
+ {%- endif %}
+{%- endfor %}
+
+<style>
+ {%- for source in sources %}
+ {%- if not loop.first %}
+ #hoverimage{{loop.index}} {
+ background-image: url('{{ get_url(path="/", trailing_slash=false) }}{{ page.path | safe }}{{ source | safe }}');
+ width: 560px;
+ height: 650px;
+ }
+ #hoverimage{{loop.index}}:hover {
+ background-image: url('{{ get_url(path="/", trailing_slash=false) }}{{ page.path | safe }}{{ bg | safe }}');
+ width: 560px;
+ height: 650px;
+ }
+ {%- endif %}
+ {%- endfor %}
+</style>