[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:
Benoit Socias
2023-10-23 14:43:38 +02:00
parent de9d56190e
commit 76e9cbcdb6
44 changed files with 70 additions and 99 deletions
@@ -34,9 +34,6 @@
<xpath expr="(//p)[2]" position="attributes">
<attribute name="style">text-align: center;</attribute>
</xpath>
<xpath expr="//a[hasclass('btn')]" position="attributes">
<attribute name="class" add="btn-lg" separator=" "/>
</xpath>
<xpath expr="//a[hasclass('btn')]/t" position="replace" mode="inner">
Discover it
</xpath>
@@ -4,7 +4,7 @@
<template id="s_company_team" inherit_id="website.s_company_team">
<!-- Section -->
<xpath expr="section" position="attributes">
<attribute name="class" add="pt64 pb64" remove="pt48 pb24" separator=" "/>
<attribute name="class" add="pt64 pb64" remove="pt48 pb48" separator=" "/>
</xpath>
<!-- Team #01 -->
+1 -1
View File
@@ -42,7 +42,7 @@
<!-- Carousel-item #03 -->
<xpath expr="//div[hasclass('carousel-item')][3]" position="attributes">
<attribute name="class" add="o_cc o_cc5 pt152 pb152" remove="pb112 pt112" separator=" "/>
<attribute name="class" add="o_cc o_cc5 pt152 pb152" remove="pb128 pt128" separator=" "/>
</xpath>
<!-- Shape & filter -->
<xpath expr="//div[hasclass('carousel-item')][3]//div[hasclass('container')]" position="before">
@@ -28,7 +28,7 @@
</xpath>
<!-- Card #3 -->
<xpath expr="(//div[hasclass('card')])[3]" position="attributes">
<attribute name="class" add="bg-o-color-1" remove="bg-secondary" separator=" "/>
<attribute name="class" add="bg-o-color-1" remove="bg-o-color-2" separator=" "/>
</xpath>
<!-- Card #3 - Button -->
<xpath expr="(//a[hasclass('btn')])[3]" position="attributes">
+2 -2
View File
@@ -13,11 +13,11 @@
</xpath>
<!-- Feature #01 - Icon -->
<xpath expr="//i" position="attributes">
<attribute name="class" add="bg-o-color-5" remove="bg-primary" separator=" "/>
<attribute name="class" add="bg-o-color-5" remove="bg-o-color-1" separator=" "/>
</xpath>
<!-- Feature #03 - Icon -->
<xpath expr="(//i)[3]" position="attributes">
<attribute name="class" add="bg-o-color-5" remove="bg-secondary" separator=" "/>
<attribute name="class" add="bg-o-color-5" remove="bg-o-color-2" separator=" "/>
</xpath>
</template>
@@ -17,13 +17,13 @@
<attribute name="class" add="rounded" remove="rounded-circle" separator=" "/>
</xpath>
<xpath expr="(//i)[4]" position="attributes">
<attribute name="class" add="bg-o-color-1" remove="bg-secondary" separator=" "/>
<attribute name="class" add="bg-o-color-1" remove="bg-o-color-2" separator=" "/>
</xpath>
<xpath expr="(//i)[5]" position="attributes">
<attribute name="class" add="bg-o-color-1" remove="bg-secondary" separator=" "/>
<attribute name="class" add="bg-o-color-1" remove="bg-o-color-2" separator=" "/>
</xpath>
<xpath expr="(//i)[6]" position="attributes">
<attribute name="class" add="bg-o-color-1" remove="bg-secondary" separator=" "/>
<attribute name="class" add="bg-o-color-1" remove="bg-o-color-2" separator=" "/>
</xpath>
</template>
@@ -8,10 +8,10 @@
</xpath>
<!-- Icons -->
<xpath expr="//i" position="attributes">
<attribute name="class" add="bg-o-color-5" remove="bg-primary" separator=" "/>
<attribute name="class" add="bg-o-color-5" remove="bg-o-color-1" separator=" "/>
</xpath>
<xpath expr="(//i)[3]" position="attributes">
<attribute name="class" add="bg-o-color-5" remove="bg-secondary" separator=" "/>
<attribute name="class" add="bg-o-color-5" remove="bg-o-color-2" separator=" "/>
</xpath>
<xpath expr="(//i)[4]" position="attributes">
<attribute name="class" add="bg-o-color-5" remove="bg-o-color-3" separator=" "/>
@@ -4,7 +4,7 @@
<template id="s_three_columns" inherit_id="website.s_three_columns">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc4 o_colored_level" remove="o_cc2" separator=" "/>
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
<!-- Column #1 -->
<xpath expr="//div[hasclass('card')]" position="attributes">
+1 -4
View File
@@ -164,7 +164,7 @@
<template id="s_call_to_action" inherit_id="website.s_call_to_action" name="Avantgarde s_call_to_action">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc o_cc3 o_half_screen_height pt0" remove="pt48" separator=" "/>
<attribute name="class" add="o_half_screen_height pt0" remove="pt48" separator=" "/>
</xpath>
<xpath expr="//h3" position="replace">
<h3 style="text-align: right;"><b>Since 1992</b> creating around the world.</h3>
@@ -184,9 +184,6 @@
<xpath expr="//div[hasclass('col-lg-4')]/p" position="attributes">
<attribute name="style" add="text-align: left;" remove="text-align: right;" separator=";"/>
</xpath>
<xpath expr="//a[hasclass('btn')]" position="attributes">
<attribute name="class" add="btn-lg" separator=" "/>
</xpath>
</template>
<template id="configurator_s_call_to_action" inherit_id="website.configurator_s_call_to_action" name="Avantgarde s_call_to_action">
@@ -4,7 +4,7 @@
<template id="s_company_team" inherit_id="website.s_company_team">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc o_cc4 pt80 pb80" separator=" "/>
<attribute name="class" add="o_cc o_cc4 pt80 pb80" remove="pb48 pt48" separator=" "/>
</xpath>
<!-- Titles -->
<xpath expr="(//div[hasclass('col-lg-8')])[1]/h4" position="replace" mode="inner">
+5 -9
View File
@@ -213,10 +213,6 @@
<xpath expr="//div[hasclass('col-lg-9')]/p" position="replace" mode="inner">
Join them and increase your chances to get hired.
</xpath>
<!-- Button -->
<xpath expr="//a[hasclass('btn')]" position="attributes">
<attribute name="class" add="btn-lg" separator=" "/>
</xpath>
</template>
<!-- ======== TEAM ======== -->
@@ -329,13 +325,13 @@
<template id="s_features" inherit_id="website.s_features" name="Be Wise s_features">
<!-- Icons -->
<xpath expr="//i" position="attributes">
<attribute name="class" add="bg-o-color-4" remove="bg-primary" separator=" "/>
<attribute name="class" add="bg-o-color-4" remove="bg-o-color-1" separator=" "/>
</xpath>
<xpath expr="(//i)[2]" position="attributes">
<attribute name="class" add="bg-o-color-4" remove="bg-o-color-5" separator=" "/>
</xpath>
<xpath expr="(//i)[3]" position="attributes">
<attribute name="class" add="bg-o-color-4" remove="bg-secondary" separator=" "/>
<attribute name="class" add="bg-o-color-4" remove="bg-o-color-2" separator=" "/>
</xpath>
</template>
@@ -417,13 +413,13 @@
<template id="s_features_grid" inherit_id="website.s_features_grid" name="Be Wise s_features_grid">
<!-- Icons -->
<xpath expr="//i" position="attributes">
<attribute name="class" add="bg-o-color-2" remove="fa-2x bg-primary" separator=" "/>
<attribute name="class" add="bg-o-color-2" remove="fa-2x bg-o-color-1" separator=" "/>
</xpath>
<xpath expr="(//i)[2]" position="attributes">
<attribute name="class" add="bg-o-color-2" remove="fa-2x bg-primary" separator=" "/>
<attribute name="class" add="bg-o-color-2" remove="fa-2x bg-o-color-1" separator=" "/>
</xpath>
<xpath expr="(//i)[3]" position="attributes">
<attribute name="class" add="bg-o-color-2" remove="fa-2x bg-primary" separator=" "/>
<attribute name="class" add="bg-o-color-2" remove="fa-2x bg-o-color-1" separator=" "/>
</xpath>
<xpath expr="(//i)[4]" position="attributes">
<attribute name="class" add="rounded-circle" remove="fa-2x rounded" separator=" "/>
+1 -1
View File
@@ -4,7 +4,7 @@
<template id="s_numbers" inherit_id="website.s_numbers">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5 pt80 pb80" remove="o_cc2 pt32 pb32" separator=" "/>
<attribute name="class" add="o_cc5 pt80 pb80" remove="o_cc2 pt24 pb24" separator=" "/>
</xpath>
</template>
@@ -5,7 +5,7 @@
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="style"/>
<attribute name="class" add="s_parallax parallax s_parallax_is_fixed o_cc o_cc5 pt120 pb104" remove="pt48 pb32" separator=" "/>
<attribute name="class" add="parallax s_parallax_is_fixed o_cc o_cc5 pt120 pb104" remove="pt48 pb32" separator=" "/>
<attribute name="data-scroll-background-ratio">1</attribute>
</xpath>
<xpath expr="//*[hasclass('container')]" position="before">
@@ -12,9 +12,6 @@
<attribute name="class" add="pt120 pb120" remove="pt80 pb80" separator=" "/>
<attribute name="style">background-image: none;</attribute>
</xpath>
<xpath expr="//blockquote[1]" position="attributes">
<attribute name="class" add="mx-auto" remove="me-auto" separator=" "/>
</xpath>
<xpath expr="//p[1]" position="replace" mode="inner">
Cosy and friendly, good atmosphere and super food. Especially the spiced fruit crumble.
</xpath>
@@ -22,7 +22,6 @@
<!-- Little block #2 -->
<!-- Main div -->
<xpath expr="//div[hasclass('col-lg-3')][2]" position="attributes">
<attribute name="class" add="o_cc o_cc1" remove="bg-200" separator=" "/>
<attribute name="data-oe-shape-data">{"shape":"web_editor/Airy/02","flip":[]}</attribute>
</xpath>
<xpath expr="//div[hasclass('col-lg-3')][2]/h3" position="before">
@@ -40,7 +39,7 @@
<!-- Little block #3 -->
<!-- Main div -->
<xpath expr="//div[hasclass('col-lg-3')][3]" position="attributes">
<attribute name="class" add="o_cc o_cc5" remove="bg-200" separator=" "/>
<attribute name="class" add="o_cc5" remove="bg-200 o_cc4" separator=" "/>
<attribute name="data-oe-shape-data">{"shape":"web_editor/Rainy/04","flip":[]}</attribute>
</xpath>
<xpath expr="//div[hasclass('col-lg-3')][3]/h3" position="before">
+1 -1
View File
@@ -22,7 +22,7 @@
<attribute name="class" add="pt88" remove="pt32" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('row')]//div[3]/div" position="attributes">
<attribute name="class" add="shadow bg-o-color-5" remove="bg-secondary" separator=" "/>
<attribute name="class" add="shadow bg-o-color-5" remove="bg-o-color-2" separator=" "/>
</xpath>
</template>
+1 -1
View File
@@ -17,7 +17,7 @@
</xpath>
<!-- Feature #3 - Icon -->
<xpath expr="//div[hasclass('row')]//div[3]//i" position="attributes">
<attribute name="class" add="bg-o-color-1" remove="bg-secondary" separator=" "/>
<attribute name="class" add="bg-o-color-1" remove="bg-o-color-2" separator=" "/>
</xpath>
</template>
@@ -2,10 +2,6 @@
<odoo>
<template id="s_media_list" inherit_id="website.s_media_list">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_colored_level" separator=" "/>
</xpath>
<!-- Media item #1 -->
<xpath expr="//div[hasclass('s_media_list_item')]/div" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc1" separator=" "/>
@@ -17,7 +17,7 @@
</xpath>
<!-- Icon #3 -->
<xpath expr="(//i)[3]" position="attributes">
<attribute name="class" add="bg-o-color-1" remove="bg-secondary" separator=" "/>
<attribute name="class" add="bg-o-color-1" remove="bg-o-color-2" separator=" "/>
</xpath>
<!-- Icon #4 -->
<xpath expr="(//i)[4]" position="attributes">
@@ -2,11 +2,6 @@
<odoo>
<template id="s_three_columns" inherit_id="website.s_three_columns">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_colored_level" separator=" "/>
</xpath>
<!-- Column #1 -->
<!-- Img -->
<xpath expr="//div[hasclass('card')]//img" position="attributes">
+4 -4
View File
@@ -8,19 +8,19 @@
</xpath>
<!-- Icon #1 -->
<xpath expr="//i" position="attributes">
<attribute name="class" add="bg-o-color-1" remove="bg-secondary" separator=" "/>
<attribute name="class" add="bg-o-color-1" remove="bg-o-color-2" separator=" "/>
</xpath>
<!-- Icon #2 -->
<xpath expr="(//i)[2]" position="attributes">
<attribute name="class" add="bg-o-color-1" remove="bg-secondary" separator=" "/>
<attribute name="class" add="bg-o-color-1" remove="bg-o-color-2" separator=" "/>
</xpath>
<!-- Icon #3 -->
<xpath expr="(//i)[3]" position="attributes">
<attribute name="class" add="bg-o-color-1" remove="bg-secondary" separator=" "/>
<attribute name="class" add="bg-o-color-1" remove="bg-o-color-2" separator=" "/>
</xpath>
<!-- Icon #4 -->
<xpath expr="(//i)[4]" position="attributes">
<attribute name="class" add="bg-o-color-1" remove="bg-secondary" separator=" "/>
<attribute name="class" add="bg-o-color-1" remove="bg-o-color-2" separator=" "/>
</xpath>
</template>
+2 -2
View File
@@ -8,7 +8,7 @@
</xpath>
<!-- First column : icon -->
<xpath expr="//div[hasclass('row')]//div//i" position="attributes">
<attribute name="class" add="bg-o-color-4 fa-shield" remove="bg-primary fa-gear" separator=" "/>
<attribute name="class" add="bg-o-color-4 fa-shield" remove="bg-o-color-1 fa-gear" separator=" "/>
</xpath>
<!-- First column : title -->
<xpath expr="//div[hasclass('row')]//div//h3" position="replace" mode="inner">
@@ -24,7 +24,7 @@
</xpath>
<!-- Third column : icon -->
<xpath expr="//div[hasclass('row')]//div[3]//i" position="attributes">
<attribute name="class" add="fa-star bg-o-color-2" remove="fa-leaf" separator=" "/>
<attribute name="class" add="fa-star" remove="fa-leaf" separator=" "/>
</xpath>
<!-- Third column : title -->
<xpath expr="//div[hasclass('row')]//div[3]//h3" position="replace" mode="inner">
@@ -4,7 +4,6 @@
<template id="s_quotes_carousel" inherit_id="website.s_quotes_carousel">
<!-- Section -->
<xpath expr="//div[hasclass('carousel-item')]" position="attributes">
<attribute name="class" add="oe_img_bg o_bg_img_center" separator=" "/>
<attribute name="style">background-image: url('/web/image/website.s_quotes_carousel_demo_image_3'); background-position: 50% 50%;</attribute>
</xpath>
</template>
+2 -2
View File
@@ -62,7 +62,7 @@
<attribute name="class" add="col-lg-5 offset-lg-1" remove="col-lg-6" separator=" "/>
</xpath>
<xpath expr="//a[hasclass('btn')]" position="attributes">
<attribute name="class" add="btn-lg btn-secondary" remove="btn-primary" separator=" "/>
<attribute name="class" add="btn-lg" remove="btn-primary" separator=" "/>
</xpath>
</template>
@@ -291,7 +291,7 @@
Put your people at the heart of your marketing with tools that help you get to know your audience <br/>and see who you should be talking to.
</xpath>
<xpath expr="//img" position="attributes">
<attribute name="class" add="p-0 border-0" separator=" " />
<attribute name="class" add="p-0 border-0" remove="padding-large" separator=" " />
</xpath>
</template>
+3 -3
View File
@@ -8,7 +8,7 @@
</xpath>
<!-- Column #01 -->
<xpath expr="//div[hasclass('row')]/div[1]" position="attributes">
<attribute name="class" add="o_cc o_cc1 pt48 pb48" separator=" "/>
<attribute name="class" add="o_cc o_cc1 pt48 pb48" remove="pt32 pb32" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('row')]/div[1]/i" position="replace">
<i class="fa fa-2x fa-image bg-o-color-1 m-3 rounded-circle"/>
@@ -21,7 +21,7 @@
</xpath>
<!-- Column #02 -->
<xpath expr="//div[hasclass('row')]/div[2]" position="attributes">
<attribute name="class" add="o_cc o_cc1 pt48 pb48" separator=" "/>
<attribute name="class" add="o_cc o_cc1 pt48 pb48" remove="pt32 pb32" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('row')]/div[2]/i" position="replace">
<i class="fa fa-2x fa-eye bg-o-color-5 m-3 rounded-circle"/>
@@ -34,7 +34,7 @@
</xpath>
<!-- Column #03 -->
<xpath expr="//div[hasclass('row')]/div[3]" position="attributes">
<attribute name="class" add="o_cc o_cc1 pt48 pb48" separator=" "/>
<attribute name="class" add="o_cc o_cc1 pt48 pb48" remove="pt32 pb32" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('row')]/div[3]/i" position="attributes">
<attribute name="class" add="fa-2x fa-microphone rounded-circle" remove="fa-3x fa-leaf rounded" separator=" "/>
+1 -1
View File
@@ -4,7 +4,7 @@
<template id="s_media_list" inherit_id="website.s_media_list">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc2 pt64 pb64" remove="o_cc1 pt32 pb32" separator=" "/>
<attribute name="class" add="pt64 pb64" remove="pt32 pb32" separator=" "/>
<attribute name="data-oe-shape-data">{"shape":"web_editor/Floats/01","flip":[]}</attribute>
</xpath>
<!-- Shape -->
+1 -1
View File
@@ -4,7 +4,7 @@
<template id="s_numbers" inherit_id="website.s_numbers">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc o_cc2 pt0 pb48" remove="pt24 pb24" separator=" "/>
<attribute name="class" add="pt0 pb48" remove="pt24 pb24" separator=" "/>
</xpath>
<!-- Replace h6 by paragraphs -->
<xpath expr="//h6" position="replace" mode="inner">
@@ -16,7 +16,7 @@
</xpath>
<!-- Card #3 -->
<xpath expr="(//div[hasclass('card')])[3]" 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>
@@ -4,7 +4,7 @@
<template id="s_features" inherit_id="website.s_features">
<!-- First column : icon -->
<xpath expr="//div[hasclass('row')]//div//i" position="attributes">
<attribute name="class" add="bg-o-color-3" remove="bg-primary" separator=" "/>
<attribute name="class" add="bg-o-color-3" remove="bg-o-color-1" separator=" "/>
</xpath>
<!-- Second column : icon -->
<xpath expr="//div[hasclass('row')]//div[2]//i" position="attributes">
@@ -12,7 +12,7 @@
</xpath>
<!-- Third column : icon -->
<xpath expr="//div[hasclass('row')]//div[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>
@@ -4,7 +4,7 @@
<template id="s_features_grid" inherit_id="website.s_features_grid">
<!-- Item #2 -->
<xpath expr="(//i)[2]" position="attributes">
<attribute name="class" add="bg-o-color-2" remove="bg-primary" separator=" "/>
<attribute name="class" add="bg-o-color-2" remove="bg-o-color-1" separator=" "/>
</xpath>
<!-- Item #4 -->
<xpath expr="(//i)[4]" position="attributes">
@@ -12,7 +12,7 @@
</xpath>
<!-- Item #5 -->
<xpath expr="(//i)[5]" position="attributes">
<attribute name="class" add="rounded-circle bg-o-color-1" remove="rounded bg-secondary" separator=" "/>
<attribute name="class" add="rounded-circle bg-o-color-1" remove="rounded bg-o-color-2" separator=" "/>
</xpath>
<!-- Item #6 -->
<xpath expr="(//i)[6]" position="attributes">
@@ -2,10 +2,6 @@
<odoo>
<template id="s_media_list" inherit_id="website.s_media_list">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_colored_level" separator=" "/>
</xpath>
<!-- Media List Item #1 -->
<xpath expr="//div[hasclass('s_media_list_item')]//div[hasclass('row')]" position="attributes">
<attribute name="style">border-radius: 3px !important; box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.05) !important;</attribute>
@@ -4,7 +4,7 @@
<template id="s_three_columns" inherit_id="website.s_three_columns">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="pt96 pb96 o_colored_level" remove="pt32 pb32 bg-200" separator=" "/>
<attribute name="class" add="pt96 pb96" remove="pt32 pb32 bg-200" separator=" "/>
</xpath>
<!-- Column #1 -->
<xpath expr="//div[hasclass('card')]" position="attributes">
+2 -2
View File
@@ -179,7 +179,7 @@
<!-- ======== CALL TO ACTION ======== -->
<template id="s_call_to_action" inherit_id="website.s_call_to_action" name="Monglia s_call_to_action">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc o_cc4" separator=" "/>
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="//h3" position="replace">
<h3 style="text-align: left;"><b>APPLY FOR OUR V.I.P. CARD</b></h3>
@@ -195,7 +195,7 @@
<!-- ======== 3-COLUMNS ======== -->
<template id="s_three_columns" inherit_id="website.s_three_columns">
<xpath expr="//section" position="attributes">
<attribute name="class" add="pb0 o_cc o_cc5" remove="pb32" separator=" "/>
<attribute name="class" add="pb0 o_cc5" remove="pb32 o_cc2" separator=" "/>
</xpath>
<xpath expr="//h3" position="replace" mode="inner">
Wilson Holt
@@ -14,14 +14,14 @@
<attribute name="class" add="bg-o-color-1" remove="bg-o-color-5" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('card')])[2]//a[hasclass('btn')]" position="attributes">
<attribute name="class" add="btn-secondary" remove="bg-primary" separator=" "/>
<attribute name="class" add="btn-secondary" remove="btn-primary" separator=" "/>
</xpath>
<!-- Box #03 -->
<xpath expr="//div[hasclass('row')]//div[3]" position="attributes">
<attribute name="class" add="pt80" remove="pt32" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('card')])[3]" 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>
@@ -4,7 +4,7 @@
<template id="s_media_list" inherit_id="website.s_media_list">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="pt120 pb120 o_cc4 o_colored_level" remove="pt32 pb32 o_cc2" separator=" "/>
<attribute name="class" add="pt120 pb120 o_cc4" remove="pt32 pb32 o_cc2" separator=" "/>
</xpath>
<!-- Row #1 -->
@@ -4,7 +4,7 @@
<template id="s_three_columns" inherit_id="website.s_three_columns">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="pt72 pb72 o_colored_level" remove="pt32 pb32" separator=" "/>
<attribute name="class" add="pt72 pb72" remove="pt32 pb32" separator=" "/>
<attribute name="data-oe-shape-data">{"shape":"web_editor/Floats/04","flip":[]}</attribute>
</xpath>
<!-- Shape -->
+5 -5
View File
@@ -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>
@@ -4,7 +4,7 @@
<template id="s_image_text" inherit_id="website.s_image_text">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc o_cc1 pb48 pt48" remove="pb32 pb32" separator=" "/>
<attribute name="class" add="o_cc o_cc1 pb48 pt48" remove="pb32 pt32" separator=" "/>
</xpath>
<!-- Title -->
@@ -4,7 +4,7 @@
<template id="s_text_block" inherit_id="website.s_text_block">
<!-- Section/span -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc o_cc4 pb56 pt56" remove="pt96 pb96" separator=" "/>
<attribute name="class" add="o_cc o_cc4 pb56 pt56" remove="pt40 pb40" separator=" "/>
</xpath>
<xpath expr="//p" position="replace" mode="inner">
We are <b>Odoo Travel Agency</b>, dedicated to making your vacation dreams come true! Overwhelmed with too many choices on the internet? We offer you answers, support, advice, and itineraries that will amaze you with their <b>thoroughness and thoughtfulness</b>.
+6 -6
View File
@@ -300,27 +300,27 @@
</xpath>
<!-- Item #1 -->
<xpath expr="//i" position="attributes">
<attribute name="class" add="rounded-0 bg-o-color-3 text-o-color-1" remove="rounded-circle bg-primary" separator=" "/>
<attribute name="class" add="rounded-0 bg-o-color-3 text-o-color-1" remove="rounded-circle bg-o-color-1" separator=" "/>
</xpath>
<!-- Item #2 -->
<xpath expr="(//i)[2]" position="attributes">
<attribute name="class" add="rounded-0 bg-o-color-3 text-o-color-1" remove="rounded-circle bg-primary" separator=" "/>
<attribute name="class" add="rounded-0 bg-o-color-3 text-o-color-1" remove="rounded-circle bg-o-color-1" separator=" "/>
</xpath>
<!-- Item #3 -->
<xpath expr="(//i)[3]" position="attributes">
<attribute name="class" add="rounded-0 bg-o-color-3 text-o-color-1" remove="rounded-circle bg-primary" separator=" "/>
<attribute name="class" add="rounded-0 bg-o-color-3 text-o-color-1" remove="rounded-circle bg-o-color-1" separator=" "/>
</xpath>
<!-- Item #4 -->
<xpath expr="(//i)[4]" position="attributes">
<attribute name="class" add="rounded-0 bg-o-color-3 text-o-color-2" remove="rounded bg-secondary" separator=" "/>
<attribute name="class" add="rounded-0 bg-o-color-3 text-o-color-2" remove="rounded bg-o-color-2" separator=" "/>
</xpath>
<!-- Item #5 -->
<xpath expr="(//i)[5]" position="attributes">
<attribute name="class" add="rounded-0 bg-o-color-3 text-o-color-2" remove="rounded bg-secondary" separator=" "/>
<attribute name="class" add="rounded-0 bg-o-color-3 text-o-color-2" remove="rounded bg-o-color-2" separator=" "/>
</xpath>
<!-- Item #6 -->
<xpath expr="(//i)[6]" position="attributes">
<attribute name="class" add="rounded-0 bg-o-color-3 text-o-color-2" remove="rounded bg-secondary" separator=" "/>
<attribute name="class" add="rounded-0 bg-o-color-3 text-o-color-2" remove="rounded bg-o-color-2" separator=" "/>
</xpath>
</template>
+1 -1
View File
@@ -31,7 +31,7 @@
<xpath expr="(//*[hasclass('container')])[3]" position="before">
<div class="o_we_bg_filter" style="background-color: rgba(25, 41, 37, 0.55) !important;"/>
</xpath>
<xpath expr="//*[hasclass('carousel-item')][2]" position="attributes">
<xpath expr="//*[hasclass('carousel-item')][3]" position="attributes">
<attribute name="class" add="pt152 pb152" remove="pt128 pb128" separator=" "/>
</xpath>
<xpath expr="(//*[hasclass('carousel-content')])[3]" position="replace">
@@ -4,7 +4,6 @@
<template id="s_quotes_carousel" inherit_id="website.s_quotes_carousel">
<!-- Quote 1 -->
<xpath expr="//div[hasclass('carousel-item')]" position="attributes">
<attribute name="class" add="oe_img_bg o_bg_img_center" separator=" "/>
<attribute name="style" add="background-image: url('/web/image/website.s_quotes_carousel_demo_image_0'); background-position: 50% 25%;" separator="; "/>
</xpath>
<xpath expr="//div[hasclass('container')]" position="before">
+1 -1
View File
@@ -4,7 +4,7 @@
<template id="s_numbers" inherit_id="website.s_numbers">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="pt80 pb80" remove="pt48 pb24" separator=" "/>
<attribute name="class" add="pt80 pb80" remove="pt24 pb24" separator=" "/>
</xpath>
<!-- Column #01 -->
<xpath expr="//*[hasclass('row')]/*[1]" position="attributes">
+6 -6
View File
@@ -16,32 +16,32 @@
</xpath>
<!-- Column #01 -->
<xpath expr="//*[hasclass('row')]/*[1]" position="attributes">
<attribute name="class" add="o_cc o_cc1 rounded pt48 pb48" remove="" separator=" "/>
<attribute name="class" add="o_cc o_cc1 rounded pt48 pb48" remove="pt16 pb16" separator=" "/>
<attribute name="style" add="box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 4px 0px !important;" separator=" "/>
</xpath>
<!-- Column #02 -->
<xpath expr="//*[hasclass('row')]/*[2]" position="attributes">
<attribute name="class" add="o_cc o_cc1 rounded pt48 pb48" remove="" separator=" "/>
<attribute name="class" add="o_cc o_cc1 rounded pt48 pb48" remove="pt16 pb16" separator=" "/>
<attribute name="style" add="box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 4px 0px !important;" separator=" "/>
</xpath>
<!-- Column #03 -->
<xpath expr="//*[hasclass('row')]/*[3]" position="attributes">
<attribute name="class" add="o_cc o_cc1 rounded pt48 pb48" remove="" separator=" "/>
<attribute name="class" add="o_cc o_cc1 rounded pt48 pb48" remove="pt16 pb16" separator=" "/>
<attribute name="style" add="box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 4px 0px !important;" separator=" "/>
</xpath>
<!-- Column #04 -->
<xpath expr="//*[hasclass('row')]/*[4]" position="attributes">
<attribute name="class" add="o_cc o_cc1 rounded pt48 pb48" remove="" separator=" "/>
<attribute name="class" add="o_cc o_cc1 rounded pt48 pb48" remove="pt16 pb16" separator=" "/>
<attribute name="style" add="box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 4px 0px !important;" separator=" "/>
</xpath>
<!-- Column #05 -->
<xpath expr="//*[hasclass('row')]/*[5]" position="attributes">
<attribute name="class" add="o_cc o_cc1 rounded pt48 pb48" remove="" separator=" "/>
<attribute name="class" add="o_cc o_cc1 rounded pt48 pb48" remove="pt16 pb16" separator=" "/>
<attribute name="style" add="box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 4px 0px !important;" separator=" "/>
</xpath>
<!-- Column #06 -->
<xpath expr="//*[hasclass('row')]/*[6]" position="attributes">
<attribute name="class" add="o_cc o_cc1 rounded pt48 pb48" remove="" separator=" "/>
<attribute name="class" add="o_cc o_cc1 rounded pt48 pb48" remove="pt16 pb16" separator=" "/>
<attribute name="style" add="box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 4px 0px !important;" separator=" "/>
</xpath>
</template>