From 18e1ecd019c0be8c5cb2739de5d5a45b8be92bbb Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Thu, 17 Nov 2016 16:42:22 +0100 Subject: [PATCH] [FIX] website: stop making parallax content disappear on save Depending on the context, the s_parallax snippet content was not showing after save. This was because the HTML is prettyfied on save and so spaces are inserted around the .oe_structure, making it break over the next line. This commit removed the vertical middle alignment of the .oe_structure block (so back like it was before v10.0), allowing to fix the problem. --- .../website/static/src/less/website.snippets.less | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/addons/website/static/src/less/website.snippets.less b/addons/website/static/src/less/website.snippets.less index fd8a4d5073d..7b941acda2f 100644 --- a/addons/website/static/src/less/website.snippets.less +++ b/addons/website/static/src/less/website.snippets.less @@ -406,21 +406,6 @@ div.carousel { .s_parallax { min-height: 200px; - - > .oe_structure { - display: inline-block; - width: 100%; - vertical-align: middle; - } - - &::before { - content: ""; - display: inline-block; - width: 0; - min-height: inherit; - height: 100%; - vertical-align: middle; - } } .s_big_message { // TO REMOVE IN MASTER > 10.0