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>
31 lines
1.4 KiB
XML
31 lines
1.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<template id="s_cover" inherit_id="website.s_cover">
|
|
<!-- Section -->
|
|
<xpath expr="//section" position="attributes">
|
|
<attribute name="class" add="pt224 pb200" remove="pt232 pb232 parallax s_parallax_is_fixed bg-black-50" separator=" "/>
|
|
<attribute name="data-oe-shape-data">{'shape':'html_builder/Connections/20','colors':{'c5': 'o-color-1'},'flip':['y'], 'showOnMobile':true}</attribute>
|
|
</xpath>
|
|
<!-- Shape -->
|
|
<xpath expr="//div[hasclass('container')]" position="before">
|
|
<div class="o_we_shape o_html_builder_Connections_20 o_we_animated" style="background-image: url('/html_editor/shape/html_builder/Connections/20.svg?c5=o-color-1&flip=y'); background-position: 50% 0%;"/>
|
|
</xpath>
|
|
<!-- Remove filter & parallax -->
|
|
<xpath expr="//div[hasclass('o_we_bg_filter')]" position="replace"/>
|
|
<xpath expr="//span[hasclass('s_parallax_bg_wrap')]" position="replace"/>
|
|
<!-- Title -->
|
|
<xpath expr="//h1" position="replace" mode="inner">
|
|
Emotions <br/>through the colors
|
|
</xpath>
|
|
<xpath expr="//h1" position="after">
|
|
<p><br/></p>
|
|
</xpath>
|
|
<!-- Button -->
|
|
<xpath expr="//a[hasclass('btn-secondary')]" position="attributes">
|
|
<attribute name="class" add="btn-primary" remove="btn-secondary" separator=" "/>
|
|
</xpath>
|
|
</template>
|
|
|
|
</odoo>
|