Skif
Skif

Reputation: 1288

How can I use sass maps with SASS syntax (not SCSS)?

When I am trying to use this code

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

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

I have got an error

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

How can I fix it?

Upvotes: 2

Views: 535

Answers (1)

Skif
Skif

Reputation: 1288

SASS doesn't support multiline syntax for maps.

The solution at present moment

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

Upvotes: 4

Related Questions