{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/protocol/pulls/comments/187471479","pull_request_review_id":119261566,"id":187471479,"diff_hunk":"@@ -0,0 +1,204 @@\n+// This Source Code Form is subject to the terms of the Mozilla Public\n+// License, v. 2.0. If a copy of the MPL was not distributed with this\n+// file, You can obtain one at http://mozilla.org/MPL/2.0/.\n+\n+@import '../includes/lib';\n+\n+/* -------------------------------------------------------------------------- */\n+// Card grid layout classes.\n+\n+/* -------------------------------------------------------------------------- */\n+// 5 card hero\n+// On small screens cards stack vertically and span full container width.\n+// On medium sized screens the 1st card spans full width, and the remaining 4 cards span half widths.\n+// On large screens the 1st card spans 2 thirds, and the remaining cards span 1 third.\n+.mzp-l-card-hero {\n+    @media #{$media-sm} {\n+        @include clearfix;\n+\n+        .mzp-c-card {\n+            @include bidi((\n+                (float, left, right),\n+                (margin-left, 0, $margin-xl),\n+                (margin-right, $margin-xl, 0),\n+            ));\n+            width: calc(50% - (#{$margin-xl} / 2));\n+\n+            &:nth-child(odd) {\n+                margin-left: 0;\n+                margin-right: 0;\n+            }\n+\n+            &.mzp-c-card-large {\n+                width: 100%;\n+            }\n+        }\n+    }\n+\n+    @media #{$media-lg} {\n+        .mzp-c-card {\n+            width: calc(33.3% - (#{$margin-xl} - (#{$margin-xl} / 3)));\n+\n+            &:nth-child(odd) {\n+                @include bidi((\n+                    (margin-left, 0, $margin-xl),\n+                    (margin-right, $margin-xl, 0),\n+                ));\n+            }\n+\n+            &:nth-child(2),\n+            &:last-child {\n+                margin-right: 0;","path":"src/assets/sass/protocol/templates/_card-layout.scss","position":51,"original_position":51,"commit_id":"7a0673925a5641ada44221a7bd1dbdc38af7edb3","original_commit_id":"7a0673925a5641ada44221a7bd1dbdc38af7edb3","user":{"login":"alexgibson","id":400117,"avatar_url":"https://avatars0.githubusercontent.com/u/400117?v=4","gravatar_id":"","url":"https://api.github.com/users/alexgibson","html_url":"https://github.com/alexgibson","followers_url":"https://api.github.com/users/alexgibson/followers","following_url":"https://api.github.com/users/alexgibson/following{/other_user}","gists_url":"https://api.github.com/users/alexgibson/gists{/gist_id}","starred_url":"https://api.github.com/users/alexgibson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexgibson/subscriptions","organizations_url":"https://api.github.com/users/alexgibson/orgs","repos_url":"https://api.github.com/users/alexgibson/repos","events_url":"https://api.github.com/users/alexgibson/events{/privacy}","received_events_url":"https://api.github.com/users/alexgibson/received_events","type":"User","site_admin":false},"body":"Ah! i struggled with this and didn't grok the extra value. Thanks for the pointer 👍 ","created_at":"2018-05-10T21:55:31Z","updated_at":"2018-05-10T21:55:32Z","html_url":"https://github.com/mozilla/protocol/pull/103#discussion_r187471479","pull_request_url":"https://api.github.com/repos/mozilla/protocol/pulls/103","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/mozilla/protocol/pulls/comments/187471479"},"html":{"href":"https://github.com/mozilla/protocol/pull/103#discussion_r187471479"},"pull_request":{"href":"https://api.github.com/repos/mozilla/protocol/pulls/103"}},"in_reply_to_id":187464763},"pull_request":{"url":"https://api.github.com/repos/mozilla/protocol/pulls/103","id":186965009,"html_url":"https://github.com/mozilla/protocol/pull/103","diff_url":"https://github.com/mozilla/protocol/pull/103.diff","patch_url":"https://github.com/mozilla/protocol/pull/103.patch","issue_url":"https://api.github.com/repos/mozilla/protocol/issues/103","number":103,"state":"open","locked":false,"title":"Add card molecule (Fixes #71)","user":{"login":"alexgibson","id":400117,"avatar_url":"https://avatars0.githubusercontent.com/u/400117?v=4","gravatar_id":"","url":"https://api.github.com/users/alexgibson","html_url":"https://github.com/alexgibson","followers_url":"https://api.github.com/users/alexgibson/followers","following_url":"https://api.github.com/users/alexgibson/following{/other_user}","gists_url":"https://api.github.com/users/alexgibson/gists{/gist_id}","starred_url":"https://api.github.com/users/alexgibson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexgibson/subscriptions","organizations_url":"https://api.github.com/users/alexgibson/orgs","repos_url":"https://api.github.com/users/alexgibson/repos","events_url":"https://api.github.com/users/alexgibson/events{/privacy}","received_events_url":"https://api.github.com/users/alexgibson/received_events","type":"User","site_admin":false},"body":"Description\r\n------------\r\n\r\n- Add a card molecule class with 4 variations:\r\n  - Large Card\r\n  - Medium Card\r\n  - Card\r\n  - Extra Small Card\r\n- Adds a card layout class template with 4 variations\r\n  - 5 Card Hero Layout\r\n  - 4 Card Layout\r\n  - 3 Card Layout\r\n  - 2 Card Layout\r\n- Adds a demo page showing different card type and layout combinations.\r\n\r\nDemo links\r\n-----------\r\n\r\n- https://demo1--mozilla-protocol.netlify.com/patterns/molecules/card.html\r\n- https://demo1--mozilla-protocol.netlify.com/patterns/templates/card-layout.html\r\n- https://demo1--mozilla-protocol.netlify.com/demos/card-layout.html","created_at":"2018-05-09T15:52:39Z","updated_at":"2018-05-10T21:55:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a41debe45d8a3742943d6af616150fa93b2677d7","assignee":{"login":"craigcook","id":205591,"avatar_url":"https://avatars1.githubusercontent.com/u/205591?v=4","gravatar_id":"","url":"https://api.github.com/users/craigcook","html_url":"https://github.com/craigcook","followers_url":"https://api.github.com/users/craigcook/followers","following_url":"https://api.github.com/users/craigcook/following{/other_user}","gists_url":"https://api.github.com/users/craigcook/gists{/gist_id}","starred_url":"https://api.github.com/users/craigcook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigcook/subscriptions","organizations_url":"https://api.github.com/users/craigcook/orgs","repos_url":"https://api.github.com/users/craigcook/repos","events_url":"https://api.github.com/users/craigcook/events{/privacy}","received_events_url":"https://api.github.com/users/craigcook/received_events","type":"User","site_admin":false},"assignees":[{"login":"craigcook","id":205591,"avatar_url":"https://avatars1.githubusercontent.com/u/205591?v=4","gravatar_id":"","url":"https://api.github.com/users/craigcook","html_url":"https://github.com/craigcook","followers_url":"https://api.github.com/users/craigcook/followers","following_url":"https://api.github.com/users/craigcook/following{/other_user}","gists_url":"https://api.github.com/users/craigcook/gists{/gist_id}","starred_url":"https://api.github.com/users/craigcook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigcook/subscriptions","organizations_url":"https://api.github.com/users/craigcook/orgs","repos_url":"https://api.github.com/users/craigcook/repos","events_url":"https://api.github.com/users/craigcook/events{/privacy}","received_events_url":"https://api.github.com/users/craigcook/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/protocol/pulls/103/commits","review_comments_url":"https://api.github.com/repos/mozilla/protocol/pulls/103/comments","review_comment_url":"https://api.github.com/repos/mozilla/protocol/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/protocol/issues/103/comments","statuses_url":"https://api.github.com/repos/mozilla/protocol/statuses/7a0673925a5641ada44221a7bd1dbdc38af7edb3","head":{"label":"alexgibson:card-molecule","ref":"card-molecule","sha":"7a0673925a5641ada44221a7bd1dbdc38af7edb3","user":{"login":"alexgibson","id":400117,"avatar_url":"https://avatars0.githubusercontent.com/u/400117?v=4","gravatar_id":"","url":"https://api.github.com/users/alexgibson","html_url":"https://github.com/alexgibson","followers_url":"https://api.github.com/users/alexgibson/followers","following_url":"https://api.github.com/users/alexgibson/following{/other_user}","gists_url":"https://api.github.com/users/alexgibson/gists{/gist_id}","starred_url":"https://api.github.com/users/alexgibson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexgibson/subscriptions","organizations_url":"https://api.github.com/users/alexgibson/orgs","repos_url":"https://api.github.com/users/alexgibson/repos","events_url":"https://api.github.com/users/alexgibson/events{/privacy}","received_events_url":"https://api.github.com/users/alexgibson/received_events","type":"User","site_admin":false},"repo":{"id":129216046,"name":"protocol","full_name":"alexgibson/protocol","owner":{"login":"alexgibson","id":400117,"avatar_url":"https://avatars0.githubusercontent.com/u/400117?v=4","gravatar_id":"","url":"https://api.github.com/users/alexgibson","html_url":"https://github.com/alexgibson","followers_url":"https://api.github.com/users/alexgibson/followers","following_url":"https://api.github.com/users/alexgibson/following{/other_user}","gists_url":"https://api.github.com/users/alexgibson/gists{/gist_id}","starred_url":"https://api.github.com/users/alexgibson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexgibson/subscriptions","organizations_url":"https://api.github.com/users/alexgibson/orgs","repos_url":"https://api.github.com/users/alexgibson/repos","events_url":"https://api.github.com/users/alexgibson/events{/privacy}","received_events_url":"https://api.github.com/users/alexgibson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alexgibson/protocol","description":"A design system for Mozilla websites.","fork":true,"url":"https://api.github.com/repos/alexgibson/protocol","forks_url":"https://api.github.com/repos/alexgibson/protocol/forks","keys_url":"https://api.github.com/repos/alexgibson/protocol/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alexgibson/protocol/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alexgibson/protocol/teams","hooks_url":"https://api.github.com/repos/alexgibson/protocol/hooks","issue_events_url":"https://api.github.com/repos/alexgibson/protocol/issues/events{/number}","events_url":"https://api.github.com/repos/alexgibson/protocol/events","assignees_url":"https://api.github.com/repos/alexgibson/protocol/assignees{/user}","branches_url":"https://api.github.com/repos/alexgibson/protocol/branches{/branch}","tags_url":"https://api.github.com/repos/alexgibson/protocol/tags","blobs_url":"https://api.github.com/repos/alexgibson/protocol/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alexgibson/protocol/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alexgibson/protocol/git/refs{/sha}","trees_url":"https://api.github.com/repos/alexgibson/protocol/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alexgibson/protocol/statuses/{sha}","languages_url":"https://api.github.com/repos/alexgibson/protocol/languages","stargazers_url":"https://api.github.com/repos/alexgibson/protocol/stargazers","contributors_url":"https://api.github.com/repos/alexgibson/protocol/contributors","subscribers_url":"https://api.github.com/repos/alexgibson/protocol/subscribers","subscription_url":"https://api.github.com/repos/alexgibson/protocol/subscription","commits_url":"https://api.github.com/repos/alexgibson/protocol/commits{/sha}","git_commits_url":"https://api.github.com/repos/alexgibson/protocol/git/commits{/sha}","comments_url":"https://api.github.com/repos/alexgibson/protocol/comments{/number}","issue_comment_url":"https://api.github.com/repos/alexgibson/protocol/issues/comments{/number}","contents_url":"https://api.github.com/repos/alexgibson/protocol/contents/{+path}","compare_url":"https://api.github.com/repos/alexgibson/protocol/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alexgibson/protocol/merges","archive_url":"https://api.github.com/repos/alexgibson/protocol/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alexgibson/protocol/downloads","issues_url":"https://api.github.com/repos/alexgibson/protocol/issues{/number}","pulls_url":"https://api.github.com/repos/alexgibson/protocol/pulls{/number}","milestones_url":"https://api.github.com/repos/alexgibson/protocol/milestones{/number}","notifications_url":"https://api.github.com/repos/alexgibson/protocol/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alexgibson/protocol/labels{/name}","releases_url":"https://api.github.com/repos/alexgibson/protocol/releases{/id}","deployments_url":"https://api.github.com/repos/alexgibson/protocol/deployments","created_at":"2018-04-12T08:08:35Z","updated_at":"2018-05-09T17:05:34Z","pushed_at":"2018-05-10T21:33:25Z","git_url":"git://github.com/alexgibson/protocol.git","ssh_url":"git@github.com:alexgibson/protocol.git","clone_url":"https://github.com/alexgibson/protocol.git","svn_url":"https://github.com/alexgibson/protocol","homepage":null,"size":4419,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"d701fcc519232f0472f8b20a2638b59501f3089b","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars2.githubusercontent.com/u/131524?v=4","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":122381861,"name":"protocol","full_name":"mozilla/protocol","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars2.githubusercontent.com/u/131524?v=4","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/protocol","description":"A design system for Mozilla websites.","fork":false,"url":"https://api.github.com/repos/mozilla/protocol","forks_url":"https://api.github.com/repos/mozilla/protocol/forks","keys_url":"https://api.github.com/repos/mozilla/protocol/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/protocol/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/protocol/teams","hooks_url":"https://api.github.com/repos/mozilla/protocol/hooks","issue_events_url":"https://api.github.com/repos/mozilla/protocol/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/protocol/events","assignees_url":"https://api.github.com/repos/mozilla/protocol/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/protocol/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/protocol/tags","blobs_url":"https://api.github.com/repos/mozilla/protocol/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/protocol/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/protocol/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/protocol/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/protocol/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/protocol/languages","stargazers_url":"https://api.github.com/repos/mozilla/protocol/stargazers","contributors_url":"https://api.github.com/repos/mozilla/protocol/contributors","subscribers_url":"https://api.github.com/repos/mozilla/protocol/subscribers","subscription_url":"https://api.github.com/repos/mozilla/protocol/subscription","commits_url":"https://api.github.com/repos/mozilla/protocol/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/protocol/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/protocol/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/protocol/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/protocol/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/protocol/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/protocol/merges","archive_url":"https://api.github.com/repos/mozilla/protocol/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/protocol/downloads","issues_url":"https://api.github.com/repos/mozilla/protocol/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/protocol/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/protocol/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/protocol/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/protocol/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/protocol/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla/protocol/deployments","created_at":"2018-02-21T19:19:50Z","updated_at":"2018-05-09T17:04:48Z","pushed_at":"2018-05-10T21:33:26Z","git_url":"git://github.com/mozilla/protocol.git","ssh_url":"git@github.com:mozilla/protocol.git","clone_url":"https://github.com/mozilla/protocol.git","svn_url":"https://github.com/mozilla/protocol","homepage":"https://mozilla-protocol.netlify.com/","size":4378,"stargazers_count":5,"watchers_count":5,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":51,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":9,"open_issues":51,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/protocol/pulls/103"},"html":{"href":"https://github.com/mozilla/protocol/pull/103"},"issue":{"href":"https://api.github.com/repos/mozilla/protocol/issues/103"},"comments":{"href":"https://api.github.com/repos/mozilla/protocol/issues/103/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/protocol/pulls/103/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/protocol/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/protocol/pulls/103/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/protocol/statuses/7a0673925a5641ada44221a7bd1dbdc38af7edb3"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"alexgibson"}}