Home › Forums › Other › Selecting a CSS Class divided into names › Reply To: Selecting a CSS Class divided into names
August 23, 2013 at 3:38 am
#147916
Paulie_D
Member
I’m not sure if I understand you correctly but, if I do, then the answer is…sort of.
SASS writes your CSS for you based on what is, effectively, shorthand notation.
If you have styles that are common to those classes you can define those as a base ‘style’ and then that base style is ‘extended’ to other classes.
For instance you might have a class called .asset
which has certain styles which will be common to all those ‘sub-classes’.
Then in your SASS you create a new class, say, .asset-download
and @extend the .asset
class to include that base styling then you add any special styles that or unique to that subclass.