This may not be the right wording, which may also be the reason I could not find any answers previously, so my apologies if this is a duplicate.
I am writing a basic CSS framework/guideline that will be used for multiple projects, and I wanted to create a number of classes that will have styles associated with them off the bat in order to make development quicker.
For example, I am looking to be able to do something along the lines of the following:
<div class="flex-column-wrap"></div>
Where I would write an SCSS selector which would accomplish something along the lines of:
.flex {
display:flex;
&.-column {
flex-direction:column;
}
&.-wrap {
flex-wrap:wrap;
}
&.-column-wrap {
flex-direction:column;
flex-wrap:wrap;
}
}
I know the & selector would not work in this situation, because it is one class, which is what I was trying to accomplish to not add 3 individual classes, like so <div class="flex column wrap"></div>
Not sure if something like this is possible or if it would just make more sense to write out all of the classes individually. I appreciate any insight into this!