mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
76e9cbcdb6
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
X-original-commit: f3da06dc68
Part-of: odoo/design-themes#744
76 lines
2.8 KiB
XML
76 lines
2.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<template id="s_masonry_block_default_template" inherit_id="website.s_masonry_block_default_template">
|
|
<!-- Little block #1 -->
|
|
<!-- Main div -->
|
|
<xpath expr="//div[hasclass('col-lg-3')]" position="attributes">
|
|
<attribute name="data-oe-shape-data">{"shape":"web_editor/Rainy/10","flip":[]}</attribute>
|
|
</xpath>
|
|
<xpath expr="//div[hasclass('col-lg-3')]/h3" position="before">
|
|
<div class="o_we_shape o_web_editor_Rainy_10"/>
|
|
</xpath>
|
|
<!-- Title -->
|
|
<xpath expr="//div[hasclass('col-lg-3')]/h3" position="replace" mode="inner">
|
|
Science fiction
|
|
</xpath>
|
|
<!-- Paragraph -->
|
|
<xpath expr="//div[hasclass('col-lg-3')]/p" position="replace" mode="inner">
|
|
Discover unknown universes
|
|
</xpath>
|
|
|
|
<!-- Little block #2 -->
|
|
<!-- Main div -->
|
|
<xpath expr="//div[hasclass('col-lg-3')][2]" position="attributes">
|
|
<attribute name="data-oe-shape-data">{"shape":"web_editor/Airy/02","flip":[]}</attribute>
|
|
</xpath>
|
|
<xpath expr="//div[hasclass('col-lg-3')][2]/h3" position="before">
|
|
<div class="o_we_shape o_web_editor_Airy_02"/>
|
|
</xpath>
|
|
<!-- Title -->
|
|
<xpath expr="//div[hasclass('col-lg-3')][2]/h3" position="replace" mode="inner">
|
|
Biographies
|
|
</xpath>
|
|
<!-- Paragraph -->
|
|
<xpath expr="//div[hasclass('col-lg-3')][2]/p" position="replace" mode="inner">
|
|
Meet great people
|
|
</xpath>
|
|
|
|
<!-- Little block #3 -->
|
|
<!-- Main div -->
|
|
<xpath expr="//div[hasclass('col-lg-3')][3]" position="attributes">
|
|
<attribute name="class" add="o_cc5" remove="bg-200 o_cc4" separator=" "/>
|
|
<attribute name="data-oe-shape-data">{"shape":"web_editor/Rainy/04","flip":[]}</attribute>
|
|
</xpath>
|
|
<xpath expr="//div[hasclass('col-lg-3')][3]/h3" position="before">
|
|
<div class="o_we_shape o_web_editor_Rainy_04"/>
|
|
</xpath>
|
|
<!-- Title -->
|
|
<xpath expr="//div[hasclass('col-lg-3')][3]/h3" position="replace" mode="inner">
|
|
Horror
|
|
</xpath>
|
|
<!-- Paragraph -->
|
|
<xpath expr="//div[hasclass('col-lg-3')][3]/p" position="replace" mode="inner">
|
|
Enjoy your fears
|
|
</xpath>
|
|
|
|
<!-- Little block #4 -->
|
|
<!-- Main div -->
|
|
<xpath expr="//div[hasclass('col-lg-3')][4]" position="attributes">
|
|
<attribute name="data-oe-shape-data">{"shape":"web_editor/Wavy/26","flip":[]}</attribute>
|
|
</xpath>
|
|
<xpath expr="//div[hasclass('col-lg-3')][4]/h3" position="before">
|
|
<div class="o_we_shape o_web_editor_Wavy_26"/>
|
|
</xpath>
|
|
<!-- Title -->
|
|
<xpath expr="//div[hasclass('col-lg-3')][4]/h3" position="replace" mode="inner">
|
|
Romance
|
|
</xpath>
|
|
<!-- Paragraph -->
|
|
<xpath expr="//div[hasclass('col-lg-3')][4]/p" position="replace" mode="inner">
|
|
Read the best love stories
|
|
</xpath>
|
|
</template>
|
|
|
|
</odoo>
|