[IMP] theme_nano: revamp the theme

This commit revamps the design of the `theme_nano`.

task-4178081
part of task-4177975

closes odoo/design-themes#966

X-original-commit: 47568ec66f
Related: odoo/odoo#182004
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
Signed-off-by: Chrysanthe Gomrée (chgo) <chgo@odoo.com>
This commit is contained in:
Chrysanthe (chgo)
2024-09-23 12:48:40 +00:00
parent f29a75764c
commit fc1382ce5a
35 changed files with 610 additions and 249 deletions
@@ -4,7 +4,7 @@
<template id="s_references_grid" inherit_id="website.s_references_grid">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc2" remove="o_cc1" separator=" "/>
<attribute name="class" add="o_cc5" remove="o_cc1" separator=" "/>
</xpath>
<!-- Row -->
<xpath expr="//div[hasclass('o_grid_mode')]" position="attributes">
@@ -15,6 +15,25 @@
<attribute name="class" add="g-height-2" remove="g-height-4" separator=" "/>
<attribute name="style">grid-area: 2 / 1 / 4 / 6; z-index: 1;</attribute>
</xpath>
<!-- Set images to contain -->
<xpath expr="(//div[hasclass('o_grid_item_image')])[1]" position="attributes">
<attribute name="class" add="o_grid_item_image_contain" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_grid_item_image')])[2]" position="attributes">
<attribute name="class" add="o_grid_item_image_contain" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_grid_item_image')])[3]" position="attributes">
<attribute name="class" add="o_grid_item_image_contain" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_grid_item_image')])[4]" position="attributes">
<attribute name="class" add="o_grid_item_image_contain" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_grid_item_image')])[5]" position="attributes">
<attribute name="class" add="o_grid_item_image_contain" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_grid_item_image')])[6]" position="attributes">
<attribute name="class" add="o_grid_item_image_contain" separator=" "/>
</xpath>
</template>
</odoo>