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

Question: do we have maps/objects to work with? #2795

Closed
stevenvachon opened this issue Feb 1, 2016 · 2 comments
Closed

Question: do we have maps/objects to work with? #2795

stevenvachon opened this issue Feb 1, 2016 · 2 comments

Comments

@stevenvachon
Copy link

Trying to group my grid declarations together. Do we have string key-based objects in Less.js CSS?

In js:

object = { key:value };

In CSS?:

@varname {
  key: value
}

If so, is there documentation on how to work with them (loops,etc) ?

@seven-phases-max
Copy link
Member

For a "use right now" thing see less-plugin-lists:at.
I was thinking of adding there a support for a rulesets too, but since personally I don't find ruleset-like syntax for maps to have any benefits in this ("plugin-lists") case, I postponed this for next (or so) version.

For a native syntax/feature proposal see #1848 (and its following less/less-meta#12).


For a generic "native" examples (w/o any plugins and #1848) see 1, 2 and similar stuff at SO.

@seven-phases-max
Copy link
Member

Merging to #1848.

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