Changed sprite rules to use :before & @extends.