[IMP] review numbers snippets occurrences across design themes

This commit reviews the occurrences of the numbers snippets across
the website themes, especially broken selector.

The goal of this commit is to fix potential broken xpath as wel as
fine-tune the design if needed.

task-3924624

Part-of: odoo/design-themes#822
Related: odoo/odoo#163583
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
This commit is contained in:
Chrysanthe (chgo)
2024-07-13 16:02:13 +02:00
parent 0211b2367d
commit aa5ce391ae
20 changed files with 34 additions and 73 deletions
+1 -4
View File
@@ -181,7 +181,7 @@
<!-- ======== NUMBERS ======== -->
<template id="s_numbers" inherit_id="website.s_numbers" name="Graphene s_numbers">
<xpath expr="//section" position="attributes">
<attribute name="class" add="oe_img_bg o_bg_img_center pb56 pt56 s_parallax_no_overflow_hidden parallax s_parallax_is_fixed" remove="pb24 pt24" separator=" "/>
<attribute name="class" add="oe_img_bg o_bg_img_center pb56 pt56 s_parallax_no_overflow_hidden parallax s_parallax_is_fixed o_cc3" remove="pb80 pt80 o_cc1" separator=" "/>
</xpath>
<xpath expr="//section/div[hasclass('container')]" position="before">
<span class="s_parallax_bg oe_img_bg" style="background-image: url('/web/image/website.s_parallax_default_image'); background-position: 50% 75%;"/>
@@ -197,9 +197,6 @@
<xpath expr="(//div[hasclass('row')]/div/span)[3]" position="attributes">
<attribute name="class" add="text-white" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('row')]/div/span)[4]" position="attributes">
<attribute name="class" add="text-white" separator=" "/>
</xpath>
</template>
<!-- ======== PICTURE ======== -->
@@ -106,6 +106,12 @@
</xpath>
</template>
<template id="new_page_template_about_full_s_numbers" inherit_id="website.new_page_template_about_full_s_numbers">
<xpath expr="//section" position="attributes">
<attribute name="class" remove="o_cc3" separator=" "/>
</xpath>
</template>
<template id="new_page_template_about_personal_s_text_block_h2" inherit_id="website.new_page_template_about_personal_s_text_block_h2">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" remove="o_cc3" separator=" "/>