{ "id": "97348", "key": "ALOY-88", "fields": { "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true }, "parent": { "id": "97343", "key": "ALOY-87", "fields": { "summary": "Platform and form factor specific styling, like media queries", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-23T06:34:05.000+0000", "created": "2012-07-16T09:06:47.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-03-07T22:26:13.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12326", "name": "XML", "description": "View XML and parsing" } ], "description": "There's a couple ways we could do this:\r\n\r\n# A custom \"selector\"\r\n** {code}\"#myView[platform=ios]\": { \"backgroundColor\": \"#a00\" }{code}\r\n# A syntax by which multiple items can be grouped under one \"selector\"\r\n** {code}\"[platform=android,size=tablet]\": {\r\n \"#myView\": { \"backgroundColor\": \"#300\" },\r\n \"#anotherView: { \"height\": 200 }\r\n}{code}\r\n\r\nI'm open to other suggestions that could be fit into the current JSON derivative syntax we are using.", "attachment": [], "flagged": false, "summary": "Alloy style files to specify platform and form factor specific sections", "creator": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "207807", "author": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "To makes use of media queries we can only make parse and prepare the query based on information we get back from the device. I'm not sure with Android we can get if it's a tablet or not. I think using a max/min width and pixel density are all values we can get back from querying device capabilities.", "updateAuthor": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-16T14:02:55.000+0000", "updated": "2012-07-16T14:02:55.000+0000" }, { "id": "207809", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-16T14:06:37.000+0000", "updated": "2012-07-16T14:06:37.000+0000" }, { "id": "208853", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tons of detail available in the final comments in this thread: https://groups.google.com/forum/?fromgroups#!starred/appc-ti-alloy/xgsnEdhfIDo", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-23T06:34:05.000+0000", "updated": "2012-07-23T06:34:05.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }