[IMP] theme_beauty: adapt s_banner
Since the redesign of the original banner snippet, the customizations made in theme_beauty 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: 64 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 8.3 KiB |
@@ -43,7 +43,17 @@ Check in theme_loftspace's 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_beauty/static/src/img/snippets/s_banner.jpg</field>
|
<field name="url">/theme_beauty/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_beauty/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_beauty/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,15 +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="pt168 pb168" remove="pt48 pb24" separator=" "/>
|
<attribute name="class" add="o_cc o_cc3" separator=" "/>
|
||||||
</xpath>
|
|
||||||
<!-- Change position of background image -->
|
|
||||||
<xpath expr="//span[hasclass('s_parallax_bg')]" position="attributes">
|
|
||||||
<attribute name="style" add="background-position: 50% 100%;" remove="background-position: 50% 0;" separator=";"/>
|
|
||||||
</xpath>
|
|
||||||
<!-- Jumbotron -->
|
|
||||||
<xpath expr="//div[hasclass('col-lg-6')]" position="attributes">
|
|
||||||
<attribute name="class" add="o_cc3" remove="o_cc1" separator=" "/>
|
|
||||||
</xpath>
|
</xpath>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user