[IMP] theme_nano: adapt s_banner
Since the redesign of the original banner snippet, the customizations made in theme_nano 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: 68 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 8.1 KiB |
@@ -168,6 +168,16 @@
|
|||||||
<field name="name">website.s_banner_default_image</field>
|
<field name="name">website.s_banner_default_image</field>
|
||||||
<field name="url">/theme_nano/static/src/img/snippets/s_banner.jpg</field>
|
<field name="url">/theme_nano/static/src/img/snippets/s_banner.jpg</field>
|
||||||
</record>
|
</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_nano/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_nano/static/src/img/snippets/s_banner_3.jpg</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
<!-- Cover -->
|
<!-- Cover -->
|
||||||
<record id="s_cover_default_image" model="theme.ir.attachment">
|
<record id="s_cover_default_image" model="theme.ir.attachment">
|
||||||
|
|||||||
@@ -4,19 +4,7 @@
|
|||||||
<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="pt256 o_cc o_cc5" remove="pt96 pb96" separator=" "/>
|
<attribute name="class" add="o_cc o_cc5" separator=" "/>
|
||||||
<attribute name="style" add="background-position: 50% 100%;" remove="background-position: 50% 0;" separator=" "/>
|
|
||||||
<attribute name="data-oe-shape-data">{"shape":"web_editor/Bold/12_001"}</attribute>
|
|
||||||
</xpath>
|
|
||||||
<xpath expr="//*[hasclass('container')]" position="before">
|
|
||||||
<div class="o_we_shape o_web_editor_Bold_12_001"/>
|
|
||||||
</xpath>
|
|
||||||
<xpath expr="//*[hasclass('container')]" position="attributes">
|
|
||||||
<attribute name="class" add="container-fluid" remove="container" separator=" "/>
|
|
||||||
</xpath>
|
|
||||||
<!-- Box -->
|
|
||||||
<xpath expr="//*[hasclass('jumbotron')]" position="attributes">
|
|
||||||
<attribute name="class" add="o_cc5" remove="o_cc1" separator=" "/>
|
|
||||||
</xpath>
|
</xpath>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user