Files
design-themes/theme_clean/views/snippets/s_big_number.xml
T
Benoit Socias 266b35a31e [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>
2024-09-26 08:40:55 +00:00

26 lines
836 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_big_number" inherit_id="website.s_big_number">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="data-oe-shape-data">{"shape":"web_editor/Blocks/01_001"}</attribute>
<attribute name="class" add="o_cc4" remove="o_cc5" separator=" "/>
</xpath>
<!-- Shape -->
<xpath expr="//div[hasclass('o_we_shape')]" position="replace">
<div class="o_we_shape o_web_editor_Blocks_01_001"/>
</xpath>
<!-- Text -->
<xpath expr="//h2/div" position="replace" mode="inner">
90%
</xpath>
<xpath expr="//h2/following-sibling::div" position="attributes">
<attribute name="style" add="font-size: 7.75rem;" remove="font-size: 2.25rem;" separator=";"/>
</xpath>
</template>
</odoo>