How to differentiate "#id.class" from "#id .class" in SCSS?

Viewed 29150

How could I, with SCSS, make the difference between :

#id.class {
  color: red;
}

and :

#id .class{
  color: blue
} 

Because I need something like :

#id {
  .class {
    color: red;
  }
  ' ' + .class {
    color: blue;
  }
}
2 Answers
Related