Invalid variable sass error -


this question has answer here:

i'm trying convert sass file scss using sass-convert, when run command or when run compass watch following error:

invalid variable: $media (min-width: 950px)  

i work scss syntax i'm not sure why generating error, should @media?

the section of code is:

.center  text-align:center  .right  text-align:right  .top vertical-align:top  .middle  vertical-align:middle  $media (min-width: 950px)  .row     max-width:980px   $media (max-width: 900px)  .row     max-width:760px  .logo     width:300px 

thanks in advance on this.

you have quite number of formatting erros in code!

  • declarations can't inline selector.
  • there should @ least 1 space in every declaration after colon, otherwise it's treated pseudoclass.
  • a media block starts @, not $. $ variables.
  • rules inside media blocks should nested.

here's code formatted:

.center   text-align: center   .right   text-align: right   .top   vertical-align: top   .middle   vertical-align: middle   @media (min-width: 950px)    .row     max-width: 980px   @media (max-width: 900px)    .row     max-width: 760px    .logo     width: 300px 

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -