mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
8bc4a061d3
task-fp closes odoo/design-themes#1115 Related: odoo/odoo#218853 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
61 lines
2.9 KiB
XML
61 lines
2.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<template id="s_banner" inherit_id="website.s_banner">
|
|
<!-- Section -->
|
|
<xpath expr="//section" position="attributes">
|
|
<attribute name="class" add="o_full_screen_height oe_img_bg o_bg_img_center pb216 pt72 o_cc o_cc5" remove="pt96 pb96" separator=" "/>
|
|
<attribute name="style">background-image: url("/web/image/website.s_banner_default_image");</attribute>
|
|
<attribute name="data-oe-shape-data">{'shape':'web_editor/Wavy/22_001','colors':{'c5':'o-color-3'},'flip':['x'],'showOnMobile':true,'shapeAnimationSpeed':'0'}</attribute>
|
|
</xpath>
|
|
|
|
<!-- Row - remove grid mode -->
|
|
<xpath expr="//div[hasclass('row')]" position="attributes">
|
|
<attribute name="class" remove="o_grid_mode" separator=" "/>
|
|
<attribute name="data-row-count"/>
|
|
</xpath>
|
|
|
|
<!-- Remove grid images -->
|
|
<xpath expr="//div[hasclass('o_grid_item_image')]" position="replace"/>
|
|
<xpath expr="//div[hasclass('o_grid_item_image')]" position="replace"/>
|
|
<xpath expr="//div[hasclass('col-lg-5')][2]" position="replace"/>
|
|
|
|
<!-- Filter -->
|
|
<xpath expr="//div[hasclass('container')]" position="before">
|
|
<div class="o_we_bg_filter" style="background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.15) 100%) !important;"/>
|
|
</xpath>
|
|
|
|
<!-- Shape -->
|
|
<xpath expr="//div[hasclass('o_we_bg_filter')]" position="after">
|
|
<div class="o_we_shape o_web_editor_Wavy_22_001 o_shape_show_mobile" style="background-image: url('/web_editor/shape/web_editor/Wavy/22_001.svg?c5=o-color-3&flip=x'); background-position: 50% 100%;"/>
|
|
</xpath>
|
|
|
|
<!-- Paragraph -->
|
|
<xpath expr="//div[hasclass('col-lg-5')]" position="attributes">
|
|
<attribute name="class" add="col-lg-6 pt32 pb32" remove="o_grid_item g-height-10 g-col-lg-5 col-lg-5" separator=" "/>
|
|
<attribute name="style"/>
|
|
</xpath>
|
|
<xpath expr="//h1" position="replace" mode="inner">
|
|
A little place <br/>of paradise
|
|
</xpath>
|
|
<xpath expr="//p[hasclass('lead')]" position="replace" mode="inner">
|
|
This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.
|
|
</xpath>
|
|
<xpath expr="//div[hasclass('col-lg-6')]//p[2]" position="attributes">
|
|
<attribute name="class" add="mb-0" separator=" "/>
|
|
</xpath>
|
|
</template>
|
|
|
|
<template id="configurator_s_banner" inherit_id="website.configurator_s_banner">
|
|
<!-- Shape option -->
|
|
<xpath expr="//section" position="attributes">
|
|
<attribute name="data-oe-shape-data">{"shape":"web_editor/Wavy/22_001","flip":["x"]}</attribute>
|
|
</xpath>
|
|
<!-- Shape -->
|
|
<xpath expr="//div[hasclass('container')]" position="before">
|
|
<div class="o_we_shape o_web_editor_Wavy_22_001" style="background-image: url('/web_editor/shape/web_editor/Wavy/22_001.svg?c3=o-color-3&flip=x'); background-position: 50% 100%;"/>
|
|
</xpath>
|
|
</template>
|
|
|
|
</odoo>
|