manual: make images floatable

This commit is contained in:
BTS committed 2019-09-16 17:46:59 -04:00
1 parent 88c42ee6bd
commit 18af3dce74
2 files changed
+24 -1

No files matched your search

+12
View File
@@ -84,4 +84,16 @@ iframe {
.video-overlay:hover {
background:rgba(255,50,50,0.9);
}
.is-clearfix {
clear:both;
}
.is-pulled-left {
float: left;
}
.is-pulled-right {
float: right;
}
+12 -1
View File
@@ -1,5 +1,16 @@
{% if pull %}
{% if pull == "left" %}
{% set float = "is-pulled-left" %}
{% elif pull == "right" %}
{% set float = "is-pulled-right" %}
{% else %}
{% set float = "is-pulled-over-there" %}
{% endif %}
{% else %}
{% set float = " " %}
{% endif %}
<img
class="scaled-image"
class="scaled-image {{float}}"
srcset="{{name}}-SDPI.png 770w,
{{name}}.png 771w"
sizes="(min-width: 1920px) 771px, 770px"