mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[IMP] *: adapt s_banner snippet customization to text column increase
task-fp closes odoo/design-themes#1115 Related: odoo/odoo#218853 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
</xpath>
|
||||
<!-- Remove panels -->
|
||||
<xpath expr="(//div[hasclass('o_grid_item_image')])[2]" position="replace"/>
|
||||
<xpath expr="//div[hasclass('col-lg-5')]" position="replace"/>
|
||||
<xpath expr="//div[hasclass('col-lg-5')][2]" position="replace"/>
|
||||
<!-- Image Layout -->
|
||||
<xpath expr="//div[hasclass('o_grid_item_image')]" position="attributes">
|
||||
<attribute name="class" add="g-col-lg-6 col-lg-6" remove="o_grid_item g-col-lg-4 col-lg-4" separator=" "/>
|
||||
|
||||
@@ -17,17 +17,17 @@
|
||||
<attribute name="data-row-count"/>
|
||||
</xpath>
|
||||
<!-- Jumbotron -->
|
||||
<xpath expr="//div[hasclass('col-lg-4')]" position="attributes">
|
||||
<attribute name="class" add="pt64" remove="o_grid_item g-height-10 g-col-lg-4" separator=" "/>
|
||||
<xpath expr="//div[hasclass('col-lg-5')]" position="attributes">
|
||||
<attribute name="class" add="pt64" remove="o_grid_item g-height-10 g-col-lg-5" separator=" "/>
|
||||
<attribute name="style"/>
|
||||
</xpath>
|
||||
<!-- Remove grid images -->
|
||||
<xpath expr="//div[hasclass('o_grid_item_image')]" position="replace"/>
|
||||
<xpath expr="//div[hasclass('o_grid_item_image')]" position="replace"/>
|
||||
<xpath expr="//div[hasclass('col-lg-5')]" position="replace"/>
|
||||
<xpath expr="//div[hasclass('col-lg-5')][2]" position="replace"/>
|
||||
<!-- Image -->
|
||||
<xpath expr="//div[hasclass('col-lg-4')]" position="after">
|
||||
<div class="col-lg-8 d-lg-block d-none o_snippet_mobile_invisible">
|
||||
<xpath expr="//div[hasclass('col-lg-5')]" position="after">
|
||||
<div class="col-lg-7 d-lg-block d-none o_snippet_mobile_invisible">
|
||||
<img src="/web_editor/shape/theme_cobalt/s_banner_2.svg?c1=o-color-1" class="img img-fluid mx-auto" style="width: 100%;" alt=""/>
|
||||
</div>
|
||||
</xpath>
|
||||
|
||||
@@ -13,15 +13,15 @@
|
||||
<!-- Remove grid images -->
|
||||
<xpath expr="//div[hasclass('o_grid_item_image')]" position="replace"/>
|
||||
<xpath expr="//div[hasclass('o_grid_item_image')]" position="replace"/>
|
||||
<xpath expr="//div[hasclass('col-lg-5')]" position="replace"/>
|
||||
<xpath expr="//div[hasclass('col-lg-5')][2]" position="replace"/>
|
||||
<!-- Row - remove grid mode -->
|
||||
<xpath expr="//div[hasclass('row')]" position="attributes">
|
||||
<attribute name="class" remove="o_grid_mode" separator=" "/>
|
||||
<attribute name="data-row-count"/>
|
||||
</xpath>
|
||||
<!-- Jumbotron -->
|
||||
<xpath expr="//div[hasclass('col-lg-4')]" position="attributes">
|
||||
<attribute name="class" add="col-lg-6 o_cc o_cc1 pt32 pb32 shadow rounded" remove="o_grid_item g-height-10 g-col-lg-4 col-lg-4" separator=" "/>
|
||||
<xpath expr="//div[hasclass('col-lg-5')]" position="attributes">
|
||||
<attribute name="class" add="col-lg-6 o_cc o_cc1 pt32 pb32 shadow rounded" remove="o_grid_item g-height-10 g-col-lg-5 col-lg-5" separator=" "/>
|
||||
<attribute name="style"/>
|
||||
</xpath>
|
||||
<!-- Title -->
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
<!-- Remove grid images -->
|
||||
<xpath expr="//div[hasclass('o_grid_item_image')]" position="replace"/>
|
||||
<xpath expr="//div[hasclass('o_grid_item_image')]" position="replace"/>
|
||||
<xpath expr="//div[hasclass('col-lg-5')]" position="replace"/>
|
||||
<xpath expr="//div[hasclass('col-lg-5')][2]" position="replace"/>
|
||||
|
||||
<!-- Filter -->
|
||||
<xpath expr="//div[hasclass('container')]" position="before">
|
||||
@@ -31,8 +31,8 @@
|
||||
</xpath>
|
||||
|
||||
<!-- Paragraph -->
|
||||
<xpath expr="//div[hasclass('col-lg-4')]" position="attributes">
|
||||
<attribute name="class" add="col-lg-6 pt32 pb32" remove="o_grid_item g-height-10 g-col-lg-4 col-lg-4" separator=" "/>
|
||||
<xpath expr="//div[hasclass('col-lg-5')]" position="attributes">
|
||||
<attribute name="class" add="col-lg-6 pt32 pb32" remove="o_grid_item g-height-10 g-col-lg-5 col-lg-5" separator=" "/>
|
||||
<attribute name="style"/>
|
||||
</xpath>
|
||||
<xpath expr="//h1" position="replace" mode="inner">
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
|
||||
<!-- First item -->
|
||||
<xpath expr="(//div[hasclass('o_grid_item')])[1]" position="attributes">
|
||||
<attribute name="style" add="grid-area: 8 / 2 / 14 / 12; z-index: 3;" remove="grid-area: 1 / 1 / 11 / 5;z-index: 1" separator=";"/>
|
||||
<attribute name="class" add="col-lg-10 g-col-lg-10 g-height-6" remove="col-lg-4 g-col-lg-4 g-height-10" separator=" "/>
|
||||
<attribute name="style" add="grid-area: 8 / 2 / 14 / 12; z-index: 3;" remove="grid-area: 1 / 1 / 11 / 6;z-index: 1" separator=";"/>
|
||||
<attribute name="class" add="col-lg-10 g-col-lg-10 g-height-6" remove="col-lg-5 g-col-lg-5 g-height-10" separator=" "/>
|
||||
</xpath>
|
||||
<xpath expr="//h1" position="replace">
|
||||
<h1 class="display-1" style="text-align: center;">Generation<br/>Furniture Co.</h1>
|
||||
|
||||
@@ -18,10 +18,10 @@
|
||||
<!-- Remove grid images -->
|
||||
<xpath expr="//div[hasclass('o_grid_item_image')]" position="replace"/>
|
||||
<xpath expr="//div[hasclass('o_grid_item_image')]" position="replace"/>
|
||||
<xpath expr="//div[hasclass('col-lg-5')]" position="replace"/>
|
||||
<xpath expr="//div[hasclass('col-lg-5')][2]" position="replace"/>
|
||||
<!-- Column -->
|
||||
<xpath expr="//*[hasclass('col-lg-4')]" position="attributes">
|
||||
<attribute name="class" add="col-lg-8 pt48 pb32 px-5 o_cc o_cc1 rounded" remove="o_grid_item g-height-10 g-col-lg-4 col-lg-4" separator=" "/>
|
||||
<xpath expr="//*[hasclass('col-lg-5')]" position="attributes">
|
||||
<attribute name="class" add="col-lg-8 pt48 pb32 px-5 o_cc o_cc1 rounded" remove="o_grid_item g-height-10 g-col-lg-5 col-lg-5" separator=" "/>
|
||||
<attribute name="style">box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 4px 0px !important;</attribute>
|
||||
</xpath>
|
||||
<!-- Title -->
|
||||
|
||||
Reference in New Issue
Block a user