2017-08-21 24 views
0

私はこのコードSASS構文(SCSSではなく)でサスマップを使用するにはどうすればよいですか?

$column-width: (
    first: 210px 
    second: 200px 
    third: 100px 
    ) 

@each $column, $width in $column-width 
    .col-#{$column} 
     width: $width 

を使用しようとしていますときに私はそれを修正することができますどのようにエラー

Message: 
    _sass\grid.sass 
Error: unclosed parenthesis 
     on line 1 of _sass/grid.sass 
>> $column-width: ({ 
    ---------------^ 

を持っていますか?

+0

可能な重複(https://stackoverflow.com/questions/23808514/sass-mappings-and-indented-syntax) – blonfu

答えて

1

SASSはマップの複数行構文をサポートしていません。現時点で

溶液

$column-width: (first: 210px, second: 200px, third: 100px) 
[サスマッピングとインデント構文]の
関連する問題