mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[FIX] theme_*: remove mb-2 class on orphan buttons
*: anelusia, artists, aviato, graphene, kiddo, loftspace, monglia, notes, odoo_experts, paptic, test_custo, yes The community PR [125824] introduces an automatic check on buttons to add the `mb-2` class when several buttons follow each other, so that they have space to breathe when split on multiple lines. For consistency, this commit therefore removes most `mb-2` occurrences on buttons within themes as long as they are alone on their line, but keeps or adds the class when several buttons are next to each other. [125824]: https://github.com/odoo/odoo/pull/125824 task-3369604 closes odoo/design-themes#680 Related: odoo/odoo#125824 Signed-off-by: Benjamin Vray (bvr) <bvr@odoo.com>
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
<div class="card-wrapper shadow-lg position-relative p-4 bg-white rounded-3 mt-n4" style="z-index:1;">
|
||||
<h4 class="card-title mt-4">Paris</h4>
|
||||
<p>Paris' monument-lined boulevards, museums, classical bistros and boutiques are enhanced by a new wave of multimedia galleries, creative wine bars..</p>
|
||||
<a href="#" class="btn btn-primary mb-2">Book now</a>
|
||||
<a href="#" class="btn btn-primary">Book now</a>
|
||||
</div>
|
||||
</xpath>
|
||||
<!-- Column #02 -->
|
||||
@@ -21,8 +21,8 @@
|
||||
<div class="card-wrapper shadow-lg position-relative p-4 bg-white rounded-3 mt-n4" style="z-index:1;">
|
||||
<h4 class="card-title mt-4">Rome</h4>
|
||||
<p>A heady mix of haunting ruins, awe-inspiring art and vibrant street life, Italy’s hot-blooded capital is one of the world’s most romantic and charismatic cities.</p>
|
||||
<a href="#" class="btn btn-primary mb-2">Book now</a>
|
||||
</div>
|
||||
<a href="#" class="btn btn-primary">Book now</a>
|
||||
</div>
|
||||
</xpath>
|
||||
<!-- Column #03 -->
|
||||
<xpath expr="//div[hasclass('row')]/div[3]/div" position="replace">
|
||||
@@ -30,7 +30,7 @@
|
||||
<div class="card-wrapper shadow-lg position-relative p-4 bg-white rounded-3 mt-n4" style="z-index:1;">
|
||||
<h4 class="card-title mt-4">Prague</h4>
|
||||
<p>Prague is the equal of Paris in terms of beauty. Its history goes back a millennium. And the beer? The best in Europe. Prague is the perfect city to walk around.</p>
|
||||
<a href="#" class="btn btn-primary mb-2">Book now</a>
|
||||
<a href="#" class="btn btn-primary">Book now</a>
|
||||
</div>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user