css - SASS throws an error for BEM syntax -


I'm just trying to use "modifier" and "element" BEM syntax in SASS.

  .second-title {background-color: green; & Amp; - touched {background-color: black; } & Amp; __ left {background color: red; }}   

The CSS file is compiled correctly but when I try to run "Huffy Service" throws the following error:

  Syntax error: \ "& Amp; - \" after invalid css: Expected number or function, \ "- Touched {\" \ A on D: / webdev / angularjs / ang-snapscan / app / styles / mobilestyle.scss "   

In order to use the parent selector in this way, You must use Sass 3.3:

if If you are stuck using the old version, you can try it:

  $ Module: 'second title'; .second-title {# {$ Module} - touch {background -color: black;}. # {$ Module} __ left {background-color: red;}    

Comments

Popular posts from this blog

c# - The item with identity 'Id' already exists in the metadata collection. Parameter name: item -

sql - PostgreSQL automatically update row at specific date -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -