summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/snippets.editor.js
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2016-08-11 13:49:46 +0200
committerqsm-odoo <qsm@odoo.com>2016-08-19 17:44:28 +0200
commit74d7de465e38dc6a16aa6e395aa733ddb2e01240 (patch)
tree018307fcbd4ec201762561ac3ce6f2a8542202a0 /addons/web_editor/static/src/js/snippets.editor.js
parentee19cf08e473eb96a3b682b9ae9ad82ac5c71d6f (diff)
[REF] website_blog: refactore cover option and change opacity behavior
* Isolate website_blog style * Simplify/Correct the cover option JS * Allow to modify the cover from the blog list page * Change cover layout (use a more conventionnal odoo design with a div which is full width, which contains a container(-fluid) then its content) -> easier to customize. * Refactore code to be understandable * Change behavior of opacity filter: before this commit the cover filter was not intuitive and did not work on IE or Edge, it mixed the color of the bg-image and the bg-color in a complex way and the opacity was just controlling if the image was visible clearly or not (which led in general to ugly style if the opacity was used). Now, the color in applied *on top* of the image so that its color changes the hue of the underlying image. The opacity value controls only the opacity value of the color to mix. [MIGRATION] Note: as the opacity behavior has changed, the exact same behavior is not reproductible at all. But for the change to make a bit of sense in old databases, this should be applied for the field "cover_properties" of blog posts (with changes in layout): if cover_properties.background-color != "oe_none": cover_properties.opacity = 0.6 else: cover_properties.opacity = 1.0 - cover_properties.opacity
Diffstat (limited to 'addons/web_editor/static/src/js/snippets.editor.js')
0 files changed, 0 insertions, 0 deletions