{"action":"opened","issue":{"url":"https://api.github.com/repos/outpunk/postcss-each/issues/22","repository_url":"https://api.github.com/repos/outpunk/postcss-each","labels_url":"https://api.github.com/repos/outpunk/postcss-each/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/outpunk/postcss-each/issues/22/comments","events_url":"https://api.github.com/repos/outpunk/postcss-each/issues/22/events","html_url":"https://github.com/outpunk/postcss-each/issues/22","id":157581525,"number":22,"title":"Accessing values from postcss-map","user":{"login":"aviemet","id":422394,"avatar_url":"https://avatars.githubusercontent.com/u/422394?v=3","gravatar_id":"","url":"https://api.github.com/users/aviemet","html_url":"https://github.com/aviemet","followers_url":"https://api.github.com/users/aviemet/followers","following_url":"https://api.github.com/users/aviemet/following{/other_user}","gists_url":"https://api.github.com/users/aviemet/gists{/gist_id}","starred_url":"https://api.github.com/users/aviemet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aviemet/subscriptions","organizations_url":"https://api.github.com/users/aviemet/orgs","repos_url":"https://api.github.com/users/aviemet/repos","events_url":"https://api.github.com/users/aviemet/events{/privacy}","received_events_url":"https://api.github.com/users/aviemet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-31T03:09:07Z","updated_at":"2016-05-31T03:09:07Z","closed_at":null,"body":"I am trying to build a custom grid definition, would like to keep settings in a yaml file, something like this:\r\n\r\n```\r\n# settings.yml\r\nbreakpoints:\r\n  small: 360px\r\n  medium: 600px\r\n  large: 1180px\r\n  xlarge: 1400px\r\n\r\ngrid:\r\n  columns: 12\r\n```\r\n\r\nif I iterate over with each, is there a way to get the key? I'm trying to do something like this:\r\n\r\n```\r\n@for $i from 1 to map(settings, grid, columns) {\r\n  @each $name, $width in map(settings, breakpoints){\r\n    @media screen and (max-width: $(width)){\r\n      .$(name)-$(i){\r\n        ...\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nWhich outputs:\r\n```\r\n@media screen and (max-width: 0){\r\n  .row .[object Object]-1{\r\n    ...\r\n  }\r\n}\r\n```\r\n\r\nIs this at all possible?\r\n\r\nI tried storing values in parens: `- (small, 360px)` which gave some strange results."}}
{"actor":{"display_login":"aviemet"}}