[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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user