Files
design-themes/theme_nano/views/snippets/s_numbers.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

37 lines
1.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_numbers" inherit_id="website.s_numbers">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" remove="o_cc1" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('col-lg-5')]" position="replace"/>
<xpath expr="//div[hasclass('col-lg-2')]" position="replace">
<div class="col-lg-4 pt24 pb24">
<p class="lead" style="text-align: center;">
<span class="s_number display-1-fs">50+</span><br/>
<span class="h5-fs">Happy customers</span>
</p>
</div>
</xpath>
<xpath expr="//div[hasclass('col-lg-2')]" position="replace">
<div class="col-lg-4 pt24 pb24" style="box-shadow: var(--o-border-color) 1px 0px 0px 0px inset !important;">
<p class="lead" style="text-align: center;">
<span class="s_number display-1-fs">40h</span><br/>
<span class="h5-fs">Average shipping time</span>
</p>
</div>
</xpath>
<xpath expr="//div[hasclass('col-lg-2')]" position="replace">
<div class="col-lg-4 pt24 pb24" style="box-shadow: var(--o-border-color) 1px 0px 0px 0px inset !important;">
<p class="lead" style="text-align: center;">
<span class="s_number display-1-fs">4.5</span><br/>
<span class="h5-fs">Review Rate</span>
</p>
</div>
</xpath>
</template>
</odoo>