[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:
Robin Lejeune (role)
2023-08-01 12:52:07 +00:00
parent 6a50b911fe
commit a86d9f73df
14 changed files with 30 additions and 27 deletions
+3 -3
View File
@@ -18,7 +18,7 @@
<h2 style="text-align: center;">Aquitani</h2>
<p class="lead" style="text-align: center;"><b>Photoshoot / June 2021</b></p>
<p style="text-align: center;">
<a href="#" class="btn btn-primary btn-lg mb-2">Discover</a>
<a href="#" class="btn btn-primary btn-lg">Discover</a>
</p>
</div>
</xpath>
@@ -39,7 +39,7 @@
<h2 style="text-align: center;">Immemorabili</h2>
<p class="lead" style="text-align: center;"><b>Painting concept / April 2021</b></p>
<p style="text-align: center;">
<a href="#" class="btn btn-primary btn-lg mb-2">Discover</a>
<a href="#" class="btn btn-primary btn-lg">Discover</a>
</p>
</div>
</xpath>
@@ -60,7 +60,7 @@
<h2 style="text-align: center;">Vincam</h2>
<p class="lead" style="text-align: center;"><b>Typographic collection / March 2021</b></p>
<p style="text-align: center;">
<a href="#" class="btn btn-primary btn-lg mb-2">Discover</a>
<a href="#" class="btn btn-primary btn-lg">Discover</a>
</p>
</div>
</xpath>