From d7acfdae2b2d2feb320cb509b30b67082f80cfcd Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Thu, 24 Jan 2019 11:24:27 +0000 Subject: [PATCH] [FIX] portal: restore BS3 clearing system for main frontend containers BS3 used to add ::before and ::after elements on all containers so that margins and floats are cleared inside containers. As lots of current odoo layouts may rely on this for some alignments, this is restored (at least for a while) here only for main containers of the frontend. In master, we should use proper layouts to avoid the need of this. task-1889238 closes odoo/odoo#30510 --- addons/portal/static/src/scss/portal.scss | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/addons/portal/static/src/scss/portal.scss b/addons/portal/static/src/scss/portal.scss index 574ec25e607..9dee5d329ae 100644 --- a/addons/portal/static/src/scss/portal.scss +++ b/addons/portal/static/src/scss/portal.scss @@ -155,6 +155,19 @@ hr { .container-fluid .container-fluid { @extend %o-double-container-no-padding; } +#wrap { + > .container, > .container-fluid { + // BS3 used to do this on all containers so that margins and floats are + // cleared inside containers. As lots of current odoo layouts may rely + // on this for some alignments, this is restored (at least for a while) + // here only for main containers of the frontend. + &::before, &::after { + content: ""; + display: table; + clear: both; + } + } +} [class^="col-lg-"] { min-height: 24px; }