mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[IMP] theme_*: remove some snippets hard coded background color
This is the direct following of the PR [1].
Some themes "hard code" the background colors of some snippets, which
prevents the user to change it with a preset color without deleting the
current background first.
This commit does two things:
- remove the problematic hard coded background colors;
- replace the colors that are removed by some themes by the ones that
were set in [1] (for the searchbar and text highlight snippets).
[1]: https://github.com/odoo/odoo/pull/90749
task-2824393
closes odoo/design-themes#604
X-original-commit: 7d193e0560
Related: odoo/odoo#103123
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
committed by
qsm-odoo
parent
628880b71b
commit
6c79fc30a7
@@ -4,7 +4,7 @@
|
|||||||
<template id="s_image_text" inherit_id="website.s_image_text">
|
<template id="s_image_text" inherit_id="website.s_image_text">
|
||||||
<!-- Section -->
|
<!-- Section -->
|
||||||
<xpath expr="//section" position="attributes">
|
<xpath expr="//section" position="attributes">
|
||||||
<attribute name="class" add="pt64 pb64 bg-200" remove="pt32 pb32" separator=" "/>
|
<attribute name="class" add="pt64 pb64" remove="pt32 pb32" separator=" "/>
|
||||||
</xpath>
|
</xpath>
|
||||||
<!-- Image -->
|
<!-- Image -->
|
||||||
<xpath expr="//img" position="attributes">
|
<xpath expr="//img" position="attributes">
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<template id="s_text_image" inherit_id="website.s_text_image">
|
<template id="s_text_image" inherit_id="website.s_text_image">
|
||||||
<!-- Section -->
|
<!-- Section -->
|
||||||
<xpath expr="//section" position="attributes">
|
<xpath expr="//section" position="attributes">
|
||||||
<attribute name="class" add="pt80 pb80 bg-200" remove="o_cc o_cc2 pt32 pb32" separator=" "/>
|
<attribute name="class" add="pt80 pb80" remove="o_cc o_cc2 pt32 pb32" separator=" "/>
|
||||||
</xpath>
|
</xpath>
|
||||||
<!-- Image -->
|
<!-- Image -->
|
||||||
<xpath expr="//img" position="attributes">
|
<xpath expr="//img" position="attributes">
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<template id="s_text_highlight" inherit_id="website.s_text_highlight">
|
<template id="s_text_highlight" inherit_id="website.s_text_highlight">
|
||||||
<!-- Main div -->
|
<!-- Main div -->
|
||||||
<xpath expr="//div[hasclass('s_text_highlight')]" position="attributes">
|
<xpath expr="//div[hasclass('s_text_highlight')]" position="attributes">
|
||||||
<attribute name="class" add="o_cc o_cc4" remove="bg-secondary" separator=" "/>
|
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
|
||||||
</xpath>
|
</xpath>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -159,7 +159,7 @@
|
|||||||
<!-- ==== Picture ===== -->
|
<!-- ==== Picture ===== -->
|
||||||
<template id="s_picture" inherit_id="website.s_picture" name="Cobalt s_picture">
|
<template id="s_picture" inherit_id="website.s_picture" name="Cobalt s_picture">
|
||||||
<xpath expr="//section" position="attributes">
|
<xpath expr="//section" position="attributes">
|
||||||
<attribute name="class" add="bg-o-color-3 pt72 overflow-hidden" remove="o_cc o_cc2 pt48" separator=" "/>
|
<attribute name="class" add="pt72 overflow-hidden" remove="o_cc o_cc2 pt48" separator=" "/>
|
||||||
<attribute name="data-oe-shape-data">{"shape":"web_editor/Bold/01","flip":["y"]}</attribute>
|
<attribute name="data-oe-shape-data">{"shape":"web_editor/Bold/01","flip":["y"]}</attribute>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//section/div" position="before">
|
<xpath expr="//section/div" position="before">
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<template id="s_image_text" inherit_id="website.s_image_text">
|
<template id="s_image_text" inherit_id="website.s_image_text">
|
||||||
<!-- Section -->
|
<!-- Section -->
|
||||||
<xpath expr="//section" position="attributes">
|
<xpath expr="//section" position="attributes">
|
||||||
<attribute name="class" add="pt80 pb80 bg-200" remove="pt32 pb32" separator=" "/>
|
<attribute name="class" add="pt80 pb80" remove="pt32 pb32" separator=" "/>
|
||||||
</xpath>
|
</xpath>
|
||||||
<!-- Image -->
|
<!-- Image -->
|
||||||
<xpath expr="//img" position="attributes">
|
<xpath expr="//img" position="attributes">
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<template id="s_three_columns" inherit_id="website.s_three_columns">
|
<template id="s_three_columns" inherit_id="website.s_three_columns">
|
||||||
<!-- Section -->
|
<!-- Section -->
|
||||||
<xpath expr="//section" position="attributes">
|
<xpath expr="//section" position="attributes">
|
||||||
<attribute name="class" add="pt80 pb80 bg-200" remove="pt32 pb32 o_cc o_cc2" separator=" "/>
|
<attribute name="class" add="pt80 pb80" remove="pt32 pb32 o_cc o_cc2" separator=" "/>
|
||||||
</xpath>
|
</xpath>
|
||||||
<!-- Column #01 -->
|
<!-- Column #01 -->
|
||||||
<xpath expr="(//*[hasclass('card-title')])[1]" position="replace" mode="inner">
|
<xpath expr="(//*[hasclass('card-title')])[1]" position="replace" mode="inner">
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<template id="s_image_text" inherit_id="website.s_image_text">
|
<template id="s_image_text" inherit_id="website.s_image_text">
|
||||||
<!-- Section -->
|
<!-- Section -->
|
||||||
<xpath expr="//section" position="attributes">
|
<xpath expr="//section" position="attributes">
|
||||||
<attribute name="class" add="pt80 pb80 bg-200" remove="pt32 pb32" separator=" "/>
|
<attribute name="class" add="pt80 pb80 o_colored_level o_cc o_cc2" remove="pt32 pb32" separator=" "/>
|
||||||
</xpath>
|
</xpath>
|
||||||
<!-- Image -->
|
<!-- Image -->
|
||||||
<xpath expr="//img" position="attributes">
|
<xpath expr="//img" position="attributes">
|
||||||
|
|||||||
Reference in New Issue
Block a user