Skip to content

Commit d3d4d7b

Browse files
committed
[IMP] theme_*: review s_cover templates
This commit aims to review all the occurrences of the `s_cover` snippet across the themes in order to fix broken selectors. task-3665300 Part-of: #827 Related: odoo/odoo#172725 Signed-off-by: Benoit Socias (bso) <[email protected]>
1 parent c3bee92 commit d3d4d7b

File tree

21 files changed

+39
-48
lines changed

21 files changed

+39
-48
lines changed

theme_anelusia/views/snippets/s_cover.xml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<template id="s_cover" inherit_id="website.s_cover">
55
<!-- Section -->
66
<xpath expr="//section" position="attributes">
7-
<attribute name="class" add="o_half_screen_height pt128 pb128" remove="pt96 pb96" separator=" "/>
7+
<attribute name="class" add="o_half_screen_height pt128 pb128" remove="pt232 pb232" separator=" "/>
88
</xpath>
99
<!-- Title -->
1010
<xpath expr="//h1" position="replace" mode="inner">
@@ -16,10 +16,6 @@
1616
<br/>
1717
<br/>
1818
</xpath>
19-
<!-- Button -->
20-
<xpath expr="//a[hasclass('btn')]" position="attributes">
21-
<attribute name="class" add="btn-lg" separator=" "/>
22-
</xpath>
2319
<xpath expr="//a[hasclass('btn')]/t" position="replace" mode="inner">
2420
Discover
2521
</xpath>

theme_artists/views/snippets/s_cover.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<template id="s_cover" inherit_id="website.s_cover">
55
<!-- Section -->
66
<xpath expr="//section" position="attributes">
7-
<attribute name="class" add="pt200 pb200 o_cc o_cc4" remove="pb96 pt96 s_parallax_bg parallax s_parallax_is_fixed bg-black-50" separator=" "/>
7+
<attribute name="class" add="pt200 pb200" remove="pt232 pb232 s_parallax_bg parallax s_parallax_is_fixed bg-black-50" separator=" "/>
88
<attribute name="data-oe-shape-data">{"shape":"web_editor/Floats/02","flip":[]}</attribute>
99
</xpath>
1010
<!-- Shape -->

theme_avantgarde/views/customizations.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
We create architecture, landscapes, interiors, product design and graphic design.<br/>
2424
Our methods allow us to explore a future that is equitable, data-driven, and green.
2525
</xpath>
26-
<xpath expr="//a[hasclass('btn')]" position="attributes">
27-
<attribute name="class" add="btn-lg" separator=" "/>
28-
</xpath>
2926
</template>
3027

3128
<!-- ======== PICTURE ======== -->

theme_avantgarde/views/new_page_template.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,35 +36,35 @@
3636

3737
<template id="new_page_template_about_s_cover" inherit_id="website.new_page_template_about_s_cover">
3838
<xpath expr="//section" position="attributes">
39-
<attribute name="class" add="o_half_screen_height o_cc5" remove="o_full_screen_height" separator=" "/>
39+
<attribute name="class" add="o_half_screen_height o_cc5" remove="o_full_screen_height o_cc4" separator=" "/>
4040
</xpath>
4141
</template>
4242

4343
<!-- Snippet customization Landing Pages -->
4444

4545
<template id="new_page_template_landing_0_s_cover" inherit_id="website.new_page_template_landing_0_s_cover">
4646
<xpath expr="//section" position="attributes">
47-
<attribute name="class" add="o_cc5" separator=" "/>
47+
<attribute name="class" add="o_cc5" remove="o_cc4" separator=" "/>
4848
</xpath>
4949
</template>
5050

5151
<template id="new_page_template_landing_2_s_cover" inherit_id="website.new_page_template_landing_2_s_cover">
5252
<xpath expr="//section" position="attributes">
53-
<attribute name="class" add="o_half_screen_height o_cc5" remove="o_full_screen_height" separator=" "/>
53+
<attribute name="class" add="o_half_screen_height o_cc5" remove="o_full_screen_height o_cc4" separator=" "/>
5454
</xpath>
5555
</template>
5656

5757
<template id="new_page_template_landing_4_s_cover" inherit_id="website.new_page_template_landing_4_s_cover">
5858
<xpath expr="//section" position="attributes">
59-
<attribute name="class" add="o_cc5" separator=" "/>
59+
<attribute name="class" add="o_cc5" remove="o_cc4" separator=" "/>
6060
</xpath>
6161
</template>
6262

6363
<!-- Snippet customization Gallery Pages -->
6464

6565
<template id="new_page_template_gallery_s_cover" inherit_id="website.new_page_template_gallery_s_cover">
6666
<xpath expr="//section" position="attributes">
67-
<attribute name="class" add="o_half_screen_height o_cc5" remove="o_full_screen_height" separator=" "/>
67+
<attribute name="class" add="o_half_screen_height o_cc5" remove="o_full_screen_height o_cc4" separator=" "/>
6868
</xpath>
6969
</template>
7070

@@ -80,7 +80,7 @@
8080

8181
<template id="new_page_template_pricing_s_cover" inherit_id="website.new_page_template_pricing_s_cover">
8282
<xpath expr="//section" position="attributes">
83-
<attribute name="class" add="o_half_screen_height o_cc5" remove="o_full_screen_height" separator=" "/>
83+
<attribute name="class" add="o_half_screen_height o_cc5" remove="o_full_screen_height o_cc4" separator=" "/>
8484
</xpath>
8585
</template>
8686

theme_aviato/views/snippets/s_cover.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<template id="s_cover" inherit_id="website.s_cover">
55
<!-- Section -->
66
<xpath expr="//section" position="attributes">
7-
<attribute name="class" add="pt192 pb192" remove="pt96 pb96 s_parallax_is_fixed" separator=" "/>
7+
<attribute name="class" add="pt192 pb192" remove="pt232 pb232 s_parallax_is_fixed" separator=" "/>
88
</xpath>
99
<xpath expr="//span[hasclass('s_parallax_bg')]" position="replace">
1010
<span class="s_parallax_bg oe_img_bg" style="background-image: url('/web/image/website.s_cover_default_image'); background-position: 50% 50%;"/>

theme_beauty/views/snippets/s_cover.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<template id="s_cover" inherit_id="website.s_cover">
55
<!-- Section -->
66
<xpath expr="//section" position="attributes">
7-
<attribute name="class" add="o_full_screen_height bg-black-15 o_cc o_cc5" remove="bg-black-50" separator=" "/>
7+
<attribute name="class" add="o_full_screen_height bg-black-15 o_cc5" remove="bg-black-50 o_cc4" separator=" "/>
88
</xpath>
99
<!-- Change position of background image -->
1010
<xpath expr="//span[hasclass('s_parallax_bg')]" position="attributes">

theme_bewise/views/customizations.xml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<!-- ======== COVER ======== -->
55
<template id="s_cover" inherit_id="website.s_cover" name="Be Wise s_cover">
66
<xpath expr="//section" position="attributes">
7-
<attribute name="class" add="pt200 pb200 o_cc o_cc5 oe_img_bg o_bg_img_center" remove="bg-black-50 s_parallax_is_fixed parallax pt96 pb96" separator=" "/>
7+
<attribute name="class" add="pt200 pb200 o_cc5 oe_img_bg o_bg_img_center" remove="bg-black-50 s_parallax_is_fixed parallax pt232 pb232 o_cc4" separator=" "/>
88
<attribute name="style">background-image: url('/web/image/website.s_cover_default_image'); background-position: 50% 50%;</attribute>
99
<attribute name="data-oe-shape-data">{"shape":"web_editor/Rainy/08_001","flip":[]}</attribute>
1010
<attribute name="data-scroll-background-ratio">0</attribute>
@@ -15,10 +15,6 @@
1515
</xpath>
1616
<!-- Remove the background image for parallax -->
1717
<xpath expr="//span[hasclass('s_parallax_bg')]" position="replace"/>
18-
<!-- Button -->
19-
<xpath expr="//a[hasclass('btn')]" position="attributes">
20-
<attribute name="class" add="btn-lg btn-secondary" remove="btn-primary" separator=" "/>
21-
</xpath>
2218
<!-- Title -->
2319
<xpath expr="//h1" position="replace" mode="inner">
2420
Always at the top

theme_buzzy/views/snippets/s_cover.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<template id="s_cover" inherit_id="website.s_cover">
55
<!-- Section -->
66
<xpath expr="//section" position="attributes">
7-
<attribute name="class" add="o_cc o_cc5 pt112 pb112" remove="pt96 pb96 bg-black-50" separator=" "/>
7+
<attribute name="class" add="o_cc5 pt112 pb112" remove="pt232 pb232 bg-black-50 o_cc4" separator=" "/>
88
<attribute name="data-oe-shape-data">{"shape":"web_editor/Airy/03_001","flip":[]}</attribute>
99
</xpath>
1010
<!-- Filter -->

theme_clean/views/snippets/s_cover.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</xpath>
1313
<!-- Title & Paragraph -->
1414
<xpath expr="//h1" position="replace" mode="inner">
15-
<b>Sell from your couch</b>
15+
Sell from your couch
1616
</xpath>
1717
<xpath expr="//p[hasclass('lead')]" position="replace" mode="inner">
1818
Make your finances reach a new level with our online management system. <br/>Track every penny, directly from the comfort of your home.

theme_enark/views/snippets/s_cover.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
<odoo>
33

44
<template id="s_cover" inherit_id="website.s_cover">
5-
<xpath expr="//a" position="attributes">
6-
<attribute name="class" add="btn-secondary" remove="btn-primary" separator=" "/>
7-
</xpath>
5+
<xpath expr="//a[@t-att-href='cta_btn_href'][2]" position="replace"/>
86
</template>
97

108
</odoo>

0 commit comments

Comments
 (0)