mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[IMP] theme_loftspace: adapt s_banner
Since the redesign of the original banner snippet, the customizations made in theme_loftspace have had to be adapted. task-3097005 Part-of: odoo/design-themes#687
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 61 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
@@ -43,7 +43,17 @@ Check in primary_variables.scss and theme.scss -->
|
|||||||
<record id="s_banner_default_image" model="theme.ir.attachment">
|
<record id="s_banner_default_image" model="theme.ir.attachment">
|
||||||
<field name="key">website.s_banner_default_image</field>
|
<field name="key">website.s_banner_default_image</field>
|
||||||
<field name="name">website.s_banner_default_image</field>
|
<field name="name">website.s_banner_default_image</field>
|
||||||
<field name="url">/theme_loftspace/static/src/img/snippets/s_banner.jpg</field>
|
<field name="url">/theme_loftspace/static/src/img/snippets/s_banner.jpg</field>
|
||||||
|
</record>
|
||||||
|
<record id="s_banner_default_image_2" model="theme.ir.attachment">
|
||||||
|
<field name="key">website.s_banner_default_image_2</field>
|
||||||
|
<field name="name">website.s_banner_default_image_2</field>
|
||||||
|
<field name="url">/theme_loftspace/static/src/img/snippets/s_banner_2.jpg</field>
|
||||||
|
</record>
|
||||||
|
<record id="s_banner_default_image_3" model="theme.ir.attachment">
|
||||||
|
<field name="key">website.s_banner_default_image_3</field>
|
||||||
|
<field name="name">website.s_banner_default_image_3</field>
|
||||||
|
<field name="url">/theme_loftspace/static/src/img/snippets/s_banner_3.jpg</field>
|
||||||
</record>
|
</record>
|
||||||
<record id="s_popup_default_image" model="theme.ir.attachment">
|
<record id="s_popup_default_image" model="theme.ir.attachment">
|
||||||
<field name="key">website.s_popup_default_image</field>
|
<field name="key">website.s_popup_default_image</field>
|
||||||
|
|||||||
@@ -4,31 +4,14 @@
|
|||||||
<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="pt144 pb144 o_cc o_cc5" remove="pt96 pb96 s_parallax_is_fixed" separator=" "/>
|
<attribute name="class" add="o_cc o_cc4" separator=" "/>
|
||||||
<attribute name="data-oe-shape-data">{"shape":"web_editor/Floats/07","flip":[]}</attribute>
|
|
||||||
<attribute name="data-scroll-background-ratio">-3</attribute>
|
|
||||||
</xpath>
|
|
||||||
<!-- Parallax -->
|
|
||||||
<xpath expr="//span[hasclass('s_parallax_bg')]" position="attributes">
|
|
||||||
<attribute name="style">background-image: url('/web/image/website.s_banner_default_image');</attribute>
|
|
||||||
</xpath>
|
|
||||||
<!-- Add shape -->
|
|
||||||
<xpath expr="//div[hasclass('container')]" position="before">
|
|
||||||
<div class="o_we_shape o_web_editor_Floats_07"/>
|
|
||||||
</xpath>
|
|
||||||
<!-- Jumbotron -->
|
|
||||||
<xpath expr="//div[hasclass('jumbotron')]" position="attributes">
|
|
||||||
<attribute name="class" remove="o_cc o_cc1" separator=" "/>
|
|
||||||
</xpath>
|
</xpath>
|
||||||
<!-- Title -->
|
<!-- Title -->
|
||||||
<xpath expr="//h1" position="replace" mode="inner">
|
<xpath expr="//h1" position="replace" mode="inner">
|
||||||
<b>The art of Design</b>
|
The art of Design
|
||||||
</xpath>
|
|
||||||
<xpath expr="//h1" position="after">
|
|
||||||
<p><br/></p>
|
|
||||||
</xpath>
|
</xpath>
|
||||||
<!-- Paragraph -->
|
<!-- Paragraph -->
|
||||||
<xpath expr="//p[2]" position="replace" mode="inner">
|
<xpath expr="//p" position="replace" mode="inner">
|
||||||
Our products are designed for small to medium size companies willing to optimize their performance.
|
Our products are designed for small to medium size companies willing to optimize their performance.
|
||||||
</xpath>
|
</xpath>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user