0 works

Chain BEM classes based on parent


dashboard+ Project

Posted by @360designer #css

Code snippet:

.block {
    &__element 				{color: red;
	    $self : &;
        #{$self}__element 	{color: green}
    }   
}

/*
	.block__element 			{color: red}
	.block__element__element 	{color: green}

*/
content_copyCopy to Clipboard

>> Browse more code snippets

more_vert