diff options
| author | Benjamin Vray <bvr@odoo.com> | 2020-02-13 09:17:39 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2020-07-17 11:28:11 +0000 |
| commit | 316ceaf4d8e27d7e4ea4e95365a16800fa4884d1 (patch) | |
| tree | d71b2d12a24ac3b7fdb163efba668e8a5b6b7061 /addons/website/static/src/snippets | |
| parent | f626130df943e5e0761ce80b1d167734b0ab572b (diff) | |
[IMP] website: add dots indicators in gallery snippet options
Add dots indicators in gallery snippet options.
Part of https://github.com/odoo/odoo/pull/45096
task-2162952
Diffstat (limited to 'addons/website/static/src/snippets')
| -rw-r--r-- | addons/website/static/src/snippets/s_image_gallery/000.js | 2 | ||||
| -rw-r--r-- | addons/website/static/src/snippets/s_image_gallery/001.scss | 21 |
2 files changed, 23 insertions, 0 deletions
diff --git a/addons/website/static/src/snippets/s_image_gallery/000.js b/addons/website/static/src/snippets/s_image_gallery/000.js index 7d1ee4ea386..94e31288442 100644 --- a/addons/website/static/src/snippets/s_image_gallery/000.js +++ b/addons/website/static/src/snippets/s_image_gallery/000.js @@ -100,11 +100,13 @@ const GallerySliderWidget = publicWidget.Widget.extend({ if (page <= 0) { self.$prev.detach(); } else { + self.$prev.removeClass('d-none'); self.$prev.prependTo(self.$indicator); } if (page >= nbPages - 1) { self.$next.detach(); } else { + self.$next.removeClass('d-none'); self.$next.appendTo(self.$indicator); } } diff --git a/addons/website/static/src/snippets/s_image_gallery/001.scss b/addons/website/static/src/snippets/s_image_gallery/001.scss index ef28b5c6d0a..9dfb81902db 100644 --- a/addons/website/static/src/snippets/s_image_gallery/001.scss +++ b/addons/website/static/src/snippets/s_image_gallery/001.scss @@ -185,6 +185,27 @@ } } } + &.s_image_gallery_indicators_dots { + .carousel { + ul.carousel-indicators { + height: 40px; + margin: auto; + + li { + max-width: 8px; + max-height: 8px; + margin: 0 6px; + border-radius: 10px; + background-color: $black; + background-image: none !important; + + &:not(.active) { + opacity: .4; + } + } + } + } + } @extend %image-gallery-slideshow-styles; } |
