search

Home  >  Q&A  >  body text

gulp-ruby-sass编译出来的文件有错

伊谢尔伦伊谢尔伦2806 days ago643

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-04-24 09:15:23

    .sass的文件是靠缩进控制嵌套规则的,没有{}(好像也没有;记不清了),你可以选择把{}都去掉或者把文件名改为.scss suffixed.

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-24 09:15:23

    It seems to be a grammatical error. Should I try this?

    $font-stack:    Helvetica, sans-serif
    $primary-color: #333
    
    body
      font-family: $font-stack
      color: $primary-color

    reply
    0
  • Cancelreply