{"action":"created","issue":{"url":"https://api.github.com/repos/redhataccess/cp-grid/issues/3","repository_url":"https://api.github.com/repos/redhataccess/cp-grid","labels_url":"https://api.github.com/repos/redhataccess/cp-grid/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/redhataccess/cp-grid/issues/3/comments","events_url":"https://api.github.com/repos/redhataccess/cp-grid/issues/3/events","html_url":"https://github.com/redhataccess/cp-grid/issues/3","id":190336471,"number":3,"title":"Mix 'n match grid vs. columns","user":{"login":"starryeyez024","id":456863,"avatar_url":"https://avatars.githubusercontent.com/u/456863?v=3","gravatar_id":"","url":"https://api.github.com/users/starryeyez024","html_url":"https://github.com/starryeyez024","followers_url":"https://api.github.com/users/starryeyez024/followers","following_url":"https://api.github.com/users/starryeyez024/following{/other_user}","gists_url":"https://api.github.com/users/starryeyez024/gists{/gist_id}","starred_url":"https://api.github.com/users/starryeyez024/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/starryeyez024/subscriptions","organizations_url":"https://api.github.com/users/starryeyez024/orgs","repos_url":"https://api.github.com/users/starryeyez024/repos","events_url":"https://api.github.com/users/starryeyez024/events{/privacy}","received_events_url":"https://api.github.com/users/starryeyez024/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-18T14:47:54Z","updated_at":"2016-11-18T14:55:58Z","closed_at":null,"body":"It seems that sometimes numbers define how many children there are, and sometimes it refers to how many grid columns an item should occupy:\r\nhttps://www.evernote.com/l/AA7mdyoM5XJDSIxVr95NAbHOf37h7T-pQVs\r\n\r\nIf the medium breakpoint implies that there are 4 columns  `data-cp-grid=\"md-4\"` and I guess its assumed that the grid is 12 columns? So if we are talking number of columns, the attribute on the first child that spans 2 of those columns should be data-cp-grid-size=\"md-2-cols\". \r\n\r\n`md-6-cols` refers to how many columns to span on a 12 col grid, but can't the number of columns change based on the parent? \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/redhataccess/cp-grid/issues/comments/261551014","html_url":"https://github.com/redhataccess/cp-grid/issues/3#issuecomment-261551014","issue_url":"https://api.github.com/repos/redhataccess/cp-grid/issues/3","id":261551014,"user":{"login":"markcaron","id":1890950,"avatar_url":"https://avatars.githubusercontent.com/u/1890950?v=3","gravatar_id":"","url":"https://api.github.com/users/markcaron","html_url":"https://github.com/markcaron","followers_url":"https://api.github.com/users/markcaron/followers","following_url":"https://api.github.com/users/markcaron/following{/other_user}","gists_url":"https://api.github.com/users/markcaron/gists{/gist_id}","starred_url":"https://api.github.com/users/markcaron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markcaron/subscriptions","organizations_url":"https://api.github.com/users/markcaron/orgs","repos_url":"https://api.github.com/users/markcaron/repos","events_url":"https://api.github.com/users/markcaron/events{/privacy}","received_events_url":"https://api.github.com/users/markcaron/received_events","type":"User","site_admin":false},"created_at":"2016-11-18T14:55:58Z","updated_at":"2016-11-18T14:55:58Z","body":"I see where the confusion lies. `[data-cp-grid]` doesn't define the grid the way you're thinking. It's not changing it from a 12 column grid to a 2 columns grid. It's always a 12 column grid. It's just defining how many children per row. I guess this is almost the same thing. I'm going to change the syntax.\r\n\r\n`[data-cp-grid=\"sm-2-cols\"]` on the wrapper will define how many children per row (in this case it's 2).\r\nYou can override a child's column spanning on the child itself with `[data-cp-grid-size=\"sm-span-4\"]`.\r\nI will also add support for the `[data-cp-grid=\"sm-2-8\"]` syntax.\r\n\r\nToo confusing? I'm trying to work out the most efficient as well as most logical approach to this."}}
{"actor":{"display_login":"markcaron"}}