Files
design-themes/theme_buzzy/views/snippets/s_three_columns.xml
T
Benoit Socias f3da06dc68 [FIX] theme_*: remove duplicate and conflicting classes
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
2023-11-04 00:38:17 +00:00

66 lines
2.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_three_columns" inherit_id="website.s_three_columns">
<!-- Column #1 -->
<!-- Img -->
<xpath expr="//div[hasclass('card')]//img" position="attributes">
<attribute name="style">padding: 32px !important;</attribute>
<!-- Enable SVG dynamic color functionality -->
<attribute name="src">/web_editor/shape/theme_buzzy/s_three_columns-01.svg?c1=o-color-1</attribute>
</xpath>
<!-- Title -->
<xpath expr="//div[hasclass('card')]//h3" position="replace" mode="inner">
Built to <br/>your effigy
</xpath>
<!-- Paragraph -->
<xpath expr="//div[hasclass('card')]//p" position="replace" mode="inner">
You will always find the ideal choice adapted to your needs. From the basic website based on our attractive templates to the tailor-made website reflecting your company's values.
</xpath>
<!-- Column #2 -->
<!-- Img -->
<xpath expr="(//div[hasclass('card')])[2]//img" position="attributes">
<attribute name="style">padding: 32px !important;</attribute>
<!-- Enable SVG dynamic color functionality -->
<attribute name="src">/web_editor/shape/theme_buzzy/s_three_columns-02.svg?c1=o-color-1</attribute>
</xpath>
<!-- Title -->
<xpath expr="(//div[hasclass('card')])[2]//h3" position="replace" mode="inner">
Editable from <br/>A to Z
</xpath>
<!-- Paragraph -->
<xpath expr="(//div[hasclass('card')])[2]//p" position="replace" mode="inner">
Feel free to edit your content the way like you want. You don't need to know any technical and complex computer language. You will helped by our intuitive tools.
</xpath>
<!-- Column #3 -->
<!-- Img -->
<xpath expr="(//div[hasclass('card')])[3]//img" position="attributes">
<attribute name="style">padding: 32px !important;</attribute>
<!-- Enable SVG dynamic color functionality -->
<attribute name="src">/web_editor/shape/theme_buzzy/s_three_columns-03.svg?c1=o-color-1</attribute>
</xpath>
<!-- Title -->
<xpath expr="(//div[hasclass('card')])[3]//h3" position="replace" mode="inner">
All data <br/>in your hands
</xpath>
<!-- Paragraph -->
<xpath expr="(//div[hasclass('card')])[3]//p" position="replace" mode="inner">
Don't miss any data anymore and get all reports you need when and where you want. Analyze them easily with our friendly interface and grow your activity.
</xpath>
</template>
<template id="configurator_s_three_columns" inherit_id="website.configurator_s_three_columns">
<!-- Shape option -->
<xpath expr="//section" position="attributes">
<attribute name="data-oe-shape-data">{"shape":"web_editor/Airy/12_001","flip":[]}</attribute>
</xpath>
<!-- Shape -->
<xpath expr="//div[hasclass('container')]" position="before">
<div class="o_we_shape o_web_editor_Airy_12_001"/>
</xpath>
</template>
</odoo>