mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[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:
@@ -3,29 +3,15 @@
|
||||
|
||||
<template id="s_carousel" inherit_id="website.s_carousel">
|
||||
<!-- Slide 1 -->
|
||||
<xpath expr="(//*[hasclass('container')])" position="before">
|
||||
<xpath expr="(//*[hasclass('o_we_bg_filter')])" position="replace">
|
||||
<div class="o_we_bg_filter" style="background-color: rgba(25, 41, 37, 0.55) !important;"/>
|
||||
</xpath>
|
||||
<xpath expr="//div[hasclass('carousel-content')]" position="replace">
|
||||
<div class="jumbotron o_cc o_cc1 p-5 carousel-content col-lg-8 offset-lg-2 text-center rounded">
|
||||
<h2>Let us plan your perfect day</h2>
|
||||
<p class="lead">We are focused on providing high-quality service and customer satisfaction.</p>
|
||||
<a href="/contactus" class="btn btn-primary">Get in touch</a>
|
||||
</div>
|
||||
</xpath>
|
||||
<!-- Slide 2 -->
|
||||
<xpath expr="(//*[hasclass('container')])[2]" position="before">
|
||||
<div class="o_we_bg_filter" style="background-color: rgba(25, 41, 37, 0.55) !important;"/>
|
||||
</xpath>
|
||||
<xpath expr="//*[hasclass('carousel-item')][2]" position="attributes">
|
||||
<attribute name="class" add="pt152 pb152" remove="pt96 pb96" separator=" "/>
|
||||
</xpath>
|
||||
<xpath expr="(//div[hasclass('carousel-content')])[2]" position="replace">
|
||||
<div class="jumbotron o_cc o_cc3 p-5 carousel-content col-lg-8 offset-lg-2 text-center rounded">
|
||||
<h2>View our blog for inspiration</h2>
|
||||
<p class="lead">Get inspired with the latest trends and advice from our wedding experts.</p>
|
||||
<a href="#" class="btn btn-primary">See the blog</a>
|
||||
</div>
|
||||
<attribute name="class" add="o_cc o_cc5 pt152 pb152" remove="pt96 pb96" separator=" "/>
|
||||
</xpath>
|
||||
<!-- Slide 3 -->
|
||||
<xpath expr="(//*[hasclass('container')])[3]" position="before">
|
||||
@@ -34,13 +20,6 @@
|
||||
<xpath expr="//*[hasclass('carousel-item')][3]" position="attributes">
|
||||
<attribute name="class" add="pt152 pb152" remove="pt128 pb128" separator=" "/>
|
||||
</xpath>
|
||||
<xpath expr="(//*[hasclass('carousel-content')])[3]" position="replace">
|
||||
<div class="jumbotron o_cc o_cc4 p-5 carousel-content col-lg-8 offset-lg-2 text-center rounded">
|
||||
<h2>Check out our gallery</h2>
|
||||
<p class="lead">Take a look at some of our favourite weddings.</p>
|
||||
<a href="#" class="btn btn-primary">View our work</a>
|
||||
</div>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -4,17 +4,12 @@
|
||||
<template id="s_image_gallery" inherit_id="website.s_image_gallery">
|
||||
<!-- Section -->
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" add="s_image_gallery_indicators_dots" remove="s_image_gallery_indicators_rounded" separator=" "/>
|
||||
<attribute name="data-oe-shape-data">{"shape":"web_editor/Floats/12", "flip":[]}</attribute>
|
||||
</xpath>
|
||||
<!-- Shape -->
|
||||
<xpath expr="//*[hasclass('container')]" position="before">
|
||||
<xpath expr="//*[hasclass('o_container_small')]" position="before">
|
||||
<div class="o_we_shape o_web_editor_Floats_12"/>
|
||||
</xpath>
|
||||
<!-- Container -->
|
||||
<xpath expr="//*[hasclass('container')]" position="attributes">
|
||||
<attribute name="class" add="o_container_small" remove="container" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
<odoo>
|
||||
|
||||
<template id="s_quotes_carousel" inherit_id="website.s_quotes_carousel">
|
||||
<xpath expr="//div[hasclass('carousel')]" position="attributes">
|
||||
<attribute name="class" remove="carousel-dark" separator=" "/>
|
||||
</xpath>
|
||||
<!-- Quote 1 -->
|
||||
<xpath expr="//div[hasclass('carousel-item')]" position="attributes">
|
||||
<attribute name="style" add="background-image: url('/web/image/website.s_quotes_carousel_demo_image_0'); background-position: 50% 25%;" separator="; "/>
|
||||
@@ -22,7 +25,7 @@
|
||||
<xpath expr="(//*[hasclass('carousel-item')])[2]" position="attributes">
|
||||
<attribute name="style" add="background-position: 50% 25%;" remove="background-position: 50% 50%;" separator="; "/>
|
||||
</xpath>
|
||||
<xpath expr="(//*[hasclass('container')])[2]" position="before">
|
||||
<xpath expr="(//div[hasclass('container')])[2]" position="before">
|
||||
<div class="o_we_bg_filter" style="background-color: rgba(25, 41, 37, 0.55) !important;"/>
|
||||
</xpath>
|
||||
<xpath expr="(//div[hasclass('s_blockquote_author')])[2]//strong" position="replace" mode="inner">
|
||||
@@ -35,7 +38,7 @@
|
||||
<xpath expr="(//*[hasclass('carousel-item')])[3]" position="attributes">
|
||||
<attribute name="style" add="background-position: 50% 20%;" remove="background-position: 50% 50%;" separator="; "/>
|
||||
</xpath>
|
||||
<xpath expr="(//*[hasclass('container')])[3]" position="before">
|
||||
<xpath expr="(//div[hasclass('container')])[3]" position="before">
|
||||
<div class="o_we_bg_filter" style="background-color: rgba(25, 41, 37, 0.55) !important;"/>
|
||||
</xpath>
|
||||
<xpath expr="(//p[hasclass('s_blockquote_quote')])[3]" position="replace" mode="inner">
|
||||
|
||||
Reference in New Issue
Block a user