开发者

Please tell me what is wrong with this HAML :sass filter syntax

-content_for :styles do
  :sass
    #image_column { 
      width: 200px;
      float: right;
      padding:15px;
      background-color: #eee;
    }

error: Invalid CS开发者_如何学运维S after "200px": expected expression (e.g. 1px, bold), was ";"


You've written SCSS instead of SASS. Try this?

- content_for :styles do
  :sass
    #image_column 
      width: 200px
      float: right
      padding: 15px
      background-color: #eee


I had similar problem using SCOUT and naming files example.sass

Same error:

expected expression (e.g. 1px, bold), was ";")

Because i forgot change extension to .scss

Maybe this will be helpful.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜