[FIX] website: fix o_footer_scrolltop default color definition
This commit fix a minor issue caused by the assumption that 'copyright'
block colors would have been always defined by default.
Indeed with a48a30f we introduced the possibility to have "transparent"
copyright blocks, invalidating `$-copyright-color`computation when
palettes don't specify a color.
This commit also handles the case of transparent footer, mixing with the
body color.
task-2656337
X-original-commit: 1b9fac8de08f042561a14b9b6ee5ae51b277705d
Part-of: odoo/odoo#77857
Co-authored-by: qsm-odoo <qsm@odoo.com>
This commit is contained in:
committed by
qsm-odoo
co-authored by
qsm-odoo
parent
6f4b78764a
commit
67bd29fb0f
@@ -1320,8 +1320,9 @@ span.list-inline-item.o_add_language:last-child {
|
||||
// Footer scrolltop button
|
||||
@if o-website-value('footer-scrolltop') {
|
||||
#o_footer_scrolltop {
|
||||
$-footer-color: o-color('footer-custom') or o-color('footer');
|
||||
$-copyright-color: o-color('copyright-custom') or o-color('copyright');
|
||||
$-footer-color: o-color('footer-custom') or o-color('footer') or rgba(0, 0, 0, 0);
|
||||
$-footer-color: mix(rgba($-footer-color, 1.0), $body-bg, percentage(alpha($-footer-color)));
|
||||
$-copyright-color: o-color('copyright-custom') or o-color('copyright') or rgba(0, 0, 0, 0);
|
||||
$-copyright-color: mix(rgba($-copyright-color, 1.0), $-footer-color, percentage(alpha($-copyright-color)));
|
||||
|
||||
box-sizing: content-box;
|
||||
@@ -1329,8 +1330,7 @@ span.list-inline-item.o_add_language:last-child {
|
||||
height: 3rem;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
@include o-apply-colors('footer', $with-extras: false, $background: $-footer-color);
|
||||
@include o-apply-colors('footer-custom', $with-extras: false, $background: $-footer-color);
|
||||
@include o-apply-colors($-footer-color, $with-extras: false, $background: $-footer-color);
|
||||
text-decoration: none;
|
||||
|
||||
@if $-footer-color == $-copyright-color {
|
||||
|
||||
Reference in New Issue
Block a user