mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
f3da06dc68
When default snippets have been updated to rely on color presets ([1]), some themes were not adapted accordingly. This also happened whenever paddings of base blocks were modified. Because of this there are elements in themes for which some classes are applied several times, and some where classes are not removed before adding a contradicting one. This commit adjusts the classes so that themes neither: - produce snippets with duplicated classes - produce snippets with contradicting classes (e.g. two different bottom paddings on the same element) This commit also fixes a typo from [2] which was the source of duplicate classes. [1]: https://github.com/odoo/odoo/commit/5953c4df6b9c08519f64a65c1cf5d5558d59f7d4 [2]: https://github.com/odoo/design-themes/commit/299d504df31bf179775eec1d37e71605c3637460#diff-86c142838104de06e89f629c51cf791464538dc8899e6a3f00c24f69638db409R34 task-3562147 Part-of: odoo/design-themes#731
43 lines
2.0 KiB
XML
43 lines
2.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<template id="s_quotes_carousel" inherit_id="website.s_quotes_carousel">
|
|
<!-- Carousel -->
|
|
<xpath expr="//*[hasclass('s_quotes_carousel')]" position="attributes">
|
|
<attribute name="class" add="s_carousel_rounded oe_img_bg o_bg_img_center" remove="s_carousel_default o_cc o_cc2" separator=" "/>
|
|
<attribute name="style">background-image: url('/web/image/website.s_quotes_carousel_demo_image_1');</attribute>
|
|
</xpath>
|
|
<!-- Slide #01 -->
|
|
<xpath expr="//*[hasclass('carousel-item')][1]" position="attributes">
|
|
<attribute name="class" add="pt120 pb120" remove="pt80 pb80" separator=" "/>
|
|
<attribute name="style">background-image: none;</attribute>
|
|
</xpath>
|
|
<xpath expr="//p[1]" position="replace" mode="inner">
|
|
Cosy and friendly, good atmosphere and super food. Especially the spiced fruit crumble.
|
|
</xpath>
|
|
<!-- Slide #02 -->
|
|
<xpath expr="//*[hasclass('carousel-item')][2]" position="attributes">
|
|
<attribute name="class" add="pt120 pb120" remove="pt80 pb80" separator=" "/>
|
|
<attribute name="style">background-image: none;</attribute>
|
|
</xpath>
|
|
<xpath expr="(//blockquote)[2]" position="attributes">
|
|
<attribute name="class" add="mx-auto" remove="me-auto" separator=" "/>
|
|
</xpath>
|
|
<xpath expr="(//p)[2]" position="replace" mode="inner">
|
|
This place is perfect for groups or a casual date night.
|
|
</xpath>
|
|
<!-- Slide #03 -->
|
|
<xpath expr="//*[hasclass('carousel-item')][3]" position="attributes">
|
|
<attribute name="class" add="pt120 pb120" remove="pt80 pb80" separator=" "/>
|
|
<attribute name="style">background-image: none;</attribute>
|
|
</xpath>
|
|
<xpath expr="(//blockquote)[3]" position="attributes">
|
|
<attribute name="class" add="mx-auto" remove="ms-auto" separator=" "/>
|
|
</xpath>
|
|
<xpath expr="(//p)[3]" position="replace" mode="inner">
|
|
A truly exquisite dining experience. I highly recommend the Mustard Sauce, out of this world.
|
|
</xpath>
|
|
</template>
|
|
|
|
</odoo>
|