Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on named CSS grid line naming #235

Open
davemacdo opened this issue Aug 20, 2017 · 1 comment
Open

Error on named CSS grid line naming #235

davemacdo opened this issue Aug 20, 2017 · 1 comment

Comments

@davemacdo
Copy link

I'm getting an error when I try to used named lines in the CSS Grid spec.

Grunt-contrib-sass throws an error and will not compile my Sass (scss) when it includes the following example from MDN's grid documentation

grid-template-columns: [main-start] 1fr [content-start] 1fr [content-end] 1fr [main-end];

It seems to fall down when it sees the square brackets.

@dofgabi
Copy link

dofgabi commented Dec 13, 2017

Same for me, i'm trying to used named lines but it does not work.
Edit : You can use something like this :
grid-template-columns: 1fr unquote('[col-item]') 5%;

Edit again : i builded this it's work :
@function named($name) { @return unquote('[' + $name + ']'); } grid-template-columns: 1fr named('ipsum') 5%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants