{"action":"created","issue":{"url":"https://api.github.com/repos/djgrant/chameleon/issues/6","repository_url":"https://api.github.com/repos/djgrant/chameleon","labels_url":"https://api.github.com/repos/djgrant/chameleon/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/djgrant/chameleon/issues/6/comments","events_url":"https://api.github.com/repos/djgrant/chameleon/issues/6/events","html_url":"https://github.com/djgrant/chameleon/issues/6","id":155821346,"number":6,"title":"Progressive enhancement","user":{"login":"djgrant","id":1670902,"avatar_url":"https://avatars.githubusercontent.com/u/1670902?v=3","gravatar_id":"","url":"https://api.github.com/users/djgrant","html_url":"https://github.com/djgrant","followers_url":"https://api.github.com/users/djgrant/followers","following_url":"https://api.github.com/users/djgrant/following{/other_user}","gists_url":"https://api.github.com/users/djgrant/gists{/gist_id}","starred_url":"https://api.github.com/users/djgrant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djgrant/subscriptions","organizations_url":"https://api.github.com/users/djgrant/orgs","repos_url":"https://api.github.com/users/djgrant/repos","events_url":"https://api.github.com/users/djgrant/events{/privacy}","received_events_url":"https://api.github.com/users/djgrant/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-19T19:57:25Z","updated_at":"2016-05-24T10:38:22Z","closed_at":null,"body":"It seems daft that developers can create many versions of class for different breakpoints but it is not possible to do the same for JS/non-JS states. \r\n\r\nPropose adding the ability to generate conditional \"if\" classes.\r\n\r\n```scss\r\n@include classes('hidden', $on: ('base', 'mobile', 'no-js', 'js'));\r\n// generates\r\n.hidden {}\r\n.no-js .hidden-if-no-js {}\r\n.js .hidden-if-js {}\r\n@media [mobile media expression] {\r\n  .hidden-on-mobile {}\r\n}\r\n```\r\nIf `classes` encounters a string not in the breakpoint config it generates a conditional \"if\" class for the value of that string."},"comment":{"url":"https://api.github.com/repos/djgrant/chameleon/issues/comments/221231268","html_url":"https://github.com/djgrant/chameleon/issues/6#issuecomment-221231268","issue_url":"https://api.github.com/repos/djgrant/chameleon/issues/6","id":221231268,"user":{"login":"djgrant","id":1670902,"avatar_url":"https://avatars.githubusercontent.com/u/1670902?v=3","gravatar_id":"","url":"https://api.github.com/users/djgrant","html_url":"https://github.com/djgrant","followers_url":"https://api.github.com/users/djgrant/followers","following_url":"https://api.github.com/users/djgrant/following{/other_user}","gists_url":"https://api.github.com/users/djgrant/gists{/gist_id}","starred_url":"https://api.github.com/users/djgrant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djgrant/subscriptions","organizations_url":"https://api.github.com/users/djgrant/orgs","repos_url":"https://api.github.com/users/djgrant/repos","events_url":"https://api.github.com/users/djgrant/events{/privacy}","received_events_url":"https://api.github.com/users/djgrant/received_events","type":"User","site_admin":false},"created_at":"2016-05-24T10:38:22Z","updated_at":"2016-05-24T10:38:22Z","body":"Yep, that was unintentional"}}
{"actor":{"display_login":"djgrant"}}