[IMP] theme_anelusia, *: adapt s_quotes_carousel_compact

*: theme_artists, theme_clean, theme_enark, theme_loftspace, theme_nano,
theme_notes

This commit adapts customizations for `s_quotes_carousel_compact`.

task-4174008
Part of task-4077427

closes odoo/design-themes#993

Related: odoo/odoo#184670
Signed-off-by: Serge Bayet (seba) <seba@odoo.com>
This commit is contained in:
Brieuc-brd
2024-10-22 10:01:35 +02:00
parent bd8ff4cb1d
commit b2beaaffa0
14 changed files with 141 additions and 0 deletions
+1
View File
@@ -48,6 +48,7 @@
'views/snippets/s_three_columns.xml',
'views/snippets/s_quotes_carousel.xml',
'views/snippets/s_quotes_carousel_minimal.xml',
'views/snippets/s_quotes_carousel_compact.xml',
'views/snippets/s_unveil.xml',
'views/snippets/s_image_hexagonal.xml',
'views/snippets/s_numbers_showcase.xml',
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_quotes_carousel_compact" inherit_id="website.s_quotes_carousel_compact">
<xpath expr="//div[hasclass('s_quotes_carousel_compact')]" position="attributes">
<attribute name="class" remove="o_cc2 carousel-dark" add="o_cc5" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('carousel-item')]" position="attributes">
<attribute name="class" remove="o_cc2" add="o_cc5" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('carousel-item')])[2]" position="attributes">
<attribute name="class" remove="o_cc2" add="o_cc5" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('carousel-item')])[3]" position="attributes">
<attribute name="class" remove="o_cc2" add="o_cc5" separator=" "/>
</xpath>
</template>
</odoo>
+1
View File
@@ -59,6 +59,7 @@
'views/snippets/s_product_catalog.xml',
'views/snippets/s_quotes_carousel.xml',
'views/snippets/s_quotes_carousel_minimal.xml',
'views/snippets/s_quotes_carousel_compact.xml',
'views/snippets/s_comparisons.xml',
'views/snippets/s_freegrid.xml',
'views/snippets/s_company_team.xml',
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_quotes_carousel_compact" inherit_id="website.s_quotes_carousel_compact">
<xpath expr="//div[hasclass('s_quotes_carousel_compact')]" position="attributes">
<attribute name="class" remove="o_cc2 carousel-dark" add="o_cc5" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('carousel-item')]" position="attributes">
<attribute name="class" remove="o_cc2" add="o_cc5" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('carousel-item')])[2]" position="attributes">
<attribute name="class" remove="o_cc2" add="o_cc5" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('carousel-item')])[3]" position="attributes">
<attribute name="class" remove="o_cc2" add="o_cc5" separator=" "/>
</xpath>
</template>
</odoo>
+1
View File
@@ -34,6 +34,7 @@
'views/snippets/s_comparisons.xml',
'views/snippets/s_product_catalog.xml',
'views/snippets/s_quotes_carousel.xml',
'views/snippets/s_quotes_carousel_compact.xml',
'views/snippets/s_unveil.xml',
'views/snippets/s_numbers_showcase.xml',
'views/snippets/s_key_benefits.xml',
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_quotes_carousel_compact" inherit_id="website.s_quotes_carousel_compact">
<!-- Section -->
<xpath expr="//div[hasclass('s_quotes_carousel_compact')]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2 carousel-dark" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('carousel-item')]" position="attributes">
<attribute name="class" remove="o_cc2" add="o_cc4" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('carousel-item')])[2]" position="attributes">
<attribute name="class" remove="o_cc2" add="o_cc4" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('carousel-item')])[3]" position="attributes">
<attribute name="class" remove="o_cc2" add="o_cc4" separator=" "/>
</xpath>
</template>
</odoo>
+1
View File
@@ -25,6 +25,7 @@
'views/snippets/s_title.xml',
'views/snippets/s_picture.xml',
'views/snippets/s_quotes_carousel_minimal.xml',
'views/snippets/s_quotes_carousel_compact.xml',
'views/snippets/s_pricelist_boxed.xml',
'views/snippets/s_freegrid.xml',
'views/snippets/s_sidegrid.xml',
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_quotes_carousel_compact" inherit_id="website.s_quotes_carousel_compact">
<xpath expr="//div[hasclass('s_quotes_carousel_compact')]" position="attributes">
<attribute name="class" remove="o_cc2 carousel-dark" add="o_cc5" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('carousel-item')]" position="attributes">
<attribute name="class" remove="o_cc2" add="o_cc5" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('carousel-item')])[2]" position="attributes">
<attribute name="class" remove="o_cc2" add="o_cc5" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('carousel-item')])[3]" position="attributes">
<attribute name="class" remove="o_cc2" add="o_cc5" separator=" "/>
</xpath>
</template>
</odoo>
+1
View File
@@ -38,6 +38,7 @@
'views/snippets/s_comparisons.xml',
'views/snippets/s_product_catalog.xml',
'views/snippets/s_quotes_carousel_minimal.xml',
'views/snippets/s_quotes_carousel_compact.xml',
'views/snippets/s_unveil.xml',
'views/snippets/s_key_benefits.xml',
'views/snippets/s_carousel.xml',
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_quotes_carousel_compact" inherit_id="website.s_quotes_carousel_compact">
<xpath expr="//div[hasclass('s_quotes_carousel_compact')]" position="attributes">
<attribute name="class" remove="o_cc2 carousel-dark" add="o_cc5" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('carousel-item')]" position="attributes">
<attribute name="class" remove="o_cc2" add="o_cc5" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('carousel-item')])[2]" position="attributes">
<attribute name="class" remove="o_cc2" add="o_cc5" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('carousel-item')])[3]" position="attributes">
<attribute name="class" remove="o_cc2" add="o_cc5" separator=" "/>
</xpath>
</template>
</odoo>
+1
View File
@@ -36,6 +36,7 @@
'views/snippets/s_company_team_grid.xml',
'views/snippets/s_unveil.xml',
'views/snippets/s_quadrant.xml',
'views/snippets/s_quotes_carousel_compact.xml',
'views/snippets/s_numbers_showcase.xml',
'views/snippets/s_key_benefits.xml',
'views/snippets/s_striped_center_top.xml',
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_quotes_carousel_compact" inherit_id="website.s_quotes_carousel_compact">
<xpath expr="//div[hasclass('s_quotes_carousel_compact')]" position="attributes">
<attribute name="class" remove="o_cc2 carousel-dark" add="o_cc5" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('carousel-item')]" position="attributes">
<attribute name="class" remove="o_cc2" add="o_cc5" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('carousel-item')])[2]" position="attributes">
<attribute name="class" remove="o_cc2" add="o_cc5" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('carousel-item')])[3]" position="attributes">
<attribute name="class" remove="o_cc2" add="o_cc5" separator=" "/>
</xpath>
</template>
</odoo>
+1
View File
@@ -51,6 +51,7 @@
'views/snippets/s_comparisons.xml',
'views/snippets/s_quotes_carousel.xml',
'views/snippets/s_quotes_carousel_minimal.xml',
'views/snippets/s_quotes_carousel_compact.xml',
'views/snippets/s_unveil.xml',
'views/snippets/s_key_benefits.xml',
'views/snippets/s_pricelist_boxed.xml',
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_quotes_carousel_compact" inherit_id="website.s_quotes_carousel_compact">
<xpath expr="//div[hasclass('s_quotes_carousel_compact')]" position="attributes">
<attribute name="class" remove="o_cc2 carousel-dark" add="o_cc3" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('carousel-item')]" position="attributes">
<attribute name="class" remove="o_cc2" add="o_cc3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('carousel-item')])[2]" position="attributes">
<attribute name="class" remove="o_cc2" add="o_cc3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('carousel-item')])[3]" position="attributes">
<attribute name="class" remove="o_cc2" add="o_cc3" separator=" "/>
</xpath>
</template>
</odoo>