summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2019-01-24 11:24:27 +0000
committerqsm-odoo <qsm@odoo.com>2019-01-24 11:30:30 +0000
commitd7acfdae2b2d2feb320cb509b30b67082f80cfcd (patch)
tree307f8f7df543b69adccf4a97709a3841c995cc96
parent1388b7f0d8a2a66a5e96fc53bebc536e20a15f04 (diff)
[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
-rw-r--r--addons/portal/static/src/scss/portal.scss13
1 files changed, 13 insertions, 0 deletions
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;
}