mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[IMP] theme_bistro: adapt s_banner
Since the redesign of the original banner snippet, the customizations made in theme_bistro 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: 40 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
@@ -136,6 +136,16 @@
|
||||
<field name="name">website.s_banner_default_image</field>
|
||||
<field name="url">/theme_bistro/static/src/img/backgrounds/02.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_bistro/static/src/img/backgrounds/20.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_bistro/static/src/img/backgrounds/21.jpg</field>
|
||||
</record>
|
||||
|
||||
<!-- Cover -->
|
||||
<record id="s_cover_default_image" model="theme.ir.attachment">
|
||||
|
||||
@@ -4,12 +4,9 @@
|
||||
<template id="s_banner" inherit_id="website.s_banner">
|
||||
<!-- Section -->
|
||||
<xpath expr="section" position="attributes">
|
||||
<attribute name="class" add="o_half_screen_height" remove="parallax s_parallax_is_fixed" separator=" "/>
|
||||
<attribute name="data-scroll-background-ratio">0</attribute>
|
||||
<attribute name="style">background-image: url('/web/image/website.s_banner_default_image'); background-position: 50% 0;</attribute>
|
||||
<attribute name="class" add="o_cc o_cc5" separator=" "/>
|
||||
<attribute name="data-oe-shape-data">{"shape":"web_editor/Origins/09_001","flip":["x"]}</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//*[hasclass('s_parallax_bg')]" position="replace"/>
|
||||
<xpath expr="//*[hasclass('container')]" position="before">
|
||||
<div class="o_we_shape o_web_editor_Origins_09_001" style="background-image: url('/web_editor/shape/web_editor/Origins/09_001.svg?c3=o-color-2&flip=x'); background-position: 50% 0%;"/>
|
||||
</xpath>
|
||||
|
||||
Reference in New Issue
Block a user