diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-01-17 19:05:17 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-01-17 19:05:17 +0100 |
commit | cd1d2c3d612d3141e7b5ce37167bfe162df5abfc (patch) | |
tree | 30a90c207ab23318dd2886d341641f49d28a9f05 | |
parent | 93371f17b16f55f5a9ac219d148e928b7831b88f (diff) | |
download | Ishtar-cd1d2c3d612d3141e7b5ce37167bfe162df5abfc.tar.bz2 Ishtar-cd1d2c3d612d3141e7b5ce37167bfe162df5abfc.zip |
Window: better layout for images
-rw-r--r-- | ishtar_common/templates/ishtar/blocks/window_image.html | 2 | ||||
-rw-r--r-- | scss/custom.scss | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/ishtar_common/templates/ishtar/blocks/window_image.html b/ishtar_common/templates/ishtar/blocks/window_image.html index 62623e89d..66e6a9e2f 100644 --- a/ishtar_common/templates/ishtar/blocks/window_image.html +++ b/ishtar_common/templates/ishtar/blocks/window_image.html @@ -25,7 +25,7 @@ <div id="lightgallery-{{window_id}}"> {% if item.main_image %}{% with image=item.main_image %} <a data-sub-html="#lightgallery-{{window_id}}-caption-0" - href="{{image.image.url}}"> + href="{{image.image.url}}" class="window-main-image"> <img class='card-img-top' src="{{BASE_URL}}{{image.thumbnail.url}}"> </a> {% endwith %}{% endif %} diff --git a/scss/custom.scss b/scss/custom.scss index 5b5bb0a9d..c074656fc 100644 --- a/scss/custom.scss +++ b/scss/custom.scss @@ -554,12 +554,21 @@ ul.compact{ width: 200px; } +.window-main-image { + height:300px; + display: block; +} + .thumb-image{ height: 200px; +} + +.window-main-image, .thumb-image{ position: relative; overflow: hidden; } +.window-main-image img, .thumb-image img{ display: inline-block; max-width: 100%; |