mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[IMP] theme_kiddo: adapt s_banner
Since the redesign of the original banner snippet, the customizations made in theme_kiddo have had to be adapted. task-3097005 Part-of: odoo/design-themes#687
This commit is contained in:
@@ -4,14 +4,24 @@
|
||||
<template id="s_banner" inherit_id="website.s_banner">
|
||||
<!-- Section -->
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" add="s_parallax_no_overflow_hidden o_full_screen_height oe_img_bg o_bg_img_center pb216 pt72 o_cc o_cc5" remove="parallax s_parallax_is_fixed pt96 pb96" separator=" "/>
|
||||
<attribute name="class" add="s_parallax_no_overflow_hidden o_full_screen_height oe_img_bg o_bg_img_center pb216 pt72 o_cc o_cc5" remove="pt96 pb96" separator=" "/>
|
||||
<attribute name="data-scroll-background-ratio">0</attribute>
|
||||
<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","flip":["x"]}</attribute>
|
||||
</xpath>
|
||||
|
||||
<!-- Remove parallax bg -->
|
||||
<xpath expr="//span[hasclass('s_parallax_bg')]" position="replace"/>
|
||||
<!-- Row - remove grid mode -->
|
||||
<xpath expr="//div[hasclass('row')]" position="attributes">
|
||||
<attribute name="class" remove="o_grid_mode" separator=" "/>
|
||||
</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('o_grid_item_image')]" position="replace"/>
|
||||
|
||||
<!-- Remove hr -->
|
||||
<xpath expr="//div[hasclass('s_hr')]" position="replace"/>
|
||||
|
||||
<!-- Shape & filter -->
|
||||
<xpath expr="//div[hasclass('container')]" position="before">
|
||||
@@ -20,15 +30,19 @@
|
||||
</xpath>
|
||||
|
||||
<!-- Paragraph -->
|
||||
<xpath expr="//div[hasclass('col-lg-6')]" position="attributes">
|
||||
<attribute name="class" remove="o_cc o_cc1" separator=" "/>
|
||||
<xpath expr="//div[hasclass('col-lg-5')]" position="attributes">
|
||||
<attribute name="class" add="col-lg-6 pt32 pb32" remove="o_grid_item g-height-4 g-col-lg-5 col-lg-5" separator=" "/>
|
||||
<attribute name="style"/>
|
||||
</xpath>
|
||||
<xpath expr="//h1//font" position="replace" mode="inner">
|
||||
<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>
|
||||
<xpath expr="//div[hasclass('col-lg-6')]//p[2]" position="attributes">
|
||||
<attribute name="class" add="mb-0" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user