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 @@
|
||||
<h1>Miraillet Festival</h1>
|
||||
<p class="lead">From the 12th to the 17th of August, come and enjoy the atmosphere at the Miraillet Festival. Discover the line up below.</p>
|
||||
<p><br/></p>
|
||||
<p><a href="/contactus" class="btn btn-primary btn-lg mb-2">More Info</a></p>
|
||||
<p><a href="/contactus" class="btn btn-primary btn-lg">More Info</a></p>
|
||||
</div>
|
||||
</xpath>
|
||||
<!-- Slide #1 - Shape -->
|
||||
@@ -29,7 +29,7 @@
|
||||
<h1>6 Days Pass</h1>
|
||||
<p class="lead">Tickets will be on sale soon. Do not miss our 6 Days Pass. Free camping!</p>
|
||||
<p><br/></p>
|
||||
<p><a href="/" class="btn btn-primary btn-lg mb-2">More Info</a></p>
|
||||
<p><a href="/" class="btn btn-primary btn-lg">More Info</a></p>
|
||||
</div>
|
||||
</xpath>
|
||||
<!-- Slide #2 - Shape -->
|
||||
@@ -46,7 +46,7 @@
|
||||
<h1>Recent Editions</h1>
|
||||
<p class="lead">Discover what makes the reputation of the Miraillet festival through these after-movies.</p>
|
||||
<p><br/></p>
|
||||
<p><a href="/" class="btn btn-primary btn-lg mb-2">More Info</a></p>
|
||||
<p><a href="/" class="btn btn-primary btn-lg">More Info</a></p>
|
||||
</div>
|
||||
</xpath>
|
||||
<!-- Slide #3 - Shape -->
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
</xpath>
|
||||
<!-- Row #2 - Add a button -->
|
||||
<xpath expr="(//div[hasclass('s_media_list_body')])[2]//p" position="after">
|
||||
<a href="#" class="btn btn-primary mb-2">More info</a>
|
||||
<a href="#" class="btn btn-primary">More info</a>
|
||||
</xpath>
|
||||
|
||||
<!-- Row #3 -->
|
||||
@@ -92,7 +92,7 @@
|
||||
</xpath>
|
||||
<!-- Row #3 - Add a button -->
|
||||
<xpath expr="(//div[hasclass('s_media_list_body')])[3]//a" position="replace">
|
||||
<a href="#" class="btn btn-primary mb-2">More info</a>
|
||||
<a href="#" class="btn btn-primary">More info</a>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user