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

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -