mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
66aa5f3080
*: 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#527
X-original-commit: 1b4b65ff81
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
26 lines
1.1 KiB
XML
26 lines
1.1 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="o_cc o_cc5 pt200 pb200" remove="parallax s_parallax_is_fixed bg-black-50 pt96 pb96" separator=" "/>
|
|
<attribute name="data-scroll-background-ratio">0</attribute>
|
|
<attribute name="data-oe-shape-data">{"shape":"web_editor/Bold/12_001","flip":["x"]}</attribute>
|
|
<attribute name="style">background-image: url('/web/image/website.s_cover_default_image'); background-position: 50% 0;</attribute>
|
|
</xpath>
|
|
<xpath expr="//*[hasclass('container')]" position="before">
|
|
<div class="o_we_shape o_web_editor_Bold_12_001 o_we_flip_x"/>
|
|
</xpath>
|
|
<xpath expr="//*[hasclass('s_parallax_bg')]" position="replace"/>
|
|
<!-- Title & Text -->
|
|
<xpath expr="//h1//font" position="replace" mode="inner">
|
|
Creative Studio
|
|
</xpath>
|
|
<xpath expr="//p" position="replace" mode="inner">
|
|
We combine smart design with rich technology <br/>to craft innovative products.
|
|
</xpath>
|
|
</template>
|
|
|
|
</odoo>
|