Invalid variable sass error -
this question has answer here:
- how do media query using sass? 3 answers
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
Post a Comment