Files
design-themes/theme_artists/views/snippets/s_carousel.xml
T
Robin Lejeune (role) a86d9f73df [FIX] theme_*: remove mb-2 class on orphan buttons
*: anelusia, artists, aviato, graphene, kiddo, loftspace, monglia,
notes, odoo_experts, paptic, test_custo, yes

The community PR [125824] introduces an automatic check on buttons to
add the `mb-2` class when several buttons follow each other, so that
they have space to breathe when split on multiple lines.
For consistency, this commit therefore removes most `mb-2` occurrences
on buttons within themes as long as they are alone on their line, but
keeps or adds the class when several buttons are next to each other.

[125824]: https://github.com/odoo/odoo/pull/125824

task-3369604

closes odoo/design-themes#680

Related: odoo/odoo#125824
Signed-off-by: Benjamin Vray (bvr) <bvr@odoo.com>
2023-08-03 19:30:56 +02:00

70 lines
3.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_carousel" inherit_id="website.s_carousel">
<!-- Carousel-item #01 -->
<xpath expr="//div[hasclass('carousel-item')]" position="attributes">
<attribute name="data-oe-shape-data">{"shape":"web_editor/Origins/16","flip":[]}</attribute>
<attribute name="class" add="o_cc o_cc5" separator=" "/>
</xpath>
<!-- Shape & filter -->
<xpath expr="//div[hasclass('carousel-item')]//div[hasclass('container')]" position="before">
<div class="o_we_bg_filter bg-black-25"/>
<div class="o_we_shape o_web_editor_Origins_16"/>
</xpath>
<!-- Content -->
<xpath expr="//div[hasclass('carousel-item')]//div[hasclass('carousel-content')]" position="replace">
<div class="carousel-content col-lg-12 pb112 pt112">
<h2 style="text-align: center;">Aquitani</h2>
<p class="lead" style="text-align: center;"><b>Photoshoot / June 2021</b></p>
<p style="text-align: center;">
<a href="#" class="btn btn-primary btn-lg">Discover</a>
</p>
</div>
</xpath>
<!-- Carousel-item #02 -->
<xpath expr="//div[hasclass('carousel-item')][2]" position="attributes">
<attribute name="data-oe-shape-data">{"shape":"web_editor/Origins/16","flip":["y"]}</attribute>
<attribute name="class" add="o_cc o_cc5 pt152 pb152" remove="pt96 pb96" separator=" "/>
</xpath>
<!-- Shape & filter -->
<xpath expr="//div[hasclass('carousel-item')][2]//div[hasclass('container')]" position="before">
<div class="o_we_bg_filter bg-black-25"/>
<div class="o_we_shape o_web_editor_Origins_16" style="background-image: url('/web_editor/shape/web_editor/Origins/16.svg?c3=o-color-5&amp;flip=y'); background-position: 50% 50%;"/>
</xpath>
<!-- Content -->
<xpath expr="//div[hasclass('carousel-item')][2]//div[hasclass('carousel-content')]" position="replace">
<div class="carousel-content col-lg-12 pb112 pt112">
<h2 style="text-align: center;">Immemorabili</h2>
<p class="lead" style="text-align: center;"><b>Painting concept / April 2021</b></p>
<p style="text-align: center;">
<a href="#" class="btn btn-primary btn-lg">Discover</a>
</p>
</div>
</xpath>
<!-- Carousel-item #03 -->
<xpath expr="//div[hasclass('carousel-item')][3]" position="attributes">
<attribute name="data-oe-shape-data">{"shape":"web_editor/Origins/16","flip":[]}</attribute>
<attribute name="class" add="o_cc o_cc5 pt152 pb152" remove="pb112 pt112" separator=" "/>
</xpath>
<!-- Shape & filter -->
<xpath expr="//div[hasclass('carousel-item')][3]//div[hasclass('container')]" position="before">
<div class="o_we_bg_filter bg-black-25"/>
<div class="o_we_shape o_web_editor_Origins_16"/>
</xpath>
<!-- Title -->
<xpath expr="//div[hasclass('carousel-item')][3]//div[hasclass('carousel-content')]" position="replace">
<div class="carousel-content col-lg-12 pb112 pt112">
<h2 style="text-align: center;">Vincam</h2>
<p class="lead" style="text-align: center;"><b>Typographic collection / March 2021</b></p>
<p style="text-align: center;">
<a href="#" class="btn btn-primary btn-lg">Discover</a>
</p>
</div>
</xpath>
</template>
</odoo>