[IMP] theme_*: adapt s_three_columns and s_comparisons

*: artists, avantgarde, aviato, bookstore, buzzy, clean, graphene, kea,
kiddo, loftspace, monglia, odoo_experts, orchid, paptic, real_estate,
vehicle

This commit mirrors the changes made to the `s_three_columns` and the
`s_comparisons` snippets, adding the use of the `s_card` snippet in them
in the community counterpart.

task-4115012
part of task-3619705

closes odoo/design-themes#868

Related: odoo/odoo#176684
Signed-off-by: Soukéina Bojabza (sobo) <sobo@odoo.com>
This commit is contained in:
stefanorigano (SRI)
2024-08-13 23:24:11 +02:00
committed by Soukéina Bojabza
parent d60776bdd2
commit e7a6c43233
17 changed files with 140 additions and 73 deletions
@@ -6,10 +6,20 @@
<xpath expr="//div[hasclass('row')]//div" position="attributes">
<attribute name="class" add="pt16" separator=" "/>
</xpath>
<xpath expr="//*[hasclass('card')]" position="attributes">
<attribute name="class" add="o_cc2" remove="o_cc1" separator=" "/>
</xpath>
<!-- Center card -->
<xpath expr="(//*[hasclass('card')])[2]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc1" separator=" "/>
</xpath>
<!-- Right card -->
<xpath expr="//div[hasclass('row')]//div[3]" position="attributes">
<attribute name="class" add="pt16" separator=" "/>
</xpath>
<xpath expr="(//*[hasclass('card')])[3]" position="attributes">
<attribute name="class" add="o_cc2" remove="o_cc1" separator=" "/>
</xpath>
</template>
</odoo>
@@ -7,21 +7,21 @@
<attribute name="class" add="o_cc1" remove="o_cc2" separator=" "/>
</xpath>
<!-- Column #1 -->
<xpath expr="//h3" position="replace" mode="inner">
<xpath expr="//h5" position="replace" mode="inner">
A Belgian Story
</xpath>
<xpath expr="//p[hasclass('card-text')]" position="replace" mode="inner">
Discover the history of Belgium in this well-documented book with many illustrations and testimonials.
</xpath>
<!-- Column #2 -->
<xpath expr="(//h3)[2]" position="replace" mode="inner">
<xpath expr="(//h5)[2]" position="replace" mode="inner">
At the Mars conquest
</xpath>
<xpath expr="(//p[hasclass('card-text')])[2]" position="replace" mode="inner">
Learn about the difficulties encountered by NASA engineers in sending the first men to Mars.
</xpath>
<!-- Column #3 -->
<xpath expr="(//h3)[3]" position="replace" mode="inner">
<xpath expr="(//h5)[3]" position="replace" mode="inner">
Re-edition
</xpath>
<xpath expr="(//p[hasclass('card-text')])[3]" position="replace" mode="inner">