From 18af3dce744334fb7ebb7f92da86aa74c6bbe06e Mon Sep 17 00:00:00 2001 From: BTS Date: Mon, 16 Sep 2019 17:46:59 -0400 Subject: [PATCH] manual: make images floatable --- doc/user/sass/book.scss | 12 ++++++++++++ doc/user/templates/shortcodes/image.html | 13 ++++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) 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 %}