diff options
| author | Dharmraj Jhala <dja@odoo.com> | 2017-05-29 14:44:34 +0530 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2018-04-03 16:25:18 +0200 |
| commit | 3d6f9b5e0ba12ab23bf2aa5e8da7f3fecb7291ea (patch) | |
| tree | 51a43db63ccd719a0f363c919fb3d9498bb7aded /addons/website/static/src/less | |
| parent | 34c7fe2e77e67243e690acb9dd867436f7ca2625 (diff) | |
[IMP] website, website_sale: improve magnify feature
Move zoom next the original picture
Disable it if same img and max size with ratio < 1.5
Allow to enable zoom automatically
...
Task-33499
Co-authored-by: Jérémy Kersten <jke@odoo.com>
Diffstat (limited to 'addons/website/static/src/less')
| -rw-r--r-- | addons/website/static/src/less/website.zoomodoo.less | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/addons/website/static/src/less/website.zoomodoo.less b/addons/website/static/src/less/website.zoomodoo.less index da90921b1c2..3d855c96a96 100644 --- a/addons/website/static/src/less/website.zoomodoo.less +++ b/addons/website/static/src/less/website.zoomodoo.less @@ -17,19 +17,18 @@ z-index: 100; overflow: hidden; background: #FFF; + top: 0; + width: 100%; + height: 100%; + img { + max-width: 500%; + } } .zoomodoo-hover .zoomodoo-flyout { - top: 0; left: 0; - width: 100%; - height: 100%; } .zoomodoo-next .zoomodoo-flyout { - top: 0; left: 100%; - width: 100%; - height: 100%; - margin-left: 20px; }
\ No newline at end of file |
