[IMP] theme_enark: adapt s_banner
Since the redesign of the original banner snippet, the customizations made in theme_enark have had to be adapted. task-3097005 Part-of: odoo/design-themes#687
This commit is contained in:
@@ -4,9 +4,31 @@
|
|||||||
<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="o_full_screen_height" separator=" "/>
|
<attribute name="class" add="o_full_screen_height parallax s_parallax_is_fixed" separator=" "/>
|
||||||
|
<attribute name="data-scroll-background-ratio">1</attribute>
|
||||||
|
</xpath>
|
||||||
|
<xpath expr="//section/div" position="before">
|
||||||
|
<span class="s_parallax_bg oe_img_bg" style="background-image: url('/web/image/website.s_banner_default_image'); background-position: 50% 0;"/>
|
||||||
|
</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"/>
|
||||||
|
<!-- Row - remove grid mode -->
|
||||||
|
<xpath expr="//div[hasclass('row')]" position="attributes">
|
||||||
|
<attribute name="class" remove="o_grid_mode" separator=" "/>
|
||||||
|
</xpath>
|
||||||
|
<!-- Jumbotron -->
|
||||||
|
<xpath expr="//div[hasclass('col-lg-5')]" position="attributes">
|
||||||
|
<attribute name="class" add="col-lg-6 o_cc o_cc1 pt32 pb32 shadow rounded" remove="o_grid_item g-height-4 g-col-lg-5 col-lg-5" separator=" "/>
|
||||||
|
<attribute name="style"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
<!-- Title -->
|
<!-- Title -->
|
||||||
|
<xpath expr="//h1" position="attributes">
|
||||||
|
<attribute name="class" remove="display-1" separator=" "/>
|
||||||
|
</xpath>
|
||||||
<xpath expr="//h1" position="replace" mode="inner">
|
<xpath expr="//h1" position="replace" mode="inner">
|
||||||
A Different Viewpoint.
|
A Different Viewpoint.
|
||||||
</xpath>
|
</xpath>
|
||||||
@@ -14,8 +36,14 @@
|
|||||||
<xpath expr="//p" position="replace" mode="inner">
|
<xpath expr="//p" position="replace" mode="inner">
|
||||||
We are a contemporary architecture firm working mainly in the residential, commercial and office sectors. Our projects are built all over the world, in urban and natural environments.
|
We are a contemporary architecture firm working mainly in the residential, commercial and office sectors. Our projects are built all over the world, in urban and natural environments.
|
||||||
</xpath>
|
</xpath>
|
||||||
|
<xpath expr="//div[hasclass('col-lg-6')]//p[2]" position="attributes">
|
||||||
|
<attribute name="class" add="mb-0" separator=" "/>
|
||||||
|
</xpath>
|
||||||
<!-- Button -->
|
<!-- Button -->
|
||||||
<xpath expr="//t[@t-esc='cta_btn_text']" position="replace" mode="inner">
|
<xpath expr="//a[@t-att-href='cta_btn_href']" position="attributes">
|
||||||
|
<attribute name="class" remove="btn-lg" separator=" "/>
|
||||||
|
</xpath>
|
||||||
|
<xpath expr="//a[@t-att-href='cta_btn_href']" position="replace" mode="inner">
|
||||||
Discover More
|
Discover More
|
||||||
</xpath>
|
</xpath>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user