[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
This commit is contained in:
qsm-odoo
2019-01-24 11:30:30 +00:00
parent 1388b7f0d8
commit d7acfdae2b
+13
View File
@@ -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;
}