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
When default snippets have been updated to rely on color presets ([1]),
some themes were not adapted accordingly.
This also happened whenever paddings of base blocks were modified.
Because of this there are elements in themes for which some classes are
applied several times, and some where classes are not removed before
adding a contradicting one.
This commit adjusts the classes so that themes neither:
- produce snippets with duplicated classes
- produce snippets with contradicting classes (e.g. two different
bottom paddings on the same element)
This commit also fixes a typo from [2] which was the source of
duplicate classes.
[1]: https://github.com/odoo/odoo/commit/5953c4df6b9c08519f64a65c1cf5d5558d59f7d4
[2]: https://github.com/odoo/design-themes/commit/299d504df31bf179775eec1d37e71605c3637460#diff-86c142838104de06e89f629c51cf791464538dc8899e6a3f00c24f69638db409R34
task-3562147
X-original-commit: f3da06dc68
Part-of: odoo/design-themes#744
This commit is contained in:
@@ -218,7 +218,7 @@
|
||||
<!-- ==== Three Columns ===== -->
|
||||
<template id="s_three_columns" inherit_id="website.s_three_columns" name="Paptic s_three_columns">
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" remove="pt32 pb32 o_cc2" add="pt120 pb120 o_cc3 o_colored_level" separator=" "/>
|
||||
<attribute name="class" remove="pt32 pb32 o_cc2" add="pt120 pb120 o_cc3" separator=" "/>
|
||||
</xpath>
|
||||
<xpath expr="//div[hasclass('row')]" position="before">
|
||||
<h3 style="text-align: center;"><font style="background-image: linear-gradient(135deg, var(--o-color-1) 0%, var(--o-color-3) 100%);" class="text-gradient">SUCCESS STORIES</font></h3>
|
||||
@@ -391,7 +391,7 @@
|
||||
<attribute name="class" add="o_cc o_cc2" separator=" "/>
|
||||
</xpath>
|
||||
<xpath expr="//div[hasclass('col-lg-4')][3]/i" position="attributes">
|
||||
<attribute name="class" add="bg-o-color-3" remove="bg-secondary" separator=" "/>
|
||||
<attribute name="class" add="bg-o-color-3" remove="bg-o-color-2" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
@@ -433,15 +433,15 @@
|
||||
<template id="s_features_grid" inherit_id="website.s_features_grid" name="Paptic s_features_grid">
|
||||
<!-- Icon #4 -->
|
||||
<xpath expr="(//i)[4]" position="attributes">
|
||||
<attribute name="class" add="rounded-circle bg-o-color-3" remove="rounded bg-secondary" separator=" "/>
|
||||
<attribute name="class" add="rounded-circle bg-o-color-3" remove="rounded bg-o-color-2" separator=" "/>
|
||||
</xpath>
|
||||
<!-- Icon #5 -->
|
||||
<xpath expr="(//i)[5]" position="attributes">
|
||||
<attribute name="class" add="rounded-circle bg-o-color-3" remove="rounded bg-secondary" separator=" "/>
|
||||
<attribute name="class" add="rounded-circle bg-o-color-3" remove="rounded bg-o-color-2" separator=" "/>
|
||||
</xpath>
|
||||
<!-- Icon #6 -->
|
||||
<xpath expr="(//i)[6]" position="attributes">
|
||||
<attribute name="class" add="rounded-circle bg-o-color-3" remove="rounded bg-secondary" separator=" "/>
|
||||
<attribute name="class" add="rounded-circle bg-o-color-3" remove="rounded bg-o-color-2" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user