Files
design-themes/theme_yes/views/snippets/s_media_list.xml
T
Benoit Socias 796da67b29 [IMP] theme_*: restore base snippet shapes that do not connect blocks
In [1] all shapes were moved from the base snippet to the specific
configurator snippet. This was a bit overkill.

This commit reverts this partially so that only shapes that connect
with each other are specific to the configurator, but "intra-block"
shapes are restored onto the base snippet.
The "New page from template" snippets are adapted accordingly in order
to produce the same output as before this commit.

Restored shapes are: (label (image))
- Origins: 12 (18)
- Blob: 11 (11)
- Airy: 03 (03_001), 04 (04_001), 07 (07), 10 (10), 11 (11), 14 (14)
- Zigs: 01 (01_001), 02 (02_001)
- Wavy: 04 (10), 15 (11)
- Blocks: 02 (01_001)
- Rainy: 03 (06), 05 (10), 09 (08_001), 10 (09_001)
- Floats: all

[1]: https://github.com/odoo/design-themes/commit/d206c119720d557c11320ebb3d7339890b8f9efa

task-3555325

closes odoo/design-themes#726

Related: odoo/odoo#138748
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2023-10-25 09:56:42 +00:00

74 lines
4.0 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_media_list" inherit_id="website.s_media_list">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="pt64 pb64 o_cc1" remove="pt32 pb32 o_cc2" separator=" "/>
<attribute name="data-oe-shape-data">{"shape":"web_editor/Floats/12","flip":[]}</attribute>
</xpath>
<!-- Shape -->
<xpath expr="//div[hasclass('container')]" position="before">
<div class="o_we_shape o_web_editor_Floats_12"/>
</xpath>
<!-- Row #1 -->
<xpath expr="//div[hasclass('s_media_list_item')]" position="attributes">
<attribute name="class" add="col-lg-8" remove="col-lg-12" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('s_media_list_item')])//div[hasclass('row')]" position="attributes">
<attribute name="class" add="flex-row-reverse shadow rounded" separator=" "/>
</xpath>
<!-- Row #1 - Text -->
<xpath expr="//div[hasclass('s_media_list_body')]" position="replace">
<div class="col-lg-9 s_media_list_body">
<h3 class="card-title"><span style="font-size: 36px;">Engagement ceremonies</span></h3>
<p class="card-text">Well help you mark the engagement milestone with an unforgettable ceremony.</p>
<a href="#" class="btn btn-outline-primary">Start planning your engagement</a>
</div>
</xpath>
<!-- Row #1 - Image -->
<xpath expr="(//div[hasclass('s_media_list_item')])//div[hasclass('s_media_list_img_wrapper')]" position="attributes">
<attribute name="class" add="col-lg-3" remove="col-lg-4" separator=" "/>
</xpath>
<!-- Row #2 -->
<xpath expr="//div[hasclass('s_media_list_item')][2]" position="attributes">
<attribute name="class" add="pt24 pb24 col-lg-8 offset-lg-2" remove="pt16 pb16 col-lg-12" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('s_media_list_item')])[2]//div[hasclass('row')]" position="attributes">
<attribute name="class" add="flex-row-reverse shadow rounded o_cc5" remove="o_cc1" separator=" "/>
</xpath>
<!-- Row #2 - Text -->
<xpath expr="(//div[hasclass('s_media_list_body')])[2]" position="replace">
<div class="col-lg-9 s_media_list_body">
<h3 class="card-title"><span style="font-size: 36px;">Wedding Receptions</span></h3>
<p class="card-text">As a full service experience, we monitor all aspects of your wedding from planning to execution.</p>
<a href="#" class="btn btn-primary">Start planning your wedding</a>
</div>
</xpath>
<!-- Row #2 - Image -->
<xpath expr="(//div[hasclass('s_media_list_item')])[2]//div[hasclass('s_media_list_img_wrapper')]" position="attributes">
<attribute name="class" add="col-lg-3" remove="col-lg-4" separator=" "/>
</xpath>
<!-- Row #3 -->
<xpath expr="//div[hasclass('s_media_list_item')][3]" position="attributes">
<attribute name="class" add="col-lg-8 offset-lg-4" remove="col-lg-12" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('s_media_list_item')])[3]//div[hasclass('row')]" position="attributes">
<attribute name="class" add="flex-row-reverse shadow rounded" separator=" "/>
</xpath>
<!-- Row #3 - Text -->
<xpath expr="(//div[hasclass('s_media_list_body')])[3]" position="replace">
<div class="col-lg-9 s_media_list_body">
<h3 class="card-title"><span style="font-size: 36px;">Vow renewals</span></h3>
<p class="card-text">The heartfelt exchange of wedding vows is often the most memorable part of a marriage ceremony.</p>
<a href="#" class="btn btn-outline-primary">See how others renewed their vows</a>
</div>
</xpath>
<!-- Row #3 - Image -->
<xpath expr="(//div[hasclass('s_media_list_item')])[3]//div[hasclass('s_media_list_img_wrapper')]" position="attributes">
<attribute name="class" add="col-lg-3" remove="col-lg-4" separator=" "/>
</xpath>
</template>
</odoo>