[IMP] theme_bookstore, *: adapt to new s_masonry_block design

*: theme_notes, theme_real_estate, theme_yes, theme_zap, theme_vehicle

Along with xPath adaptations, this commit also replaces a pixelated
image in the 'theme_yes'.

task-3665303
part of task-3619705

closes odoo/design-themes#839

Related: odoo/odoo#173870
Signed-off-by: Soukéina Bojabza (sobo) <sobo@odoo.com>
This commit is contained in:
stefanorigano (SRI)
2024-07-22 08:54:32 +02:00
parent c75a090759
commit 57cf8bb724
7 changed files with 67 additions and 107 deletions
+11 -8
View File
@@ -3,9 +3,6 @@
<template id="s_masonry_block_default_template" inherit_id="website.s_masonry_block_default_template">
<!-- Block #01 -->
<xpath expr="//div[hasclass('col-lg-3')]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="//h3" position="replace"/>
<xpath expr="//p" position="replace" mode="inner">
<em class="lead">Maintain a position of constant change<br/> and evolution, while always aiming<br/> for your success.</em>
@@ -17,6 +14,9 @@
<xpath expr="//h3" position="replace" mode="inner">
Super <b>Easy</b>
</xpath>
<xpath expr="//h3" position="attributes">
<attribute name="class" add="text-center" separator=" "/>
</xpath>
<xpath expr="(//p)[2]" position="replace" mode="inner"/>
<!-- Block #03 -->
<xpath expr="(//h3)[2]" position="before">
@@ -25,13 +25,16 @@
<xpath expr="(//h3)[2]" position="replace" mode="inner">
Super <b>Fast</b>
</xpath>
<xpath expr="(//h3)[2]" position="attributes">
<attribute name="class" add="text-center" separator=" "/>
</xpath>
<xpath expr="(//p)[3]" position="replace" mode="inner"/>
<!-- Block #04 -->
<xpath expr="//*[hasclass('col-lg-3')][4]" position="attributes">
<attribute name="class" add="o_grid_item_image" remove="o_cc o_cc2" separator=" "/>
</xpath>
<xpath expr="//*[hasclass('col-lg-3')][4]" position="replace" mode="inner">
<img src="/web/image/website.s_masonry_block_default_image_2" class="img img-fluid mx-auto" alt=""/>
<xpath expr="//*[hasclass('col-lg-3')][2]" position="replace" mode="inner"/>
<xpath expr="//*[hasclass('col-lg-3')][2]" position="attributes">
<attribute name="style" add="background-image:url(/web/image/website.s_masonry_block_default_image_2)" separator="; "/>
<attribute name="class" add="oe_img_bg o_bg_img_center" separator=" "/>
</xpath>
</template>