[IMP] theme_buzzy: adapt s_banner
Since the redesign of the original banner snippet, the customizations made in theme_buzzy have had to be adapted. task-3097005 Part-of: odoo/design-themes#687
This commit is contained in:
@@ -4,30 +4,44 @@
|
|||||||
<template id="s_banner" inherit_id="website.s_banner">
|
<template id="s_banner" inherit_id="website.s_banner">
|
||||||
<!-- Section -->
|
<!-- Section -->
|
||||||
<xpath expr="//section" position="attributes">
|
<xpath expr="//section" position="attributes">
|
||||||
<attribute name="class" add="pb120 pt256 oe_img_bg o_bg_img_center" remove="pt96 pb96 parallax s_parallax_is_fixed" separator=" "/>
|
<attribute name="class" add="pb120 pt256 oe_img_bg o_bg_img_center" remove="pt96 pb96" separator=" "/>
|
||||||
<attribute name="data-oe-shape-data">{"shape":"web_editor/Origins/02_001","flip":[]}</attribute>
|
<attribute name="data-oe-shape-data">{"shape":"web_editor/Origins/02_001","flip":[]}</attribute>
|
||||||
<attribute name="data-scroll-background-ratio">0</attribute>
|
|
||||||
<!-- Enable SVG dynamic color functionality -->
|
<!-- Enable SVG dynamic color functionality -->
|
||||||
<attribute name="style">background-image:url('/web_editor/shape/theme_buzzy/s_banner.svg?c1=o-color-1'); background-position: 50% 37%</attribute>
|
<attribute name="style">background-image:url('/web_editor/shape/theme_buzzy/s_banner.svg?c1=o-color-1'); background-position: 50% 37%</attribute>
|
||||||
</xpath>
|
</xpath>
|
||||||
<!-- Remove parallax -->
|
<!-- Remove grid images -->
|
||||||
<xpath expr="//span[hasclass('s_parallax_bg')]" position="replace"/>
|
<xpath expr="//div[hasclass('o_grid_item_image')]" position="replace"/>
|
||||||
|
<xpath expr="//div[hasclass('o_grid_item_image')]" position="replace"/>
|
||||||
|
<xpath expr="//div[hasclass('o_grid_item_image')]" position="replace"/>
|
||||||
|
<!-- Remove hr -->
|
||||||
|
<xpath expr="//div[hasclass('s_hr')]" position="replace"/>
|
||||||
<!-- Shape -->
|
<!-- Shape -->
|
||||||
<xpath expr="//div[hasclass('container')]" position="before">
|
<xpath expr="//div[hasclass('container')]" position="before">
|
||||||
<div class="o_we_shape o_web_editor_Origins_02_001"/>
|
<div class="o_we_shape o_web_editor_Origins_02_001"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
|
<!-- Row - remove grid mode -->
|
||||||
|
<xpath expr="//div[hasclass('row')]" position="attributes">
|
||||||
|
<attribute name="class" remove="o_grid_mode" separator=" "/>
|
||||||
|
</xpath>
|
||||||
<!-- Jumbotron -->
|
<!-- Jumbotron -->
|
||||||
<xpath expr="//div[hasclass('col-lg-6')]" position="attributes">
|
<xpath expr="//div[hasclass('col-lg-5')]" position="attributes">
|
||||||
<attribute name="class" add="shadow" separator=" "/>
|
<attribute name="class" add="col-lg-6 o_cc o_cc1 pt32 pb32 shadow rounded" remove="o_grid_item g-height-4 g-col-lg-5 col-lg-5" separator=" "/>
|
||||||
|
<attribute name="style"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
<!-- Title -->
|
<!-- Title -->
|
||||||
|
<xpath expr="//h1" position="attributes">
|
||||||
|
<attribute name="class" remove="display-1" separator=" "/>
|
||||||
|
</xpath>
|
||||||
<xpath expr="//h1" position="replace" mode="inner">
|
<xpath expr="//h1" position="replace" mode="inner">
|
||||||
Great software <br/>for great people
|
Great software <br/>for great people
|
||||||
</xpath>
|
</xpath>
|
||||||
<!-- Paragraph -->
|
<!-- Paragraphs -->
|
||||||
<xpath expr="//p[hasclass('lead')]" position="replace" mode="inner">
|
<xpath expr="//p[hasclass('lead')]" position="replace" mode="inner">
|
||||||
Every clever company deserve to work with clever tools.
|
Every clever company deserve to work with clever tools.
|
||||||
</xpath>
|
</xpath>
|
||||||
|
<xpath expr="//div[hasclass('col-lg-6')]//p[2]" position="attributes">
|
||||||
|
<attribute name="class" add="mb-0" separator=" "/>
|
||||||
|
</xpath>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|||||||
Reference in New Issue
Block a user