I have an old app built with Bootstrap 3 that heavily uses the well
class for styling various elements. However, Bootstrap 5 no longer includes the well
class, so I'm looking for a suitable replacement such as
class="card text-dark text-bg-light mt-2 mb-3 card-body"
.
Manually replacing every instance of well
is not ideal, especially since the current replacement might not be perfect. Ideally, I want to define something similar to:
#define well "card text-dark text-bg-light mt-2 mb-3 card-body"
This would allow me to seamlessly transition without modifying the existing HTML. Is there a CSS solution for achieving this? A SASS approach would also be appreciated.