mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[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:
@@ -134,7 +134,7 @@
|
||||
|
||||
<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" add="o_cc o_cc2 pt24 pb24" remove="o_cc3 pt0 pb0" separator=" "/>
|
||||
<attribute name="class" add="o_cc2 pt24 pb24" remove="o_cc3 pt0 pb0" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
@@ -161,7 +161,7 @@
|
||||
<template id="new_page_template_about_personal_s_numbers" inherit_id="website.new_page_template_about_personal_s_numbers">
|
||||
<xpath expr="//section" position="attributes">
|
||||
<!-- pt0 is defined by both theme and new page template -->
|
||||
<attribute name="class" add="o_cc pt0" remove="pt0" separator=" "/>
|
||||
<attribute name="class" add="pt0" remove="pt0" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -4,14 +4,14 @@
|
||||
<template id="s_numbers" inherit_id="website.s_numbers">
|
||||
<!-- Section -->
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" add="pt0 pb0" remove="pt24 pb24 o_cc o_cc2" separator=" "/>
|
||||
<attribute name="class" add="pt0 pb0" remove="pt80 pb80" separator=" "/>
|
||||
</xpath>
|
||||
<!-- Container -->
|
||||
<xpath expr="//div[hasclass('container')]" position="attributes">
|
||||
<attribute name="class" add="container-fluid" remove="container" separator=" "/>
|
||||
</xpath>
|
||||
<!-- Column #1 -->
|
||||
<xpath expr="//div[hasclass('col-lg-3')]" position="attributes">
|
||||
<xpath expr="//div[hasclass('col-lg-4')]" position="attributes">
|
||||
<attribute name="class" add="pt104 pb104 o_cc o_cc5" remove="pt24 pb24" separator=" "/>
|
||||
</xpath>
|
||||
<!-- Column #1 - Text -->
|
||||
@@ -19,7 +19,7 @@
|
||||
Editions through the Europe
|
||||
</xpath>
|
||||
<!-- Column #2 -->
|
||||
<xpath expr="//div[hasclass('col-lg-3')][2]" position="attributes">
|
||||
<xpath expr="//div[hasclass('col-lg-4')][2]" position="attributes">
|
||||
<attribute name="class" add="pt104 pb104 o_cc o_cc2" remove="pt24 pb24" separator=" "/>
|
||||
</xpath>
|
||||
<!-- Column #2 - Text -->
|
||||
@@ -27,21 +27,13 @@
|
||||
Artists from around the world
|
||||
</xpath>
|
||||
<!-- Column #3 -->
|
||||
<xpath expr="//div[hasclass('col-lg-3')][3]" position="attributes">
|
||||
<xpath expr="//div[hasclass('col-lg-4')][3]" position="attributes">
|
||||
<attribute name="class" add="pt104 pb104 o_cc o_cc3" remove="pt24 pb24" separator=" "/>
|
||||
</xpath>
|
||||
<!-- Column #3 - Text -->
|
||||
<xpath expr="(//h6)[3]" position="replace" mode="inner">
|
||||
Scenes outdoor & indoor
|
||||
</xpath>
|
||||
<!-- Column #4 -->
|
||||
<xpath expr="//div[hasclass('col-lg-3')][4]" position="attributes">
|
||||
<attribute name="class" add="pt104 pb104 o_cc o_cc4" remove="pt24 pb24" separator=" "/>
|
||||
</xpath>
|
||||
<!-- Column #4 - Text -->
|
||||
<xpath expr="(//h6)[4]" position="replace" mode="inner">
|
||||
Loyal partners
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user