mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
127a07fdc5
*: anelusia, avantgarde, beauty, bistro, bookstore, enark, kiddo, loftspace, monglia, nano, notes, odoo_experts, paptic, real_estate, treehouse, yes, zap In the community PR, the `s_card_offset` snippet has been modified in order to not be in `display: flex` anymore. The visual was then kept as close as possible to how it was before by using the grid padding. This commit adapts this snippet customizations to these changes. More precisely, it adapts the vertical padding to the text content, in order to center it a bit while avoiding having an overflow. Related to task-4105038 Part-of: odoo/design-themes#915 Related: odoo/odoo#180515 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
32 lines
1.2 KiB
XML
32 lines
1.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<template id="s_card_offset" inherit_id="website.s_card_offset">
|
|
<!-- Section -->
|
|
<xpath expr="//section" position="attributes">
|
|
<attribute name="class" add="o_cc4" remove="o_cc1" separator=" "/>
|
|
</xpath>
|
|
<!-- Grid items -->
|
|
<xpath expr="(//div[hasclass('o_grid_item')])[2]" position="attributes">
|
|
<attribute name="style" add="--grid-item-padding-y: 56px;" remove="--grid-item-padding-y: 40px;" separator=";"/>
|
|
</xpath>
|
|
<!-- Image -->
|
|
<xpath expr="//img" position="attributes">
|
|
<attribute name="src">/web/image/website.s_carousel_default_image_3</attribute>
|
|
</xpath>
|
|
<!-- Title -->
|
|
<xpath expr="//h3" position="replace" mode="inner">
|
|
Unveil Your Natural Beauty
|
|
</xpath>
|
|
<!-- Paragraph 1 -->
|
|
<xpath expr="(//p[hasclass('lead')])[1]" position="replace" mode="inner">
|
|
Enhance your natural beauty with our range of skincare and cosmetic products. Our experts provide personalized care to help you look and feel your best every day.
|
|
</xpath>
|
|
<!-- Paragraph 2 -->
|
|
<xpath expr="(//p[hasclass('lead')])[2]" position="replace" mode="inner">
|
|
Discover the beauty within you.
|
|
</xpath>
|
|
</template>
|
|
|
|
</odoo>
|