I have this code:
input[type=\"text\"] { color: red; .blue { color: blue; } }
That gives me this
input[
You're looking for the parent selector (&):
&
input[type="text"] { color: red; &.blue { color: blue; } }