mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[FIX] theme_*: fix s_text_cover design
This commit has two main goals: 1. Adapt the copy of the `s_text_cover` snippet to fit each theme 2. Introduce custom images for each themes, as the `s_text_cover` was always using the same image until now This commit also fixes some conflicting classes due to a change of `background-color` in the default snippet. task-4119904 Part of task-3619705 Part-of: odoo/design-themes#919 Related: odoo/odoo#180736 Signed-off-by: Benjamin Vray (bvr) <bvr@odoo.com> Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
committed by
qsm-odoo
parent
05fdc8e75f
commit
3243aef15b
@@ -495,6 +495,11 @@
|
||||
<field name="name">website.s_quadrant_default_image_4</field>
|
||||
<field name="url">/theme_nano/static/src/img/snippets/s_media_list_02.jpg</field>
|
||||
</record>
|
||||
<record id="s_text_cover_default_image" model="theme.ir.attachment">
|
||||
<field name="key">website.s_text_cover_default_image</field>
|
||||
<field name="name">website.s_text_cover_default_image</field>
|
||||
<field name="url">/theme_nano/static/src/img/snippets/s_images_wall_05.jpg</field>
|
||||
</record>
|
||||
|
||||
<!-- Wavy Grid -->
|
||||
<record id="s_wavy_grid_default_image_1" model="theme.ir.attachment">
|
||||
|
||||
@@ -114,12 +114,6 @@
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="new_page_template_about_s_text_cover" inherit_id="website.new_page_template_about_s_text_cover">
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" add="o_cc5" remove="o_cc2" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="new_page_template_about_full_1_s_text_block_h1" inherit_id="website.new_page_template_about_full_1_s_text_block_h1">
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" add="pb0" remove="pb40 pt40" separator=" "/>
|
||||
@@ -329,12 +323,6 @@
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="new_page_template_services_s_text_cover" inherit_id="website.new_page_template_services_s_text_cover">
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" add="o_cc5" remove="o_cc2" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="new_page_template_services_s_text_image" inherit_id="website.new_page_template_services_s_text_image">
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" remove="pt48 pb48" separator=" "/>
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<template id="s_text_cover" inherit_id="website.s_text_cover">
|
||||
<!-- Section -->
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user