[FIX] website: restore background sizing of fixed parallax backgrounds

Fixed backgrounds are disabled when using a mobile/tablet device,
which is not a big deal but, on some of them (iOS...), defining the
background as fixed breaks the background-size/position props.
So we enable this only for >= XL devices.

We may want to find a better alternative for future versions.

opw-2055073

closes odoo/odoo#36187

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
qsm-odoo
2019-08-28 12:39:38 +00:00
parent 5bb4314740
commit 412117c2a7
+8 -2
View File
@@ -847,8 +847,14 @@ table.table_desc tr td {
background-color: inherit;
}
}
&.s_parallax_is_fixed > .s_parallax_bg {
background-attachment: fixed;
@include media-breakpoint-up(xl) {
// Fixed backgrounds are disabled when using a mobile/tablet device,
// which is not a big deal but, on some of them (iOS...), defining the
// background as fixed breaks the background-size/position props.
// So we enable this only for >= XL devices.
&.s_parallax_is_fixed > .s_parallax_bg {
background-attachment: fixed;
}
}
}