mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[IMP] theme_*: adapt some themes to the grid-only Masonry snippet
The Masonry snippet has been modified to be only in grid mode and its templates have therefore been changed. This commit adapts the themes that modify the Masonry templates to be in accordance with these changes. See community counterpart for details. task-2973198 closes odoo/design-themes#592 Related: odoo/odoo#99857 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
committed by
qsm-odoo
parent
4f3b5b9f29
commit
ef84cdf84d
@@ -3,11 +3,11 @@
|
||||
|
||||
<template id="s_masonry_block_default_template" inherit_id="website.s_masonry_block_default_template">
|
||||
<!-- Block #01 -->
|
||||
<xpath expr="//div[hasclass('col-lg-6')][2]//div[hasclass('col-lg-6')]" position="attributes">
|
||||
<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)[2]" position="replace" mode="inner">
|
||||
<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>
|
||||
</xpath>
|
||||
<!-- Block #02 -->
|
||||
@@ -17,7 +17,7 @@
|
||||
<xpath expr="//h3" position="replace" mode="inner">
|
||||
Super <b>Easy</b>
|
||||
</xpath>
|
||||
<xpath expr="(//p)[3]" position="replace" mode="inner"/>
|
||||
<xpath expr="(//p)[2]" position="replace" mode="inner"/>
|
||||
<!-- Block #03 -->
|
||||
<xpath expr="(//h3)[2]" position="before">
|
||||
<i class="fa fa-2x fa-rocket text-o-color-1 rounded-circle shadow mx-auto my-3"/>
|
||||
@@ -25,13 +25,14 @@
|
||||
<xpath expr="(//h3)[2]" position="replace" mode="inner">
|
||||
Super <b>Fast</b>
|
||||
</xpath>
|
||||
<xpath expr="(//p)[4]" position="replace" mode="inner"/>
|
||||
<xpath expr="(//p)[3]" position="replace" mode="inner"/>
|
||||
<!-- Block #04 -->
|
||||
<xpath expr="(//h3)[3]" position="replace" mode="inner"/>
|
||||
<xpath expr="(//p)[5]" position="replace" mode="inner"/>
|
||||
<xpath expr="//*[hasclass('col-lg-6')][2]//*[hasclass('col-lg-6')][4]" position="attributes">
|
||||
<attribute name="class" add="oe_img_bg" separator=" "/>
|
||||
<attribute name="style" add="background-image: url('/web/image/website.s_masonry_block_default_image_2'); background-position: 50% 0%;" separator=" "/>
|
||||
<xpath expr="//*[hasclass('col-lg-3')][4]" position="attributes">
|
||||
<attribute name="class" add="o_grid_item_image" remove="o_cc o_cc2" separator=" "/>
|
||||
<attribute name="contenteditable" add="false" 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>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user