mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
69e951d47e
This commit adapts the themes to the new Parallax effect structure. We now wrap the parallax element in another element with "overflow: hidden" to avoid setting "overflow: hidden" on sections. That was causing elements like the dropdown of the search bar to be cut off and not fully visible. task-4926420 closes odoo/design-themes#1114 Related: odoo/odoo#218296 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
27 lines
1.1 KiB
XML
27 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<template id="s_image_title" inherit_id="website.s_image_title">
|
|
<!-- Layout -->
|
|
<xpath expr="//section" position="attributes">
|
|
<attribute name="class" add="parallax" separator=" "/>
|
|
<attribute name="style"/>
|
|
<attribute name="data-scroll-background-ratio">-3</attribute>
|
|
</xpath>
|
|
<xpath expr="//div[hasclass('o_we_bg_filter')]" position="before">
|
|
<span class="s_parallax_bg_wrap">
|
|
<span class="s_parallax_bg oe_img_bg o_bg_img_center" style="background-image: url('/web/image/website.s_image_title_default_image') !important;"/>
|
|
</span>
|
|
</xpath>
|
|
|
|
<!-- Texts -->
|
|
<xpath expr="//h1" position="replace" mode="inner">
|
|
A Deep Dive into Flavor and Innovation
|
|
</xpath>
|
|
<xpath expr="//p[hasclass('lead')]" position="replace" mode="inner">
|
|
Transform your dining experience with our new menu, where classic dishes meet modern creativity. Elevate your palate with flavors that blend tradition and innovation seamlessly.
|
|
</xpath>
|
|
</template>
|
|
|
|
</odoo>
|