mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[IMP] theme_*: extract shapes to configurator-dedicated templates
This commit extracts the pre-defined section shapes from blocks into templates that are dedicated to being used by the configurator. For blocks that are not used in configurator pages, the configurator templates have not been created. task-3381714 Part-of: odoo/design-themes#692
This commit is contained in:
@@ -5,11 +5,6 @@
|
||||
<!-- Section -->
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" add="o_half_screen_height" separator=" "/>
|
||||
<attribute name="data-oe-shape-data">{"shape":"web_editor/Wavy/01_001","flip":[]}</attribute>
|
||||
</xpath>
|
||||
<!-- Shape -->
|
||||
<xpath expr="//div[hasclass('container')]" position="before">
|
||||
<div class="o_we_shape o_web_editor_Wavy_01_001"/>
|
||||
</xpath>
|
||||
<!-- Title -->
|
||||
<xpath expr="//h1" position="replace" mode="inner">
|
||||
@@ -20,4 +15,15 @@
|
||||
<xpath expr="//p" position="replace"/>
|
||||
</template>
|
||||
|
||||
<template id="configurator_s_cover" inherit_id="website.configurator_s_cover">
|
||||
<!-- Shape option -->
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="data-oe-shape-data">{"shape":"web_editor/Wavy/01_001","flip":[]}</attribute>
|
||||
</xpath>
|
||||
<!-- Shape -->
|
||||
<xpath expr="//div[hasclass('container')]" position="before">
|
||||
<div class="o_we_shape o_web_editor_Wavy_01_001"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -5,11 +5,6 @@
|
||||
<!-- Section -->
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" add="o_cc o_cc2 pb104" remove="pb32" separator=" "/>
|
||||
<attribute name="data-oe-shape-data">{"shape":"web_editor/Wavy/04","flip":["x"]}</attribute>
|
||||
</xpath>
|
||||
<!-- Shape -->
|
||||
<xpath expr="//div[hasclass('container')]" position="before">
|
||||
<div class="o_we_shape o_web_editor_Wavy_04" style="background-image: url('/web_editor/shape/web_editor/Wavy/04.svg?c1=o-color-1&c5=o-color-1&flip=x'); background-position: 50% 100%;"/>
|
||||
</xpath>
|
||||
<!-- Text wrapper -->
|
||||
<xpath expr="//div[hasclass('col-lg-6')][2]" position="attributes">
|
||||
@@ -36,4 +31,15 @@
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="configurator_s_image_text" inherit_id="website.configurator_s_image_text">
|
||||
<!-- Shape option -->
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="data-oe-shape-data">{"shape":"web_editor/Wavy/04","flip":["x"]}</attribute>
|
||||
</xpath>
|
||||
<!-- Shape -->
|
||||
<xpath expr="//div[hasclass('container')]" position="before">
|
||||
<div class="o_we_shape o_web_editor_Wavy_04" style="background-image: url('/web_editor/shape/web_editor/Wavy/04.svg?c1=o-color-1&c5=o-color-1&flip=x'); background-position: 50% 100%;"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -5,6 +5,12 @@
|
||||
<!-- Section -->
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" add="o_cc3" remove="o_cc2" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="configurator_s_numbers" inherit_id="website.configurator_s_numbers">
|
||||
<!-- Shape option -->
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="data-oe-shape-data">{"shape":"web_editor/Floats/12","flip":[]}</attribute>
|
||||
</xpath>
|
||||
<!-- Shape -->
|
||||
|
||||
@@ -5,11 +5,6 @@
|
||||
<!-- Quotes carousel -->
|
||||
<xpath expr="//div[hasclass('s_quotes_carousel')]" position="attributes">
|
||||
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
|
||||
<attribute name="data-oe-shape-data">{"shape":"web_editor/Wavy/22","flip":[]}</attribute>
|
||||
</xpath>
|
||||
<!-- Shape -->
|
||||
<xpath expr="//ol[hasclass('carousel-indicators')]" position="before">
|
||||
<div class="o_we_shape o_web_editor_Wavy_22"/>
|
||||
</xpath>
|
||||
<!-- Quote 1 -->
|
||||
<xpath expr="(//div[hasclass('s_blockquote_content')])[1]/p" position="replace" mode="inner">
|
||||
@@ -50,4 +45,15 @@
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="configurator_s_quotes_carousel" inherit_id="website.configurator_s_quotes_carousel">
|
||||
<!-- Shape option -->
|
||||
<xpath expr="//div[hasclass('s_quotes_carousel')]" position="attributes">
|
||||
<attribute name="data-oe-shape-data">{"shape":"web_editor/Wavy/22","flip":[]}</attribute>
|
||||
</xpath>
|
||||
<!-- Shape -->
|
||||
<xpath expr="//ol[hasclass('carousel-indicators')]" position="before">
|
||||
<div class="o_we_shape o_web_editor_Wavy_22"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -5,11 +5,6 @@
|
||||
<!-- Section -->
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" add="pt64 pb64" remove="pt32 pb32" separator=" "/>
|
||||
<attribute name="data-oe-shape-data">{"shape":"web_editor/Wavy/07","flip":["x"]}</attribute>
|
||||
</xpath>
|
||||
<!-- Shape -->
|
||||
<xpath expr="//div[hasclass('container')]" position="before">
|
||||
<div class="o_we_shape o_web_editor_Wavy_07" style="background-image: url('/web_editor/shape/web_editor/Wavy/07.svg?c3=o-color-1&flip=x'); background-position: 50% 0%;"/>
|
||||
</xpath>
|
||||
<!-- Row -->
|
||||
<xpath expr="//div[hasclass('row')]" position="attributes">
|
||||
@@ -45,4 +40,15 @@
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="configurator_s_text_image" inherit_id="website.configurator_s_text_image">
|
||||
<!-- Shape option -->
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="data-oe-shape-data">{"shape":"web_editor/Wavy/07","flip":["x"]}</attribute>
|
||||
</xpath>
|
||||
<!-- Shape -->
|
||||
<xpath expr="//div[hasclass('container')]" position="before">
|
||||
<div class="o_we_shape o_web_editor_Wavy_07" style="background-image: url('/web_editor/shape/web_editor/Wavy/07.svg?c3=o-color-1&flip=x'); background-position: 50% 0%;"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -5,11 +5,6 @@
|
||||
<!-- Section -->
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" add="o_cc1 pt80 pb80" remove="o_cc2 pt32 pb32" separator=" "/>
|
||||
<attribute name="data-oe-shape-data">{"shape":"web_editor/Wavy/04","flip":[]}</attribute>
|
||||
</xpath>
|
||||
<!-- Shape -->
|
||||
<xpath expr="//div[hasclass('container')]" position="before">
|
||||
<div class="o_we_shape o_web_editor_Wavy_04"/>
|
||||
</xpath>
|
||||
<!-- Row -->
|
||||
<xpath expr="//div[hasclass('row')]" position="attributes">
|
||||
@@ -80,4 +75,15 @@
|
||||
</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/Wavy/04","flip":[]}</attribute>
|
||||
</xpath>
|
||||
<!-- Shape -->
|
||||
<xpath expr="//div[hasclass('container')]" position="before">
|
||||
<div class="o_we_shape o_web_editor_Wavy_04"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user