2016-12-10 1 views
0

のSassのブレークポイントが含まれているプロジェクトに取り組んでいます。私はワークフローを処理するためにgulpを使用しています。ブレークポイントのミックスインコンパイルエラー

このコンパイルエラーが発生して、それ以上の処理が妨げられるまで、状況はうまくいきました。私はコードとGitbashで受け取ったエラーを共有しています。

 a{ 
      color:$navForeground; 
      text-decoration:none; 
      text-align:center; 
      display:inline-block; 
      padding:10px; 
      font-size:1.5em 

      @include breakpoint(max-width $small){ 
          font-size:1.2em; 
          span{ 
           display:none; 
          } 
         } 
     }//a 

_nav.scss

この_nav.scssstyles.cssにコンパイルされます。以下は、私がbashで得ているエラーです。

Compilation failed in 1 files. 

[16:32:22] { [Error:  error components/sass/style.scss (Line 25 of C:/Users/user/Desktop/responsive/components/sass/modules/_nav.scss: Invalid CSS after " font-size:1.5em": expected ";", was "@include breakp...") 
    Compilation failed in 1 files. 
    ] 
     message: ' error components/sass/style.scss (Line 25 of C:/Users/user/Desktop/responsive/ 
components/sass/modules/_nav.scss: Invalid CSS after "\t\t\tfont-size:1.5em": expected ";", was "@include breakp...")\r\nCompilation failed in 1 files.\r\n', 
     fileName: 'C:\\Users\\user\\desktop\\responsive\\components\\sass\\style.scss', 
     showStack: false, 
     showProperties: true, 
     plugin: 'gulp-compass', 
     __safety: { toString: [Function: bound ] } } 

誰かが助けてくれたら本当に感謝します。前もって感謝します。

答えて

1

あなたがfont-size: 1.5em後にセミコロンを忘れていました:

font-size: 1.5em; 

@include breakpoint(max-width $small) { 
+0

Thanz man..Suchタイプミス! –

関連する問題