Skip to content

Commit 245385c

Browse files
committed
[IMP] theme_*: review s_text_cover templates
This commit aims to review all the occurrences of the `s_text_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 d3d4d7b commit 245385c

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

theme_anelusia/views/snippets/s_text_cover.xml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
<template id="s_text_cover" inherit_id="website.s_text_cover">
55
<!-- Section -->
66
<xpath expr="//section" position="attributes">
7-
<attribute name="class" add="o_cc o_cc4" separator=" "/>
7+
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
88
</xpath>
99
<!-- Container -->
1010
<xpath expr="//div[hasclass('row')]/div" position="attributes">
11-
<attribute name="style">text-align: right;</attribute>
11+
<attribute name="style" add="text-align: right;" separator=" "/>
1212
</xpath>
1313
<xpath expr="//h1" position="replace" mode="inner">
1414
The next<br/> summer<br/> collection
@@ -17,10 +17,6 @@
1717
<xpath expr="//p[hasclass('lead')]" position="replace" mode="inner">
1818
Color trends are already waiting to spring <br/>into action for the next summer.
1919
</xpath>
20-
<!-- Button -->
21-
<xpath expr="//a[hasclass('btn')]" position="attributes">
22-
<attribute name="class" add="btn-lg" separator=" "/>
23-
</xpath>
2420
<xpath expr="//a[hasclass('btn')]/t" position="replace" mode="inner">
2521
Discover it
2622
</xpath>

theme_artists/views/new_page_template.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115

116116
<template id="new_page_template_about_s_text_cover" inherit_id="website.new_page_template_about_s_text_cover">
117117
<xpath expr="//section" position="attributes">
118-
<attribute name="class" add="o_cc5" separator=" "/>
118+
<attribute name="class" add="o_cc5" remove="o_cc2" separator=" "/>
119119
</xpath>
120120
</template>
121121

theme_buzzy/views/new_page_template.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161

162162
<template id="new_page_template_about_s_text_cover" inherit_id="website.new_page_template_about_s_text_cover">
163163
<xpath expr="//section" position="attributes">
164-
<attribute name="class" add="o_cc2" separator=" "/>
164+
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
165165
</xpath>
166166
</template>
167167

@@ -253,7 +253,7 @@
253253

254254
<template id="new_page_template_landing_s_text_cover" inherit_id="website.new_page_template_landing_s_text_cover">
255255
<xpath expr="//section" position="attributes">
256-
<attribute name="class" add="o_cc2" separator=" "/>
256+
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
257257
</xpath>
258258
</template>
259259

@@ -350,7 +350,7 @@
350350

351351
<template id="new_page_template_services_s_text_cover" inherit_id="website.new_page_template_services_s_text_cover">
352352
<xpath expr="//section" position="attributes">
353-
<attribute name="class" add="o_cc2" separator=" "/>
353+
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
354354
</xpath>
355355
</template>
356356

theme_nano/views/new_page_template.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116

117117
<template id="new_page_template_about_s_text_cover" inherit_id="website.new_page_template_about_s_text_cover">
118118
<xpath expr="//section" position="attributes">
119-
<attribute name="class" add="o_cc5" separator=" "/>
119+
<attribute name="class" add="o_cc5" remove="o_cc2" separator=" "/>
120120
</xpath>
121121
</template>
122122

@@ -331,7 +331,7 @@
331331

332332
<template id="new_page_template_services_s_text_cover" inherit_id="website.new_page_template_services_s_text_cover">
333333
<xpath expr="//section" position="attributes">
334-
<attribute name="class" add="o_cc5" separator=" "/>
334+
<attribute name="class" add="o_cc5" remove="o_cc2" separator=" "/>
335335
</xpath>
336336
</template>
337337

0 commit comments

Comments
 (0)