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:
@@ -51,9 +51,24 @@
|
||||
</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">
|
||||
<!-- Added by both theme and new page template -->
|
||||
<attribute name="class" add="o_cc3" remove="o_cc3" separator=" "/>
|
||||
</xpath>
|
||||
</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_personal_s_numbers" inherit_id="website.new_page_template_about_personal_s_numbers">
|
||||
<!-- Remove shape option -->
|
||||
<xpath expr="//section" position="attributes">
|
||||
<!-- Added by both theme and new page template -->
|
||||
<attribute name="class" add="o_cc3" remove="o_cc3" separator=" "/>
|
||||
<attribute name="data-oe-shape-data"/>
|
||||
</xpath>
|
||||
<!-- Remove shape -->
|
||||
@@ -62,6 +77,12 @@
|
||||
|
||||
<!-- Snippet customization Landing Pages -->
|
||||
|
||||
<template id="new_page_template_landing_0_s_cover" inherit_id="website.new_page_template_landing_0_s_cover">
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" remove="pt200 pb200" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="new_page_template_landing_1_s_banner" inherit_id="website.new_page_template_landing_1_s_banner">
|
||||
<!-- Shape option -->
|
||||
<xpath expr="//section" position="attributes">
|
||||
|
||||
Reference in New Issue
Block a user