[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:
@@ -16,6 +16,7 @@
|
||||
'views/snippets/s_company_team.xml',
|
||||
'views/snippets/s_cover.xml',
|
||||
'views/snippets/s_image_gallery.xml',
|
||||
'views/snippets/s_carousel.xml',
|
||||
'views/snippets/s_media_list.xml',
|
||||
'views/snippets/s_text_cover.xml',
|
||||
'views/snippets/s_color_blocks_2.xml',
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<template id="s_carousel" inherit_id="website.s_carousel">
|
||||
<xpath expr="(//div[hasclass('carousel-item')])[2]" position="attributes">
|
||||
<attribute name="class" add="o_cc o_cc5" separator=" "/>
|
||||
</xpath>
|
||||
<xpath expr="(//div[hasclass('carousel-item')])[2]//div[hasclass('container')]" position="before">
|
||||
<div class="o_we_bg_filter bg-black-25"/>
|
||||
</xpath>
|
||||
<xpath expr="(//div[hasclass('carousel-item')])[3]//div[hasclass('container')]" position="before">
|
||||
<div class="o_we_bg_filter bg-black-25"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
@@ -15,18 +15,14 @@
|
||||
<template id="s_image_gallery" inherit_id="website.s_image_gallery">
|
||||
<!-- Section -->
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" add="s_image_gallery_cover o_full_screen_height s_image_gallery_indicators_dots" remove="s_image_gallery_indicators_rounded" separator=" "/>
|
||||
</xpath>
|
||||
<!-- Container -->
|
||||
<xpath expr="//div[hasclass('container')]" position="attributes">
|
||||
<attribute name="class" add="container-fluid" remove="container" separator=" "/>
|
||||
<attribute name="class" add="pt80 pb80" remove="pt24 pb24" separator=" "/>
|
||||
</xpath>
|
||||
<!-- Item #2 - Img -->
|
||||
<xpath expr="//div[hasclass('carousel-item')][2]/img" position="attributes">
|
||||
<attribute name="src">/web/image/website.library_image_16</attribute>
|
||||
</xpath>
|
||||
<!-- Item #2 - Indicator -->
|
||||
<xpath expr="//ul[hasclass('carousel-indicators')]//li[3]" position="attributes">
|
||||
<xpath expr="//div[hasclass('carousel-indicators')]//button[3]" position="attributes">
|
||||
<attribute name="style">background-image: url(/web/image/website.library_image_16)</attribute>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
@@ -3,15 +3,15 @@
|
||||
|
||||
<template id="s_quotes_carousel" inherit_id="website.s_quotes_carousel">
|
||||
<!-- Slide #1 - Filter -->
|
||||
<xpath expr="//div[hasclass('carousel-item')]//div[hasclass('container')]" position="before">
|
||||
<xpath expr="//div[hasclass('container')]" position="before">
|
||||
<div class="o_we_bg_filter bg-black-25"/>
|
||||
</xpath>
|
||||
<!-- Slide #2 - Filter -->
|
||||
<xpath expr="//div[hasclass('carousel-item')][2]//div[hasclass('container')]" position="before">
|
||||
<xpath expr="(//div[hasclass('container')])[2]" position="before">
|
||||
<div class="o_we_bg_filter bg-black-25"/>
|
||||
</xpath>
|
||||
<!-- Slide #3 - Filter -->
|
||||
<xpath expr="//div[hasclass('carousel-item')][3]//div[hasclass('container')]" position="before">
|
||||
<xpath expr="(//div[hasclass('container')])[3]" position="before">
|
||||
<div class="o_we_bg_filter bg-black-25"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user