I am looking to migrate some classes from Bootstrap 4 to 5 because some of the Bootstrap classes are no longer usable, especially in utilities. I am using SASS so I can utilize @extend for this process.
https://i.sstatic.net/dEDCw.png
For classes .text-left and .text-right, extending them is straightforward:
.text-left {
@extend .text-start;
}
.text-right {
@extend .text-end;
}
However, when it comes to classes like (.ml- and .mr-) or (.pl- and .pr-), I am unsure how to efficiently extend them without having to input each one individually (e.g., .ml-1, .ml-2). Is there a way to extend them all at once instead of multiple individual extends?