[FIX] website: separate main content from footer content

The edition dropzones for the bottom of the main content and the top of
the footer content are at the exact same locations.

Until commit https://github.com/odoo/odoo/commit/514722d783d504151b6b835375de036eda88279f,
when trying to drop a snippet there, there were two cases:
- The user drops a snippet above/below the location -> the snippet
  is added to the main content (as the code searches for the nearest
  dropzone, and always return the first one in the DOM if several are
  found).
- The user drops a snippet around the location, seeing a snippet preview
  -> the snippet is added to the footer content

With the mentioned commit, the second case changed: the snippet is now
also dropped in the main content. While this is more logic, there is
no way to drop a snippet in the footer anymore. Adding a border on top
of the footer content solves the problem for now (as the dropzone will
now be at 1px different location).
This commit is contained in:
qsm-odoo
2018-08-22 16:52:48 +02:00
parent 334804347a
commit 5c9e3e0060
@@ -25,6 +25,12 @@ $-theme-font: nth($o-theme-font-urls, $o-theme-font-number);
}
.o_footer {
@include o-bg-color(color('footer'));
> #footer {
// FIXME needed to prevent the dropzone at the bottom of the #wrap element
// to be at the same place of the dropzone at the top of the #footer element
border-top: 1px solid transparent;
}
}
h2, h3, h4, h5, h6 {
color: color('h2');