[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: odoo/design-themes#827
Related: odoo/odoo#172725
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
This commit is contained in:
Chrysanthe (chgo)
2024-07-15 22:42:09 +02:00
parent c3bee92507
commit d3d4d7b900
21 changed files with 39 additions and 48 deletions
+1 -5
View File
@@ -4,7 +4,7 @@
<template id="s_cover" inherit_id="website.s_cover">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_half_screen_height pt128 pb128" remove="pt96 pb96" separator=" "/>
<attribute name="class" add="o_half_screen_height pt128 pb128" remove="pt232 pb232" separator=" "/>
</xpath>
<!-- Title -->
<xpath expr="//h1" position="replace" mode="inner">
@@ -16,10 +16,6 @@
<br/>
<br/>
</xpath>
<!-- Button -->
<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
</xpath>
+1 -1
View File
@@ -4,7 +4,7 @@
<template id="s_cover" inherit_id="website.s_cover">
<!-- Section -->
<xpath expr="//section" position="attributes">
<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=" "/>
<attribute name="class" add="pt200 pb200" remove="pt232 pb232 s_parallax_bg parallax s_parallax_is_fixed bg-black-50" separator=" "/>
<attribute name="data-oe-shape-data">{"shape":"web_editor/Floats/02","flip":[]}</attribute>
</xpath>
<!-- Shape -->
@@ -23,9 +23,6 @@
We create architecture, landscapes, interiors, product design and graphic design.<br/>
Our methods allow us to explore a future that is equitable, data-driven, and green.
</xpath>
<xpath expr="//a[hasclass('btn')]" position="attributes">
<attribute name="class" add="btn-lg" separator=" "/>
</xpath>
</template>
<!-- ======== PICTURE ======== -->
+6 -6
View File
@@ -36,7 +36,7 @@
<template id="new_page_template_about_s_cover" inherit_id="website.new_page_template_about_s_cover">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_half_screen_height o_cc5" remove="o_full_screen_height" separator=" "/>
<attribute name="class" add="o_half_screen_height o_cc5" remove="o_full_screen_height o_cc4" separator=" "/>
</xpath>
</template>
@@ -44,19 +44,19 @@
<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" add="o_cc5" separator=" "/>
<attribute name="class" add="o_cc5" remove="o_cc4" separator=" "/>
</xpath>
</template>
<template id="new_page_template_landing_2_s_cover" inherit_id="website.new_page_template_landing_2_s_cover">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_half_screen_height o_cc5" remove="o_full_screen_height" separator=" "/>
<attribute name="class" add="o_half_screen_height o_cc5" remove="o_full_screen_height o_cc4" separator=" "/>
</xpath>
</template>
<template id="new_page_template_landing_4_s_cover" inherit_id="website.new_page_template_landing_4_s_cover">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" separator=" "/>
<attribute name="class" add="o_cc5" remove="o_cc4" separator=" "/>
</xpath>
</template>
@@ -64,7 +64,7 @@
<template id="new_page_template_gallery_s_cover" inherit_id="website.new_page_template_gallery_s_cover">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_half_screen_height o_cc5" remove="o_full_screen_height" separator=" "/>
<attribute name="class" add="o_half_screen_height o_cc5" remove="o_full_screen_height o_cc4" separator=" "/>
</xpath>
</template>
@@ -80,7 +80,7 @@
<template id="new_page_template_pricing_s_cover" inherit_id="website.new_page_template_pricing_s_cover">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_half_screen_height o_cc5" remove="o_full_screen_height" separator=" "/>
<attribute name="class" add="o_half_screen_height o_cc5" remove="o_full_screen_height o_cc4" separator=" "/>
</xpath>
</template>
+1 -1
View File
@@ -4,7 +4,7 @@
<template id="s_cover" inherit_id="website.s_cover">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="pt192 pb192" remove="pt96 pb96 s_parallax_is_fixed" separator=" "/>
<attribute name="class" add="pt192 pb192" remove="pt232 pb232 s_parallax_is_fixed" separator=" "/>
</xpath>
<xpath expr="//span[hasclass('s_parallax_bg')]" position="replace">
<span class="s_parallax_bg oe_img_bg" style="background-image: url('/web/image/website.s_cover_default_image'); background-position: 50% 50%;"/>
+1 -1
View File
@@ -4,7 +4,7 @@
<template id="s_cover" inherit_id="website.s_cover">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_full_screen_height bg-black-15 o_cc o_cc5" remove="bg-black-50" separator=" "/>
<attribute name="class" add="o_full_screen_height bg-black-15 o_cc5" remove="bg-black-50 o_cc4" separator=" "/>
</xpath>
<!-- Change position of background image -->
<xpath expr="//span[hasclass('s_parallax_bg')]" position="attributes">
+1 -5
View File
@@ -4,7 +4,7 @@
<!-- ======== COVER ======== -->
<template id="s_cover" inherit_id="website.s_cover" name="Be Wise s_cover">
<xpath expr="//section" position="attributes">
<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=" "/>
<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=" "/>
<attribute name="style">background-image: url('/web/image/website.s_cover_default_image'); background-position: 50% 50%;</attribute>
<attribute name="data-oe-shape-data">{"shape":"web_editor/Rainy/08_001","flip":[]}</attribute>
<attribute name="data-scroll-background-ratio">0</attribute>
@@ -15,10 +15,6 @@
</xpath>
<!-- Remove the background image for parallax -->
<xpath expr="//span[hasclass('s_parallax_bg')]" position="replace"/>
<!-- Button -->
<xpath expr="//a[hasclass('btn')]" position="attributes">
<attribute name="class" add="btn-lg btn-secondary" remove="btn-primary" separator=" "/>
</xpath>
<!-- Title -->
<xpath expr="//h1" position="replace" mode="inner">
Always at the top
+1 -1
View File
@@ -4,7 +4,7 @@
<template id="s_cover" inherit_id="website.s_cover">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc o_cc5 pt112 pb112" remove="pt96 pb96 bg-black-50" separator=" "/>
<attribute name="class" add="o_cc5 pt112 pb112" remove="pt232 pb232 bg-black-50 o_cc4" separator=" "/>
<attribute name="data-oe-shape-data">{"shape":"web_editor/Airy/03_001","flip":[]}</attribute>
</xpath>
<!-- Filter -->
+1 -1
View File
@@ -12,7 +12,7 @@
</xpath>
<!-- Title & Paragraph -->
<xpath expr="//h1" position="replace" mode="inner">
<b>Sell from your couch</b>
Sell from your couch
</xpath>
<xpath expr="//p[hasclass('lead')]" position="replace" mode="inner">
Make your finances reach a new level with our online management system. <br/>Track every penny, directly from the comfort of your home.
+1 -3
View File
@@ -2,9 +2,7 @@
<odoo>
<template id="s_cover" inherit_id="website.s_cover">
<xpath expr="//a" position="attributes">
<attribute name="class" add="btn-secondary" remove="btn-primary" separator=" "/>
</xpath>
<xpath expr="//a[@t-att-href='cta_btn_href'][2]" position="replace"/>
</template>
</odoo>
+2 -2
View File
@@ -4,7 +4,7 @@
<!-- ======== COVER ======== -->
<template id="s_cover" inherit_id="website.s_cover" name="Graphene s_cover">
<xpath expr="//section" position="attributes">
<attribute name="class" add="pt160 pb240 s_parallax_no_overflow_hidden" remove="pt96 pb96 s_parallax_is_fixed s_parallax" separator=" "/>
<attribute name="class" add="pt160 pb240 s_parallax_no_overflow_hidden o_cc3" remove="pt232 pb232 s_parallax_is_fixed s_parallax o_cc4" separator=" "/>
</xpath>
<xpath expr="//h1" position="replace"/>
<xpath expr="//p" position="replace"/>
@@ -13,7 +13,7 @@
<div class="row">
<div class="col col-lg-11">
<h1 style="text-align: right;">
<b>Making the difference.</b>
Making the difference.
</h1>
<p class="lead o_default_snippet_text" style="text-align: right">
Our mission is to give customers the best experience.<br/>Extensive documentation &amp; guides, an active community,<br/>24/7 support make it a pleasure to work with us.
+1 -1
View File
@@ -25,7 +25,7 @@
</xpath>
<!-- Button -->
<xpath expr="//a[hasclass('btn')]" position="replace">
<a href="#0" class="btn btn-lg btn-primary">Discover more</a>
<a href="#0" class="btn btn-primary">Discover more</a>
</xpath>
</template>
+4 -3
View File
@@ -4,7 +4,7 @@
<template id="s_cover" inherit_id="website.s_cover">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_full_screen_height o_cc o_cc1" remove="bg-black-50" separator=" "/>
<attribute name="class" add="o_full_screen_height o_cc1" remove="bg-black-50 o_cc4" separator=" "/>
<attribute name="data-oe-shape-data">{"shape":"web_editor/Floats/14"}</attribute>
</xpath>
@@ -44,9 +44,10 @@
</xpath>
<!-- Button -->
<xpath expr="//a[hasclass('btn')]" position="attributes">
<attribute name="class" add="btn-lg" separator=" "/>
<xpath expr="//a[@t-att-href='cta_btn_href'][1]" position="attributes">
<attribute name="class" add="btn-primary" remove="btn-secondary" separator=" "/>
</xpath>
<xpath expr="//a[@t-att-href='cta_btn_href'][2]" position="replace"/>
</template>
</odoo>
+5 -4
View File
@@ -4,11 +4,11 @@
<template id="s_cover" inherit_id="website.s_cover">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_full_screen_height pt232" remove="pt96" separator=" "/>
<attribute name="class" add="o_full_screen_height o_cc3" remove="o_cc4" separator=" "/>
</xpath>
<!-- Title -->
<xpath expr="//h1" position="replace" mode="inner">
<b>Bringing life to your interior</b>
Bringing life to your interior
</xpath>
<!-- Paragraphs -->
<xpath expr="//p[hasclass('lead')]" position="replace" mode="inner">
@@ -21,9 +21,10 @@
<xpath expr="//a[hasclass('btn')]/t" position="replace" mode="inner">
Discover More
</xpath>
<xpath expr="//a[hasclass('btn')]" position="attributes">
<attribute name="class" add="btn-lg" separator=" "/>
<xpath expr="//a[@t-att-href='cta_btn_href'][1]" position="attributes">
<attribute name="class" add="btn-primary" remove="btn-secondary" separator=" "/>
</xpath>
<xpath expr="//a[@t-att-href='cta_btn_href'][2]" position="replace"/>
</template>
</odoo>
+6 -4
View File
@@ -33,7 +33,7 @@
<template id="s_cover" inherit_id="website.s_cover" name="Monglia s_cover">
<!-- Customize elements -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_full_screen_height o_cc o_cc5" separator=" "/>
<attribute name="class" add="o_full_screen_height o_cc5" remove="o_cc4" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('o_we_bg_filter')]" position="replace">
<div class="o_we_bg_filter bg-black-25"/>
@@ -48,9 +48,6 @@
<xpath expr="//p[3]" position="attributes">
<attribute name="style" add="text-align: left;" remove="text-align: center;" separator=";"/>
</xpath>
<xpath expr="//a[hasclass('btn')]" position="attributes">
<attribute name="class" add="btn-lg" separator=" "/>
</xpath>
<!-- Create column -->
<xpath expr="//div[hasclass('container')]" position="inside">
<div class="row">
@@ -65,6 +62,11 @@
<h2>21/22 December</h2><br/>
<xpath expr="//div[hasclass('container')]/p" position="move"/>
</xpath>
<!-- Button -->
<xpath expr="//a[@t-att-href='cta_btn_href'][1]" position="attributes">
<attribute name="class" add="btn-primary" remove="btn-secondary" separator=" "/>
</xpath>
<xpath expr="//a[@t-att-href='cta_btn_href'][2]" position="replace"/>
</template>
<!-- ======== MEDIA LIST ======== -->
+1 -1
View File
@@ -4,7 +4,7 @@
<template id="s_cover" inherit_id="website.s_cover">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc o_cc5 pt200 pb200" remove="parallax s_parallax_is_fixed bg-black-50 pt96 pb96" separator=" "/>
<attribute name="class" add="o_cc5 pt200 pb200" remove="parallax s_parallax_is_fixed bg-black-50 pt232 pb232 o_cc4" separator=" "/>
<attribute name="data-scroll-background-ratio">0</attribute>
<attribute name="style">background-image: url('/web/image/website.s_cover_default_image'); background-position: 50% 0;</attribute>
</xpath>
+1 -1
View File
@@ -4,7 +4,7 @@
<template id="s_cover" inherit_id="website.s_cover">
<!-- Title -->
<xpath expr="//h1" position="replace" mode="inner">
<b>Discover <br/>the Miraillet Festival</b>
Discover <br/>the Miraillet Festival
</xpath>
</template>
+1 -1
View File
@@ -15,7 +15,7 @@
<!-- ==== Cover ===== -->
<template id="s_cover" inherit_id="website.s_cover" name="Paptic s_cover">
<xpath expr="//section" position="attributes">
<attribute name="class" add="pb0 pt192 o_cc o_cc5" remove="pt96 pb96 bg-black-50 s_parallax_is_fixed s_parallax" separator=" "/>
<attribute name="class" add="pb0 pt192 o_cc5" remove="pt232 pb232 bg-black-50 s_parallax_is_fixed s_parallax o_cc4" separator=" "/>
<attribute name="data-scroll-background-ratio">0</attribute>
</xpath>
+2 -2
View File
@@ -4,14 +4,14 @@
<template id="s_cover" inherit_id="website.s_cover">
<!-- Section -->
<xpath expr="section" position="attributes">
<attribute name="class" add="pt160 pb160" remove="pt96 pb96" separator=" "/>
<attribute name="class" add="pt160 pb160" remove="pt232 pb232" separator=" "/>
</xpath>
<!-- Title -->
<xpath expr="//h1" position="before">
<i class="fa fa-2x fa-bug d-block my-3 mx-auto rounded-circle bg-o-color-4 text-o-color-1"/>
</xpath>
<xpath expr="//h1" position="replace" mode="inner">
<font style="font-size: 62px;"><b>— Life on Earth —</b></font>
<font style="font-size: 62px;">— Life on Earth —</font>
</xpath>
<!-- Paragraphs -->
<xpath expr="//p" position="replace" mode="inner">
+1 -1
View File
@@ -4,7 +4,7 @@
<!-- ======== COVER ======== -->
<template id="s_cover" inherit_id="website.s_cover" name="Vehicle s_cover">
<xpath expr="section" position="attributes">
<attribute name="class" remove="pt96 pb96" add="o_full_screen_height pt0 pb256" separator=" "/>
<attribute name="class" remove="pt232 pb232" add="o_full_screen_height pt0 pb256" separator=" "/>
</xpath>
<xpath expr="//h1" position="replace" mode="inner">
The New KORAN X
+1 -1
View File
@@ -4,7 +4,7 @@
<template id="s_cover" inherit_id="website.s_cover">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_half_screen_height pt208 pb256" remove="pt96 pb96" separator=" "/>
<attribute name="class" add="o_half_screen_height pt208 pb256" remove="pt232 pb232" separator=" "/>
</xpath>
<!-- Filter -->
<xpath expr="//*[hasclass('container')]" position="before">