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

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -