4 ms·
I still think it would be nice if CSS natively allowed you to combine classes the way these @extend and @apply operators do
by hipadev23 3y ago
I still think it would be nice if CSS natively allowed you to combine classes the way these @extend and @apply operators do
- jermaustin1 3y agoIn practice, I never have found much benefit to that. If I need a base class, I will create a base class. .validation-message for instance, then if the validation is a success/error/warning/info, I will write those classes, then my validation message element will have 2 classes on it "validation-message warning" That way there is no repeated rules like in the final compiled @extend/@apply operations.