I am frequently using this code to center some content
<!-- horizontal -->
<div class="d-flex align-items-center justify-content-center h-100">
..
</div>
<!-- vertical -->
<div class="d-flex align-items-center justify-content-center h-100 flex-column">
..
</div>
Is there a way to reuse / inherit this code, so that I can use it like below, where my-centered-container-vertical just adds flex-column to my-centered-container (no code duplication)?
<div class="my-centered-container">
</div
<div class="my-centered-container-vertical">
</div