manual: make images floatable
This commit is contained in:
1 parent
88c42ee6bd
commit
18af3dce74
2 files changed
+24
-1
No files matched your search
@@ -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;
|
||||
}
|
||||
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user