diff --git a/doc/user/sass/book.scss b/doc/user/sass/book.scss index d39d71db1..4f174b73b 100644 --- a/doc/user/sass/book.scss +++ b/doc/user/sass/book.scss @@ -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; } \ No newline at end of file diff --git a/doc/user/templates/shortcodes/image.html b/doc/user/templates/shortcodes/image.html index b75a087a0..b0159363e 100644 --- a/doc/user/templates/shortcodes/image.html +++ b/doc/user/templates/shortcodes/image.html @@ -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 %}