When working with Bootstrap 4, I have discovered the text-truncate
class that can be used in an element. For example:
<span class="text-truncate">Any very long text</span>
Now, my goal is to apply this text-truncate
class to multiple objects by defining it in a .scss file rather than directly in .html files.
Is there a way to achieve this?
Can I implement something like the following:
@import "text-truncate" from "bootstrap.scss";
.myBeautifulDiv {
use text-truncate;
}
This would be incredibly useful! Is it feasible?