mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[FIX] theme_*: remove duplicate and conflicting classes from new pages
Given that the duplicate and conflicting classes resolved by the previous commit did still exist at the time new page templates were introduced in [1], they could not be avoided for new page templates snippets. This commit removes those from the new page templates snippets now that they have been removed from the base snippets. [1]: https://github.com/odoo/design-themes/commit/80cbee66f6bb4d897dd7e577f1109c75f6f6ad74 task-3562147 Part-of: odoo/design-themes#731
This commit is contained in:
@@ -66,6 +66,12 @@
|
||||
<xpath expr="//div[hasclass('o_we_shape')]" position="replace"/>
|
||||
</template>
|
||||
|
||||
<template id="new_page_template_s_features" inherit_id="website.new_page_template_s_features">
|
||||
<xpath expr="//div[hasclass('row')]//div[3]//i" position="attributes">
|
||||
<attribute name="class" add="bg-o-color-2" remove="bg-o-color-1" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="new_page_template_s_product_catalog" inherit_id="website.new_page_template_s_product_catalog">
|
||||
<!-- Remove shape option -->
|
||||
<xpath expr="//section" position="attributes">
|
||||
@@ -86,6 +92,21 @@
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="new_page_template_s_timeline" inherit_id="website.new_page_template_s_timeline">
|
||||
<xpath expr="//i" position="attributes">
|
||||
<attribute name="class" add="bg-o-color-2" remove="bg-o-color-1" separator=" "/>
|
||||
</xpath>
|
||||
<xpath expr="(//i)[2]" position="attributes">
|
||||
<attribute name="class" add="bg-o-color-2" remove="bg-o-color-1" separator=" "/>
|
||||
</xpath>
|
||||
<xpath expr="(//i)[3]" position="attributes">
|
||||
<attribute name="class" add="bg-o-color-2" remove="bg-o-color-1" separator=" "/>
|
||||
</xpath>
|
||||
<xpath expr="(//i)[4]" position="attributes">
|
||||
<attribute name="class" add="bg-o-color-2" remove="bg-o-color-1" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="new_page_template_s_three_columns" inherit_id="website.new_page_template_s_three_columns">
|
||||
<!-- Shape option -->
|
||||
<xpath expr="//section" position="attributes">
|
||||
@@ -105,6 +126,13 @@
|
||||
|
||||
<!-- Snippet customization Basic Pages -->
|
||||
|
||||
<template id="new_page_template_basic_2_s_text_block_h1" inherit_id="website.new_page_template_basic_2_s_text_block_h1">
|
||||
<xpath expr="//section" position="attributes">
|
||||
<!-- Added by both theme and new page template -->
|
||||
<attribute name="class" add="o_cc2" remove="o_cc2" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<!-- Snippet customization About Pages -->
|
||||
|
||||
<template id="new_page_template_about_s_banner" inherit_id="website.new_page_template_about_s_banner">
|
||||
@@ -128,7 +156,7 @@
|
||||
<template id="new_page_template_about_s_text_block_h1" inherit_id="website.new_page_template_about_s_text_block_h1">
|
||||
<!-- Shape option -->
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" add="o_cc4 pt80 pb80" remove="o_cc2 pb0" separator=" "/>
|
||||
<attribute name="class" add="o_cc4 pt80 pb80" remove="o_cc2 pt40 pb40" separator=" "/>
|
||||
<attribute name="data-oe-shape-data">{"shape":"web_editor/Airy/13_001","flip":[]}</attribute>
|
||||
</xpath>
|
||||
<!-- Shape -->
|
||||
@@ -143,28 +171,52 @@
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="new_page_template_about_full_1_s_text_block_h1" inherit_id="website.new_page_template_about_full_1_s_text_block_h1">
|
||||
<template id="new_page_template_about_full_s_image_text" inherit_id="website.new_page_template_about_full_s_image_text">
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" add="pt40" remove="o_cc2 pb0 pb40 pb40 pt40" separator=" "/>
|
||||
<attribute name="class" remove="pt48 pb56" separator=" "/>
|
||||
</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_full_s_text_image" inherit_id="website.new_page_template_about_full_s_text_image">
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" remove="pt56 pb56" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="new_page_template_about_full_s_text_block_h1" inherit_id="website.new_page_template_about_full_s_text_block_h1">
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" add="pb40 pb40 pt40" separator=" "/>
|
||||
<attribute name="class" remove="pb0 pb40 pt40" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="new_page_template_about_full_1_s_text_block_h1" inherit_id="website.new_page_template_about_full_1_s_text_block_h1">
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" remove="pb40" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="new_page_template_about_map_s_text_block_h1" inherit_id="website.new_page_template_about_map_s_text_block_h1">
|
||||
<!-- Remove shape option -->
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" add="o_cc2 pb0" remove="o_cc4 pb80 pt80" separator=" "/>
|
||||
<attribute name="class" add="o_cc2 pt40" remove="o_cc4 pb80 pt80" separator=" "/>
|
||||
<attribute name="data-oe-shape-data"/>
|
||||
</xpath>
|
||||
<!-- Remove shape -->
|
||||
<xpath expr="//div[hasclass('o_we_shape')]" position="replace"/>
|
||||
</template>
|
||||
|
||||
<template id="new_page_template_about_mini_s_cover" inherit_id="website.new_page_template_about_mini_s_cover">
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" remove="pt40 pb40" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="new_page_template_about_mini_s_text_block_h2" inherit_id="website.new_page_template_about_mini_s_text_block_h2">
|
||||
<xpath expr="//*[hasclass('container')]" position="attributes">
|
||||
<attribute name="class" add="o_container_small" remove="container" separator=" "/>
|
||||
@@ -174,6 +226,7 @@
|
||||
<template id="new_page_template_about_personal_s_numbers" inherit_id="website.new_page_template_about_personal_s_numbers">
|
||||
<!-- Remove shape option -->
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" remove="o_cc3 pt0" separator=" "/>
|
||||
<attribute name="data-oe-shape-data"/>
|
||||
</xpath>
|
||||
<!-- Remove shape -->
|
||||
@@ -182,7 +235,8 @@
|
||||
|
||||
<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_cc4" remove="o_cc3" separator=" "/>
|
||||
<!-- o_cc defined in both theme and new page template -->
|
||||
<attribute name="class" add="o_cc o_cc4" remove="o_cc o_cc2 o_cc3" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
@@ -197,6 +251,12 @@
|
||||
<xpath expr="//div[hasclass('o_we_shape')]" position="replace"/>
|
||||
</template>
|
||||
|
||||
<template id="new_page_template_landing_s_text_image" inherit_id="website.new_page_template_landing_s_text_image">
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" remove="pt56 pb56" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="new_page_template_landing_s_text_cover" inherit_id="website.new_page_template_landing_s_text_cover">
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" add="o_cc2" separator=" "/>
|
||||
@@ -217,6 +277,7 @@
|
||||
<template id="new_page_template_landing_0_s_cover" inherit_id="website.new_page_template_landing_0_s_cover">
|
||||
<!-- Remove shape option -->
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" remove="pt112 pb112" separator=" "/>
|
||||
<attribute name="data-oe-shape-data"/>
|
||||
</xpath>
|
||||
<!-- Remove shape -->
|
||||
@@ -230,6 +291,20 @@
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="new_page_template_landing_2_s_text_block_h2" inherit_id="website.new_page_template_landing_2_s_text_block_h2">
|
||||
<xpath expr="//section" position="attributes">
|
||||
<!-- Added by both theme and new page template -->
|
||||
<attribute name="class" add="o_cc2" remove="o_cc2" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="new_page_template_landing_3_s_text_block_h2" inherit_id="website.new_page_template_landing_3_s_text_block_h2">
|
||||
<xpath expr="//section" position="attributes">
|
||||
<!-- Added by both theme and new page template -->
|
||||
<attribute name="class" add="o_cc2" remove="o_cc2" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="new_page_template_landing_4_s_cover" inherit_id="website.new_page_template_landing_4_s_cover">
|
||||
<!-- Remove shape option -->
|
||||
<xpath expr="//section" position="attributes">
|
||||
@@ -262,7 +337,7 @@
|
||||
<template id="new_page_template_gallery_s_text_block_h2" inherit_id="website.new_page_template_gallery_s_text_block_h2">
|
||||
<!-- Shape option -->
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" add="o_cc4 pt80 pb80" remove="o_cc2 pb0" separator=" "/>
|
||||
<attribute name="class" add="o_cc4 pt80 pb80" remove="o_cc2 pt40 pb0" separator=" "/>
|
||||
<attribute name="data-oe-shape-data">{"shape":"web_editor/Airy/13_001","flip":[]}</attribute>
|
||||
</xpath>
|
||||
<!-- Shape -->
|
||||
@@ -271,6 +346,12 @@
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="new_page_template_gallery_s_image_text_2nd" inherit_id="website.new_page_template_gallery_s_image_text_2nd">
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" remove="pt48 pb56" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<!-- Snippet customization Services Pages -->
|
||||
|
||||
<template id="new_page_template_services_s_text_cover" inherit_id="website.new_page_template_services_s_text_cover">
|
||||
@@ -279,6 +360,12 @@
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="new_page_template_services_s_text_image" inherit_id="website.new_page_template_services_s_text_image">
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" remove="pt56 pb56" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<!-- Snippet customization Pricing Pages -->
|
||||
|
||||
<template id="new_page_template_pricing_s_cover" inherit_id="website.new_page_template_pricing_s_cover">
|
||||
@@ -288,8 +375,20 @@
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="new_page_template_pricing_s_image_text_2nd" inherit_id="website.new_page_template_pricing_s_image_text_2nd">
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" remove="pt48 pb56" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<!-- Snippet customization Team Pages -->
|
||||
|
||||
<template id="new_page_template_team_s_text_image" inherit_id="website.new_page_template_team_s_text_image">
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" remove="pt56 pb56" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="new_page_template_team_0_s_text_block_h1" inherit_id="website.new_page_template_team_0_s_text_block_h1">
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" add="pb0" remove="pb40" separator=" "/>
|
||||
|
||||
Reference in New Issue
Block a user