I have a css class like:
.foo { background-color: red; }
then I have a class specified for a list:
.list1 li { background-c
Not with any syntax like that (and don't confuse a "class" (an HTML term) with a "class selector" or a "rule-set").
Your options are multiple classes, grouping selectors or preprocessing.