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:
@@ -4,13 +4,11 @@
|
||||
<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">
|
||||
@@ -25,13 +23,11 @@
|
||||
|
||||
<!-- 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&flip=y'); background-position: 50% 50%;"/>
|
||||
</xpath>
|
||||
<!-- Content -->
|
||||
<xpath expr="//div[hasclass('carousel-item')][2]//div[hasclass('carousel-content')]" position="replace">
|
||||
@@ -46,13 +42,11 @@
|
||||
|
||||
<!-- 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">
|
||||
@@ -66,4 +60,33 @@
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="configurator_s_carousel" inherit_id="website.configurator_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>
|
||||
</xpath>
|
||||
<!-- Shape -->
|
||||
<xpath expr="//div[hasclass('carousel-item')]//div[hasclass('container')]" position="before">
|
||||
<div class="o_we_shape o_web_editor_Origins_16"/>
|
||||
</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>
|
||||
</xpath>
|
||||
<!-- Shape -->
|
||||
<xpath expr="//div[hasclass('carousel-item')][2]//div[hasclass('container')]" position="before">
|
||||
<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&flip=y'); background-position: 50% 50%;"/>
|
||||
</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>
|
||||
</xpath>
|
||||
<!-- Shape -->
|
||||
<xpath expr="//div[hasclass('carousel-item')][3]//div[hasclass('container')]" position="before">
|
||||
<div class="o_we_shape o_web_editor_Origins_16"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user