Home › Forums › Design › Can you do this is sass? › Reply To: Can you do this is sass?
January 15, 2018 at 2:08 am
#265449
Paulie_D
Member
No…no like that
but you can do
h1 {
color: green;
&.site{
color: white;
}
}
which outputs as
h1 {
color: green;
}
h1.site {
color: white;
}
http://thesassway.com/intermediate/referencing-parent-selectors-using-ampersand