[FIX] theme_*: fix duplicate inline styles

*: avantgarde, beauty, bistro, buzzy, clean, cobalt, graphene, kea, yes

This commit adapts the style attribute's add/remove operations in order
to avoid ending up with the same property defined several times.

task-4206845

Part-of: odoo/design-themes#933
Related: odoo/odoo#181194
Signed-off-by: Alice Gaudon (agau) <agau@odoo.com>
This commit is contained in:
Benoit Socias
2024-09-24 14:48:00 +02:00
parent 6d1a98775e
commit 266b35a31e
9 changed files with 8 additions and 11 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
<template id="s_cover" inherit_id="website.s_cover">
<!-- Parallax -->
<xpath expr="//*[hasclass('s_parallax_bg')]" position="attributes">
<attribute name="style" add="background-position: 50% 100%;" remove="background-position: 50% 0;" separator=";"/>
<attribute name="style" add="background-position: 50% 100%;" remove="background-position: 50% 75%;" separator=";"/>
</xpath>
<!-- Title -->
<xpath expr="//h1" position="replace" mode="inner">