[FIX] theme_*: fix font style of snippet headers

Some snippets contain incorrect font style that are not achievable using
the editor (for example: <h2 class="display-3"> in the "Key benefits"
snippet).

These snippets were adapted in the community commit linked to this one
to align with what the editor would generate if we recreated them from
scratch.

In this commit, we adapt the themes following the change in community.
We also fix a few issues (e.g., wording for the ´s_numbers´ snippet)
noticed during the changes.

task-4148057

closes odoo/design-themes#895

Related: odoo/odoo#178957
Signed-off-by: Robin Lejeune (role) <role@odoo.com>
This commit is contained in:
Benjamin Vray
2024-09-04 11:36:42 +02:00
parent 6fc1519894
commit d60776bdd2
9 changed files with 77 additions and 61 deletions
+19 -12
View File
@@ -12,26 +12,33 @@
</xpath>
<!-- Column #1 -->
<xpath expr="//div[hasclass('col-lg-4')]" position="attributes">
<attribute name="class" add="pt104 pb104 o_cc o_cc5" remove="pt24 pb24" separator=" "/>
</xpath>
<!-- Column #1 - Text -->
<xpath expr="//h6" position="replace" mode="inner">
Editions through the Europe
<attribute name="class" add="pt104 pb64 o_cc o_cc5" separator=" "/>
</xpath>
<!-- Column #2 -->
<xpath expr="//div[hasclass('col-lg-4')][2]" position="attributes">
<attribute name="class" add="pt104 pb104 o_cc o_cc2" remove="pt24 pb24" separator=" "/>
<xpath expr="(//div[hasclass('col-lg-4')])[2]" position="attributes">
<attribute name="class" add="pt104 pb104 o_cc o_cc1" remove="pt24 pb24" separator=" "/>
</xpath>
<!-- Column #2 - Text -->
<xpath expr="(//h6)[2]" position="replace" mode="inner">
Artists from around the world
<xpath expr="//span[hasclass('h5-fs')]" position="replace" mode="inner">
Editions through the Europe
</xpath>
<!-- Column #3 -->
<xpath expr="//div[hasclass('col-lg-4')][3]" position="attributes">
<attribute name="class" add="pt104 pb104 o_cc o_cc3" remove="pt24 pb24" separator=" "/>
<xpath expr="(//div[hasclass('col-lg-4')])[3]" position="attributes">
<attribute name="class" add="pt104 pb104 o_cc o_cc2" remove="pt24 pb24" separator=" "/>
</xpath>
<!-- Column #3 - Text -->
<xpath expr="(//h6)[3]" position="replace" mode="inner">
<xpath expr="(//span[hasclass('s_number')])[2]" position="replace" mode="inner">
72
</xpath>
<xpath expr="(//span[hasclass('h5-fs')])[2]" position="replace" mode="inner">
Artists from around the world
</xpath>
<!-- Column #4 -->
<xpath expr="(//div[hasclass('col-lg-4')])[4]" position="attributes">
<attribute name="class" add="pt104 pb104 o_cc o_cc3" remove="pt24 pb24" separator=" "/>
</xpath>
<!-- Column #4 - Text -->
<xpath expr="(//span[hasclass('h5-fs')])[3]" position="replace" mode="inner">
Scenes outdoor &amp; indoor
</xpath>
</template>