sylvainpolletvillard / postcss-grid-kiss

A PostCSS plugin to keep CSS grids stupidly simple
https://sylvainpolletvillard.github.io/grid-kiss-playground/index.html
MIT License
1.32k stars 53 forks source link

Error when rows are delimited by single quotes #14

Closed LeoColomb closed 5 years ago

LeoColomb commented 5 years ago

That line excludes the usage of single-quotes:

https://github.com/sylvainpolletvillard/postcss-grid-kiss/blob/ae2863de653deb05016008ef0cc6680d8557985e/lib/parse.js#L14

Thus the following does not work:

body {
    grid-kiss:
        '+-------------------------------+      '
        '|           header ↑            | 120px'
        '+-------------------------------+      '
        '                                       '
        '+-- 30% ---+  +--- auto --------+      '
        '| .sidebar |  |       main      | auto '
        '+----------+  +-----------------+      '
        '                                       '
        '+-------------------------------+      '
        '|              ↓                | 60px '
        '|         → footer ←            |      '
        '+-------------------------------+      '
}
sylvainpolletvillard commented 5 years ago

Fixed in v2.2.0. Thanks !