[IMP] test_themes, *: carousels adaptations

*: theme_anelusia, theme_artists, theme_avantgarde, theme_cobalt,
theme_cobalt, theme_enark, theme_loftspace, theme_notes,
theme_odoo_experts, theme_bewise, theme_bistro, theme_buzzy,
theme_clean, theme_graphene, theme_nano, theme_treehouse, theme_yes,
theme_aviato, theme_beauty, theme_bookstore, theme_kea, theme_kiddo,
theme_monglia, theme_orchid, theme_paptic, theme_real_estate,
theme_vehicle, theme_zap

This commit adapts the customizations related to `s_carousel`,
s_image_gallery` and `s_quotes_carousel` since these snippets has been
redesigned in PR[1].

task-3654328
Part of task-3619705

[1]: https://github.com/odoo/odoo/pull/172727

closes odoo/design-themes#836

Related: odoo/odoo#172727
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
This commit is contained in:
Brieuc-brd
2024-07-17 20:52:53 +02:00
parent 67053ce2bf
commit f66833de41
89 changed files with 495 additions and 182 deletions
+25 -9
View File
@@ -214,20 +214,36 @@
<!-- ======== CAROUSEL ======== -->
<template id="s_carousel" inherit_id="website.s_carousel" name="Avantgarde s_carousel">
<!-- Assign slide3 as 'active' and move it in first position -->
<xpath expr="//div[hasclass('carousel-inner')]/div" position="attributes">
<attribute name="class" remove="active" separator=" "/>
<xpath expr="//div[hasclass('s_carousel')]" position="attributes">
<attribute name="class" add="s_carousel_controllers_indicators_outside s_carousel_rounded carousel-dark" remove="s_carousel_default" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('carousel-inner')]/div[3]" position="attributes">
<attribute name="class" add="active" separator=" "/>
<xpath expr="//div[hasclass('carousel-indicators')]" position="attributes">
<attribute name="class" add="s_carousel_indicators_dots" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('carousel-inner')]/div" position="before">
<xpath expr="//div[hasclass('carousel-inner')]/div[3]" position="move"/>
<xpath expr="//div[hasclass('carousel-item')]" position="attributes">
<attribute name="class" add="o_cc3" remove="o_cc5" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('carousel-item')])[2]" position="attributes">
<attribute name="class" add="o_cc o_cc3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('carousel-item')])[3]" position="attributes">
<attribute name="class" add="o_cc3" remove="o_cc5" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('carousel-item')]//div[hasclass('o_we_bg_filter')]" position="replace">
<div class="o_we_bg_filter bg-black-50"/>
</xpath>
<xpath expr="(//div[hasclass('carousel-item')])[2]//div[hasclass('container')]" position="before">
<div class="o_we_bg_filter bg-black-50"/>
</xpath>
<xpath expr="(//div[hasclass('carousel-item')])[3]//div[hasclass('container')]" position="before">
<div class="o_we_bg_filter bg-black-50"/>
</xpath>
<xpath expr="//h2/font" position="replace">
<font style="font-size: 62px; background-color: var(--o-color-4);" class="o_default_snippet_text">Making Simple</font>
<xpath expr="//h2" position="replace" mode="inner">
Making Simple
</xpath>
<xpath expr="//div[hasclass('carousel-item')]//p[2]" position="replace"/>
<xpath expr="(//div[hasclass('carousel-item')])[2]//p[2]" position="replace"/>
</template>
<!-- ======== QUOTES ======== -->
+15
View File
@@ -312,5 +312,20 @@ Check in images.scss, primary_variables.scss, main.scss and theme_common's mixin
<field name="name">website.s_accordion_image_default_image</field>
<field name="url">/theme_avantgarde/static/src/img/pictures/bg_image_28.jpg</field>
</record>
<record id="library_image_02" model="theme.ir.attachment">
<field name="key">website.library_image_02</field>
<field name="name">website.library_image_02</field>
<field name="url">/theme_avantgarde/static/src/img/pictures/library_image_02.jpg</field>
</record>
<record id="library_image_08" model="theme.ir.attachment">
<field name="key">website.library_image_08</field>
<field name="name">website.library_image_08</field>
<field name="url">/theme_avantgarde/static/src/img/pictures/library_image_08.jpg</field>
</record>
<record id="library_image_03" model="theme.ir.attachment">
<field name="key">website.library_image_03</field>
<field name="name">website.library_image_03</field>
<field name="url">/theme_avantgarde/static/src/img/pictures/library_image_03.jpg</field>
</record>
</odoo>