mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[IMP] theme_*: review s_references snippet occurrences
*: theme_buzzy, theme_cobalt, theme_kea, theme_nano, theme_odoo_experts, theme_paptic, theme_vehicle, theme_zap The goal of this commit is to fix xpath after the `s_references` snippet redesign, and eventually tweak some classes. task-3668033 closes odoo/design-themes#838 Related: odoo/odoo#163837 Signed-off-by: Soukéina Bojabza (sobo) <sobo@odoo.com>
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<template id="s_references" inherit_id="website.s_references">
|
||||
<!-- Section -->
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" add="o_cc o_cc2" separator=" "/>
|
||||
<attribute name="class" add="o_cc2" remove="o_cc1" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -134,10 +134,9 @@
|
||||
<!-- ==== References ===== -->
|
||||
<template id="s_references" inherit_id="website.s_references" name="Cobalt s_references">
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" add="o_cc o_cc1" remove="pt48 pb32" separator=" "/>
|
||||
<attribute name="class" remove="pt80 pb80" separator=" "/>
|
||||
</xpath>
|
||||
<xpath expr="//h2" position="replace"/>
|
||||
<xpath expr="//p" position="replace"/>
|
||||
<xpath expr="//div[hasclass('col-lg-12')]" position="replace"/>
|
||||
</template>
|
||||
|
||||
<!-- ==== Three Columns ===== -->
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<template id="s_references" inherit_id="website.s_references">
|
||||
<!-- Section -->
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" add="o_cc o_cc4 pb64" remove="pb32" separator=" "/>
|
||||
<attribute name="class" add="o_cc4 pb64" remove="pb80 o_cc1" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<template id="s_references" inherit_id="website.s_references">
|
||||
<!-- Section -->
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" add="o_cc o_cc5" separator=" "/>
|
||||
<attribute name="class" add="o_cc5" remove="o_cc1" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -4,11 +4,10 @@
|
||||
<template id="s_references" inherit_id="website.s_references">
|
||||
<!-- Section -->
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" add="pt0 pb56 o_cc o_cc2" remove="pt48 pb32" separator=" "/>
|
||||
<attribute name="class" add="pt0 pb56 o_cc2" remove="pt80 pb80 o_cc1" separator=" "/>
|
||||
</xpath>
|
||||
<!-- Remove title and subtitle -->
|
||||
<xpath expr="//h2" position="replace"/>
|
||||
<xpath expr="//p" position="replace"/>
|
||||
<!-- Remove title, subtitle and button -->
|
||||
<xpath expr="//div[hasclass('col-lg-12')]" position="replace"/>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.6 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 3.2 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.0 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 3.3 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.3 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.7 KiB |
@@ -194,12 +194,7 @@
|
||||
|
||||
<!-- ==== References ===== -->
|
||||
<template id="s_references" inherit_id="website.s_references" name="Paptic s_references">
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" add="o_cc o_cc1" separator=" "/>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//h2" position="replace"/>
|
||||
<xpath expr="//p" position="replace"/>
|
||||
<xpath expr="//div[hasclass('col-lg-12')]" position="replace"/>
|
||||
</template>
|
||||
|
||||
<!-- ==== Three Columns ===== -->
|
||||
|
||||
@@ -59,38 +59,6 @@
|
||||
<field name="url">/theme_paptic/static/src/img/pictures/s_carousel_3.jpg</field>
|
||||
</record>
|
||||
|
||||
<!-- References -->
|
||||
<record id="s_reference_demo_image_1" model="theme.ir.attachment">
|
||||
<field name="key">website.s_reference_demo_image_1</field>
|
||||
<field name="name">website.s_reference_demo_image_1</field>
|
||||
<field name="url">/theme_paptic/static/src/img/pictures/s_references_1.png</field>
|
||||
</record>
|
||||
<record id="s_reference_demo_image_2" model="theme.ir.attachment">
|
||||
<field name="key">website.s_reference_demo_image_2</field>
|
||||
<field name="name">website.s_reference_demo_image_2</field>
|
||||
<field name="url">/theme_paptic/static/src/img/pictures/s_references_2.png</field>
|
||||
</record>
|
||||
<record id="s_reference_demo_image_3" model="theme.ir.attachment">
|
||||
<field name="key">website.s_reference_demo_image_3</field>
|
||||
<field name="name">website.s_reference_demo_image_3</field>
|
||||
<field name="url">/theme_paptic/static/src/img/pictures/s_references_3.png</field>
|
||||
</record>
|
||||
<record id="s_reference_demo_image_4" model="theme.ir.attachment">
|
||||
<field name="key">website.s_reference_demo_image_4</field>
|
||||
<field name="name">website.s_reference_demo_image_4</field>
|
||||
<field name="url">/theme_paptic/static/src/img/pictures/s_references_4.png</field>
|
||||
</record>
|
||||
<record id="s_reference_demo_image_5" model="theme.ir.attachment">
|
||||
<field name="key">website.s_reference_demo_image_5</field>
|
||||
<field name="name">website.s_reference_demo_image_5</field>
|
||||
<field name="url">/theme_paptic/static/src/img/pictures/s_references_5.png</field>
|
||||
</record>
|
||||
<record id="s_reference_default_image_6" model="theme.ir.attachment">
|
||||
<field name="key">website.s_reference_default_image_6</field>
|
||||
<field name="name">website.s_reference_default_image_6</field>
|
||||
<field name="url">/theme_paptic/static/src/img/pictures/s_references_6.png</field>
|
||||
</record>
|
||||
|
||||
<!-- Parallax -->
|
||||
<record id="s_parallax_default_image" model="theme.ir.attachment">
|
||||
<field name="key">website.s_parallax_default_image</field>
|
||||
|
||||
@@ -106,7 +106,7 @@
|
||||
<!-- ======== REFERENCES ======== -->
|
||||
<template id="s_references" inherit_id="website.s_references" name="Vehicle s_references">
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" add="o_cc o_cc1 pt120 pb112" remove="pt48 pb32" separator=" "/>
|
||||
<attribute name="class" add="pt120 pb112" remove="pt80 pb80" separator=" "/>
|
||||
</xpath>
|
||||
<xpath expr="//h2" position="replace" mode="inner">
|
||||
Our Partners
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<template id="s_references" inherit_id="website.s_references">
|
||||
<!-- Section -->
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" add="pt80 pb64 o_cc2" remove="pt48 pb32" separator=" "/>
|
||||
<attribute name="class" add="pb64 o_cc2" remove="o_cc1 pb80" separator=" "/>
|
||||
</xpath>
|
||||
<!-- Title -->
|
||||
<xpath expr="//h2" position="replace" mode="inner">
|
||||
@@ -15,32 +15,32 @@
|
||||
<p><br/></p>
|
||||
</xpath>
|
||||
<!-- Column #01 -->
|
||||
<xpath expr="//*[hasclass('row')]/*[1]" position="attributes">
|
||||
<xpath expr="//div[hasclass('col-lg-2')][1]" position="attributes">
|
||||
<attribute name="class" add="o_cc o_cc1 rounded pt48 pb48" remove="pt16 pb16" separator=" "/>
|
||||
<attribute name="style" add="box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 4px 0px !important;" separator=" "/>
|
||||
</xpath>
|
||||
<!-- Column #02 -->
|
||||
<xpath expr="//*[hasclass('row')]/*[2]" position="attributes">
|
||||
<xpath expr="//div[hasclass('col-lg-2')][2]" position="attributes">
|
||||
<attribute name="class" add="o_cc o_cc1 rounded pt48 pb48" remove="pt16 pb16" separator=" "/>
|
||||
<attribute name="style" add="box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 4px 0px !important;" separator=" "/>
|
||||
</xpath>
|
||||
<!-- Column #03 -->
|
||||
<xpath expr="//*[hasclass('row')]/*[3]" position="attributes">
|
||||
<xpath expr="//div[hasclass('col-lg-2')][3]" position="attributes">
|
||||
<attribute name="class" add="o_cc o_cc1 rounded pt48 pb48" remove="pt16 pb16" separator=" "/>
|
||||
<attribute name="style" add="box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 4px 0px !important;" separator=" "/>
|
||||
</xpath>
|
||||
<!-- Column #04 -->
|
||||
<xpath expr="//*[hasclass('row')]/*[4]" position="attributes">
|
||||
<xpath expr="//div[hasclass('col-lg-2')][4]" position="attributes">
|
||||
<attribute name="class" add="o_cc o_cc1 rounded pt48 pb48" remove="pt16 pb16" separator=" "/>
|
||||
<attribute name="style" add="box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 4px 0px !important;" separator=" "/>
|
||||
</xpath>
|
||||
<!-- Column #05 -->
|
||||
<xpath expr="//*[hasclass('row')]/*[5]" position="attributes">
|
||||
<xpath expr="//div[hasclass('col-lg-2')][5]" position="attributes">
|
||||
<attribute name="class" add="o_cc o_cc1 rounded pt48 pb48" remove="pt16 pb16" separator=" "/>
|
||||
<attribute name="style" add="box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 4px 0px !important;" separator=" "/>
|
||||
</xpath>
|
||||
<!-- Column #06 -->
|
||||
<xpath expr="//*[hasclass('row')]/*[6]" position="attributes">
|
||||
<xpath expr="//div[hasclass('col-lg-2')][6]" position="attributes">
|
||||
<attribute name="class" add="o_cc o_cc1 rounded pt48 pb48" remove="pt16 pb16" separator=" "/>
|
||||
<attribute name="style" add="box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 4px 0px !important;" separator=" "/>
|
||||
</xpath>
|
||||
|
||||
Reference in New Issue
Block a user