diff options
| author | Benjamin Vray <bvr@odoo.com> | 2020-02-03 14:35:16 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2020-07-17 11:28:11 +0000 |
| commit | ef9cc134b649852a9df81fd3a4c16cb4aee43aa7 (patch) | |
| tree | fe89a7d57c6415d3a2db16620150cbcad592d9e3 /addons/website/static/src/snippets/s_image_gallery/000.scss | |
| parent | 7a36eee043b70507ba8af554d286beb1626e81ef (diff) | |
[IMP] website: review gallery snippet
Review the gallery snippet. It has been improved in multiple ways.
Added new options, etc.
Part of https://github.com/odoo/odoo/pull/45096
task-2162952
Diffstat (limited to 'addons/website/static/src/snippets/s_image_gallery/000.scss')
| -rw-r--r-- | addons/website/static/src/snippets/s_image_gallery/000.scss | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/addons/website/static/src/snippets/s_image_gallery/000.scss b/addons/website/static/src/snippets/s_image_gallery/000.scss index 9b5274f6673..a99bc86fcd2 100644 --- a/addons/website/static/src/snippets/s_image_gallery/000.scss +++ b/addons/website/static/src/snippets/s_image_gallery/000.scss @@ -1,5 +1,5 @@ -.o_gallery { +.o_gallery:not([data-vcss]) { &.o_grid, &.o_masonry { .img { width: 100%; @@ -95,14 +95,6 @@ > div:first-child { height: 100%; } - } - .carousel-inner .item img { - max-width: none; - } -} -.o_gallery, -.modal-body { - &.o_slideshow { .carousel { height: 100%; @@ -154,4 +146,10 @@ } } } + .carousel-inner .item img { + max-width: none; + } } + +// Note: the s_gallery_lightbox is always using the right dom and classes of the +// most recent version of the snippet as it is generated by JS after page load. |
