[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>
This commit is contained in:
Chrysanthe (chgo)
2024-11-18 10:36:01 +01:00
parent 3da633d789
commit 8366f30360
5 changed files with 57 additions and 74 deletions
@@ -16,40 +16,28 @@
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="//span[hasclass('h2-fs')]" position="replace" mode="inner">
45%
</xpath>
<xpath expr="(//p)[2]" position="replace" mode="inner">
<span class="h2-fs">45%</span><br/>
Reduction in carbon emissions
</xpath>
<xpath expr="(//span[hasclass('h2-fs')])[2]" position="replace" mode="inner">
2 Million
</xpath>
<xpath expr="(//p)[3]" position="replace" mode="inner">
Trees Planted
</xpath>
<xpath expr="(//span[hasclass('h2-fs')])[3]" position="replace" mode="inner">
85%
</xpath>
<xpath expr="(//p)[4]" position="replace" mode="inner">
<span class="h2-fs">85%</span><br/>
Waste diversion rate
</xpath>
<xpath expr="(//span[hasclass('h2-fs')])[4]" position="replace" mode="inner">
1.2 Billion
</xpath>
<xpath expr="(//p)[5]" position="replace" mode="inner">
Liters of water saved
</xpath>
<xpath expr="(//span[hasclass('h2-fs')])[5]" position="replace" mode="inner">
60%
</xpath>
<xpath expr="(//p)[6]" position="replace" mode="inner">
<xpath expr="(//p)[4]" position="replace" mode="inner">
<span class="h2-fs">60%</span><br/>
Renewable Energy usage
</xpath>
<xpath expr="(//span[hasclass('h2-fs')])[6]" position="replace" mode="inner">
500,000
<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>