summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/scss/web_editor.frontend.scss
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2020-03-04 16:09:47 +0000
committerqsm-odoo <qsm@odoo.com>2020-08-10 14:27:00 +0000
commit42e1d4ca600b7a5c56d4739a150628310974b1a9 (patch)
tree216d23a1211b5b9d94802c57331f8e2643f62b49 /addons/web_editor/static/src/scss/web_editor.frontend.scss
parentc531cb05916d799b660b2eb6f86dc3b340817905 (diff)
[IMP] website, *: enable the parallax option for all snippets
*: web_editor, website_blog Unfortunately, this feature revealed a new batch of flaws in the editor widgets system so some hacks were made to make it work. We will always have the time to improve the pure technical side later. This commit also separates the notion of color filter from the notion of parallax. A color filter can now be applied independantly, when there is either a background image or a background video. Applying a color filter on top of a background video is actually a new feature. Applying a color filter on top of a background image is actually now achievable by two different ways: this new color filter layer or by applying the color transformation on the image itself via the related option. Depending on the user case, both could make sense at the same time, but more importantly: having a CSS color filter is useful for using those for default Odoo content (e.g. like the current contact us page where we use a cover banner with an image with a black filter on top of it: doing that without CSS color filter would mean to alter the image directly which would not be ok when the user changes the image). Also, sometimes you want the unfiltered image on a page and the exact same one but filtered on another (for example: forum images). Note: this commit also "fixes" an issue: the optimization feature for images when parallax was enabled was not available before. Part of https://github.com/odoo/odoo/pull/47313 task-46147
Diffstat (limited to 'addons/web_editor/static/src/scss/web_editor.frontend.scss')
-rw-r--r--addons/web_editor/static/src/scss/web_editor.frontend.scss11
1 files changed, 1 insertions, 10 deletions
diff --git a/addons/web_editor/static/src/scss/web_editor.frontend.scss b/addons/web_editor/static/src/scss/web_editor.frontend.scss
index 172ab7fbe22..37ce7b974eb 100644
--- a/addons/web_editor/static/src/scss/web_editor.frontend.scss
+++ b/addons/web_editor/static/src/scss/web_editor.frontend.scss
@@ -33,16 +33,8 @@
}
// Background shapes
-[data-oe-shape-data] > * {
- position: relative;
-}
-
.o_we_shape {
- @include o-position-absolute(0,0,0,0);
- // position: absolute needs to be !important otherwise
- // some classes (video background) override it with position: relative
- position: absolute !important;
- background-repeat: no-repeat;
+ @extend %o-we-background-layer;
@each $module, $shapes in $o-bg-shapes {
@each $shape, $style in $shapes {
@@ -68,7 +60,6 @@
}
}
}
-
.o_we_flip_x {
transform: scaleX(-1);
}