开发者

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

开发者 https://www.devze.com 2023-02-17 09:22 出处:网络
-content_for :styles do :sass #image_column { width: 200px; float: right; padding:15px; background-color: #eee;
-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

精彩评论

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