Files
design-themes/theme_treehouse/views/snippets/s_numbers_list.xml
T
Chrysanthe (chgo) 8366f30360 [FIX] theme_*: fix numbers snippets layout across themes
*: nano, notes, odoo_experts, treehouse, zap

This commit reviews the occurrences of the `s_numbers_*` snippets
to align them with the new layout of these snippets.

Prior to this commit, the layout of those snippet was "broken" due to
weird structure like nested rows, .. which prevents the editor to apply
a change on the whole content.

As we reworked the layout of these snippets to fix the issue, we need to
apply these changes in themes as well.

task-4223179

closes odoo/design-themes#1012

Related: odoo/odoo#185688
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-11-20 14:17:48 +00:00

46 lines
1.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_numbers_list" inherit_id="website.s_numbers_list">
<!-- Layout -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc3" remove="o_cc1" separator=" "/>
</xpath>
<!-- Title -->
<xpath expr="//h3" position="replace" mode="inner">
Key milestones in our environmental impact
</xpath>
<!-- Paragraph -->
<xpath expr="//p" position="replace" mode="inner">
<br/>
From carbon footprint reduction to renewable energy adoption and biodiversity preservation, our key milestones reflect our commitment to creating a sustainable future for all.
</xpath>
<!-- Numbers -->
<xpath expr="(//p)[2]" position="replace" mode="inner">
<span class="h2-fs">45%</span><br/>
Reduction in carbon emissions
</xpath>
<xpath expr="(//p)[3]" position="replace" mode="inner">
<span class="h2-fs">85%</span><br/>
Waste diversion rate
</xpath>
<xpath expr="(//p)[4]" position="replace" mode="inner">
<span class="h2-fs">60%</span><br/>
Renewable Energy usage
</xpath>
<xpath expr="(//p)[5]" position="replace" mode="inner">
<span class="h2-fs">2 Million</span><br/>
Trees Planted
</xpath>
<xpath expr="(//p)[6]" position="replace" mode="inner">
<span class="h2-fs">1.2 Billion</span><br/>
Liters of water saved
</xpath>
<xpath expr="(//p)[7]" position="replace" mode="inner">
<span class="h2-fs">500,000</span><br/>
Tons of materials recycled
</xpath>
</template>
</odoo>