mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
1b4b65ff81
*: theme_kea, theme_orchid, theme_nano The theme customization of the cover snippet was not perfect for those themes. In particular for the Kea theme where the text was not forced to white anymore (leaving the default black) and the background filter was pratically removed, leaving the snippet's text properly contrast with light brackgrounds but be barely visible with dark backgrounds. Unfortunately, the Kea theme is the most used currently, alongside the "Software company" industry... which uses a dark background for the cover image. closes odoo/design-themes#526 Signed-off-by: Romain Derie (rde) <rde@odoo.com>
24 lines
804 B
XML
24 lines
804 B
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="o_half_screen_height" separator=" "/>
|
|
<attribute name="data-oe-shape-data">{"shape":"web_editor/Wavy/01_001","flip":[]}</attribute>
|
|
</xpath>
|
|
<!-- Shape -->
|
|
<xpath expr="//div[hasclass('container')]" position="before">
|
|
<div class="o_we_shape o_web_editor_Wavy_01_001"/>
|
|
</xpath>
|
|
<!-- Title -->
|
|
<xpath expr="//h1" position="replace" mode="inner">
|
|
Live life in full bloom
|
|
</xpath>
|
|
<!-- Remove paragraphs & button -->
|
|
<xpath expr="//p[hasclass('lead')]" position="replace"/>
|
|
<xpath expr="//p" position="replace"/>
|
|
</template>
|
|
|
|
</odoo>
|