Files
design-themes/theme_enark/views/snippets/s_image_gallery.xml
T
Antoine (anso) 816ce83846 [IMP] theme_*: adapt themes with new s_image_wall design
*: (artists, bookstore, cobalt, enark, graphene, monglia, real_estate,
vehicle, yes, zap)

This commit adapts the design of `s_image_wall` for multiple themes,
based on the new Odoo 18 snippet redesign.

task-3654301

closes odoo/design-themes#843

Related: odoo/odoo#163839
Signed-off-by: Robin Lejeune (role) <role@odoo.com>
2024-07-29 18:54:55 +00:00

44 lines
1.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<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 s_image_gallery_indicators_arrows_boxed o_full_screen_height pt0 pb0" remove="pb24 pt24 s_image_gallery_indicators_rounded" separator=" "/>
</xpath>
<!-- Container -->
<xpath expr="//div[hasclass('container')]" position="attributes">
<attribute name="class" add="container-fluid" remove="container" separator=" "/>
</xpath>
</template>
<template id="s_images_wall" inherit_id="website.s_images_wall">
<!-- Container -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc o_cc3 pt0 pb0 o_spc-none" remove="pb24 pt24 o_spc-small" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('container')]" position="attributes">
<attribute name="class" add="container-fluid" remove="container" separator=" "/>
</xpath>
<xpath expr="//img" position="attributes">
<attribute name="class" remove="rounded" separator=" "/>
</xpath>
<xpath expr="(//img)[2]" position="attributes">
<attribute name="class" remove="rounded" separator=" "/>
</xpath>
<xpath expr="(//img)[3]" position="attributes">
<attribute name="class" remove="rounded" separator=" "/>
</xpath>
<xpath expr="(//img)[4]" position="attributes">
<attribute name="class" remove="rounded" separator=" "/>
</xpath>
<xpath expr="(//img)[5]" position="attributes">
<attribute name="class" remove="rounded" separator=" "/>
</xpath>
<xpath expr="(//img)[6]" position="attributes">
<attribute name="class" remove="rounded" separator=" "/>
</xpath>
</template>
</odoo>