{"action":"created","comment":{"url":"https://api.github.com/repos/asainz/css-training/pulls/comments/31949154","id":31949154,"diff_hunk":"@@ -0,0 +1,71 @@\n+# Pseudo classes \n+\n+## Info\n+\n+__Demo__: http://codepen.io/mvargas21/pen/MwmXYP\n+\n+__Gist__: https://gist.github.com/souichi6666/b22ec72fbb5379bb8386\n+## Description\n+\n+A CSS pseudo-class is a keyword added to selectors that specifies a special state of the element to be selected.\n+\n+It can be used to:\n+\n+- Style an element when a user mouses over it\n+- Style visited and unvisited links differently\n+\n+## All the pseudo classes\n+\n+| Name | example         | description |\n+| ------------- | ----------- | ----------- |\n+|:active\t|a:active\t|Selects the active link|\n+|:checked\t|input:checked\t|Selects every checked <input> element\n+|: disabled\t|input:disabled\t|Selects every disabled <input> element\n+|:empty\t|p:empty\t|Selects every <p> element that has no children\n+|:enabled\t|input:enabled\t|Selects every enabled <input> element\n+|:first-child\t|p:first-child\t|Selects every <p> elements that is the first child of its parent\n+|:first-of-type\t|p:first-of-type\t|Selects every <p> element that is the first <p> element of its parent\n+|:focus\t|input:focus\t|Selects the <input> element that has focus\n+|:hover\t|a:hover\t|Selects links on mouse over\n+|:in-range\t|input:in-range\t|Selects <input> elements with a value within a specified range\n+|:invalid\t|input:invalid\t|Selects all <input> elements with an invalid value\n+|:lang(language)|\tp:lang(it)\t|Selects every <p> element with a lang attribute value starting with \"it\"\n+|:last-child\t|p:last-child\t|Selects every <p> elements that is the last child of its parent\n+|:last-of-type\t|p:last-of-type\t|Selects every <p> element that is the last <p> element of its parent\n+|:link\t|a:link\t|Selects all unvisited links\n+|:not(selector)\t|:not(p)\t|Selects every element that is not a <p> element\n+|:nth-child(n)\t|p:nth-child(2)\t|Selects every <p> element that is the second child of its parent\n+|:nth-last-child(n)\t|p:nth-last-child(2)\t|Selects every <p> element that is the second child of its parent, counting from the last child\n+|:nth-last-of-type(n)\t|p:nth-last-of-type(2)\t|Selects every <p> element that is the second <p> element of its parent, counting from the last child\n+|:nth-of-type(n)\t|p:nth-of-type(2)\t|Selects every <p> element that is the second <p> element of its parent\n+|:only-of-type\t|p:only-of-type\t|Selects every <p> element that is the only <p> element of its parent\n+|:only-child\t|p:only-child\t|Selects every <p> element that is the only child of its parent\n+|:optional\t|input:optional\t|Selects <input> elements with no \"required\" attribute\n+|:out-of-range\t|input:out-of-range\t|Selects <input> elements with a value outside a specified range\n+|:read-only\t|input:read-only\t|Selects <input> elements with a \"readonly\" attribute specified\n+|:read-write\t|input:read-write\t|Selects <input> elements with no \"readonly\" attribute\n+|:required\t|input:required\t|Selects <input> elements with a \"required\" attribute specified\n+|:root\t|root\t|Selects the document's root element\n+|:target\t|#news:target\t|Selects the current active #news element (clicked on a URL containing that anchor name)\n+|:valid\t|input:valid\t|Selects all <input> elements with a valid value\n+|:visited\t|a:visited\t|Selects all visited links\n+","path":"css-selectors/pseudo-classes.md","position":52,"original_position":52,"commit_id":"b75757aad6998e145e9f1111b6f64dd8e6eca4f9","original_commit_id":"b75757aad6998e145e9f1111b6f64dd8e6eca4f9","user":{"login":"asainz","id":1131604,"avatar_url":"https://avatars.githubusercontent.com/u/1131604?v=3","gravatar_id":"","url":"https://api.github.com/users/asainz","html_url":"https://github.com/asainz","followers_url":"https://api.github.com/users/asainz/followers","following_url":"https://api.github.com/users/asainz/following{/other_user}","gists_url":"https://api.github.com/users/asainz/gists{/gist_id}","starred_url":"https://api.github.com/users/asainz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asainz/subscriptions","organizations_url":"https://api.github.com/users/asainz/orgs","repos_url":"https://api.github.com/users/asainz/repos","events_url":"https://api.github.com/users/asainz/events{/privacy}","received_events_url":"https://api.github.com/users/asainz/received_events","type":"User","site_admin":false},"body":"I think adding a `:after` and `:before` will be useful","created_at":"2015-06-08T19:19:25Z","updated_at":"2015-06-08T19:19:25Z","html_url":"https://github.com/asainz/css-training/pull/20#discussion_r31949154","pull_request_url":"https://api.github.com/repos/asainz/css-training/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/asainz/css-training/pulls/comments/31949154"},"html":{"href":"https://github.com/asainz/css-training/pull/20#discussion_r31949154"},"pull_request":{"href":"https://api.github.com/repos/asainz/css-training/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/asainz/css-training/pulls/20","id":37178570,"html_url":"https://github.com/asainz/css-training/pull/20","diff_url":"https://github.com/asainz/css-training/pull/20.diff","patch_url":"https://github.com/asainz/css-training/pull/20.patch","issue_url":"https://api.github.com/repos/asainz/css-training/issues/20","number":20,"state":"open","locked":false,"title":"Issue #16 pseudo classes documentation","user":{"login":"souichi6666","id":3585317,"avatar_url":"https://avatars.githubusercontent.com/u/3585317?v=3","gravatar_id":"","url":"https://api.github.com/users/souichi6666","html_url":"https://github.com/souichi6666","followers_url":"https://api.github.com/users/souichi6666/followers","following_url":"https://api.github.com/users/souichi6666/following{/other_user}","gists_url":"https://api.github.com/users/souichi6666/gists{/gist_id}","starred_url":"https://api.github.com/users/souichi6666/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/souichi6666/subscriptions","organizations_url":"https://api.github.com/users/souichi6666/orgs","repos_url":"https://api.github.com/users/souichi6666/repos","events_url":"https://api.github.com/users/souichi6666/events{/privacy}","received_events_url":"https://api.github.com/users/souichi6666/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-08T17:50:45Z","updated_at":"2015-06-08T19:19:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"389458baff0822da60d315442642259d47c4f851","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/asainz/css-training/pulls/20/commits","review_comments_url":"https://api.github.com/repos/asainz/css-training/pulls/20/comments","review_comment_url":"https://api.github.com/repos/asainz/css-training/pulls/comments{/number}","comments_url":"https://api.github.com/repos/asainz/css-training/issues/20/comments","statuses_url":"https://api.github.com/repos/asainz/css-training/statuses/b75757aad6998e145e9f1111b6f64dd8e6eca4f9","head":{"label":"souichi6666:master","ref":"master","sha":"b75757aad6998e145e9f1111b6f64dd8e6eca4f9","user":{"login":"souichi6666","id":3585317,"avatar_url":"https://avatars.githubusercontent.com/u/3585317?v=3","gravatar_id":"","url":"https://api.github.com/users/souichi6666","html_url":"https://github.com/souichi6666","followers_url":"https://api.github.com/users/souichi6666/followers","following_url":"https://api.github.com/users/souichi6666/following{/other_user}","gists_url":"https://api.github.com/users/souichi6666/gists{/gist_id}","starred_url":"https://api.github.com/users/souichi6666/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/souichi6666/subscriptions","organizations_url":"https://api.github.com/users/souichi6666/orgs","repos_url":"https://api.github.com/users/souichi6666/repos","events_url":"https://api.github.com/users/souichi6666/events{/privacy}","received_events_url":"https://api.github.com/users/souichi6666/received_events","type":"User","site_admin":false},"repo":{"id":37074839,"name":"css-training","full_name":"souichi6666/css-training","owner":{"login":"souichi6666","id":3585317,"avatar_url":"https://avatars.githubusercontent.com/u/3585317?v=3","gravatar_id":"","url":"https://api.github.com/users/souichi6666","html_url":"https://github.com/souichi6666","followers_url":"https://api.github.com/users/souichi6666/followers","following_url":"https://api.github.com/users/souichi6666/following{/other_user}","gists_url":"https://api.github.com/users/souichi6666/gists{/gist_id}","starred_url":"https://api.github.com/users/souichi6666/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/souichi6666/subscriptions","organizations_url":"https://api.github.com/users/souichi6666/orgs","repos_url":"https://api.github.com/users/souichi6666/repos","events_url":"https://api.github.com/users/souichi6666/events{/privacy}","received_events_url":"https://api.github.com/users/souichi6666/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/souichi6666/css-training","description":"CSS examples, documentation and videos.","fork":true,"url":"https://api.github.com/repos/souichi6666/css-training","forks_url":"https://api.github.com/repos/souichi6666/css-training/forks","keys_url":"https://api.github.com/repos/souichi6666/css-training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/souichi6666/css-training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/souichi6666/css-training/teams","hooks_url":"https://api.github.com/repos/souichi6666/css-training/hooks","issue_events_url":"https://api.github.com/repos/souichi6666/css-training/issues/events{/number}","events_url":"https://api.github.com/repos/souichi6666/css-training/events","assignees_url":"https://api.github.com/repos/souichi6666/css-training/assignees{/user}","branches_url":"https://api.github.com/repos/souichi6666/css-training/branches{/branch}","tags_url":"https://api.github.com/repos/souichi6666/css-training/tags","blobs_url":"https://api.github.com/repos/souichi6666/css-training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/souichi6666/css-training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/souichi6666/css-training/git/refs{/sha}","trees_url":"https://api.github.com/repos/souichi6666/css-training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/souichi6666/css-training/statuses/{sha}","languages_url":"https://api.github.com/repos/souichi6666/css-training/languages","stargazers_url":"https://api.github.com/repos/souichi6666/css-training/stargazers","contributors_url":"https://api.github.com/repos/souichi6666/css-training/contributors","subscribers_url":"https://api.github.com/repos/souichi6666/css-training/subscribers","subscription_url":"https://api.github.com/repos/souichi6666/css-training/subscription","commits_url":"https://api.github.com/repos/souichi6666/css-training/commits{/sha}","git_commits_url":"https://api.github.com/repos/souichi6666/css-training/git/commits{/sha}","comments_url":"https://api.github.com/repos/souichi6666/css-training/comments{/number}","issue_comment_url":"https://api.github.com/repos/souichi6666/css-training/issues/comments{/number}","contents_url":"https://api.github.com/repos/souichi6666/css-training/contents/{+path}","compare_url":"https://api.github.com/repos/souichi6666/css-training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/souichi6666/css-training/merges","archive_url":"https://api.github.com/repos/souichi6666/css-training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/souichi6666/css-training/downloads","issues_url":"https://api.github.com/repos/souichi6666/css-training/issues{/number}","pulls_url":"https://api.github.com/repos/souichi6666/css-training/pulls{/number}","milestones_url":"https://api.github.com/repos/souichi6666/css-training/milestones{/number}","notifications_url":"https://api.github.com/repos/souichi6666/css-training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/souichi6666/css-training/labels{/name}","releases_url":"https://api.github.com/repos/souichi6666/css-training/releases{/id}","created_at":"2015-06-08T15:18:16Z","updated_at":"2015-06-05T16:04:32Z","pushed_at":"2015-06-08T17:49:05Z","git_url":"git://github.com/souichi6666/css-training.git","ssh_url":"git@github.com:souichi6666/css-training.git","clone_url":"https://github.com/souichi6666/css-training.git","svn_url":"https://github.com/souichi6666/css-training","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"asainz:master","ref":"master","sha":"4281d009b78307f09d50a4aaa3d55bbfc9572cf8","user":{"login":"asainz","id":1131604,"avatar_url":"https://avatars.githubusercontent.com/u/1131604?v=3","gravatar_id":"","url":"https://api.github.com/users/asainz","html_url":"https://github.com/asainz","followers_url":"https://api.github.com/users/asainz/followers","following_url":"https://api.github.com/users/asainz/following{/other_user}","gists_url":"https://api.github.com/users/asainz/gists{/gist_id}","starred_url":"https://api.github.com/users/asainz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asainz/subscriptions","organizations_url":"https://api.github.com/users/asainz/orgs","repos_url":"https://api.github.com/users/asainz/repos","events_url":"https://api.github.com/users/asainz/events{/privacy}","received_events_url":"https://api.github.com/users/asainz/received_events","type":"User","site_admin":false},"repo":{"id":36941903,"name":"css-training","full_name":"asainz/css-training","owner":{"login":"asainz","id":1131604,"avatar_url":"https://avatars.githubusercontent.com/u/1131604?v=3","gravatar_id":"","url":"https://api.github.com/users/asainz","html_url":"https://github.com/asainz","followers_url":"https://api.github.com/users/asainz/followers","following_url":"https://api.github.com/users/asainz/following{/other_user}","gists_url":"https://api.github.com/users/asainz/gists{/gist_id}","starred_url":"https://api.github.com/users/asainz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asainz/subscriptions","organizations_url":"https://api.github.com/users/asainz/orgs","repos_url":"https://api.github.com/users/asainz/repos","events_url":"https://api.github.com/users/asainz/events{/privacy}","received_events_url":"https://api.github.com/users/asainz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/asainz/css-training","description":"CSS examples, documentation and videos.","fork":false,"url":"https://api.github.com/repos/asainz/css-training","forks_url":"https://api.github.com/repos/asainz/css-training/forks","keys_url":"https://api.github.com/repos/asainz/css-training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/asainz/css-training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/asainz/css-training/teams","hooks_url":"https://api.github.com/repos/asainz/css-training/hooks","issue_events_url":"https://api.github.com/repos/asainz/css-training/issues/events{/number}","events_url":"https://api.github.com/repos/asainz/css-training/events","assignees_url":"https://api.github.com/repos/asainz/css-training/assignees{/user}","branches_url":"https://api.github.com/repos/asainz/css-training/branches{/branch}","tags_url":"https://api.github.com/repos/asainz/css-training/tags","blobs_url":"https://api.github.com/repos/asainz/css-training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/asainz/css-training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/asainz/css-training/git/refs{/sha}","trees_url":"https://api.github.com/repos/asainz/css-training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/asainz/css-training/statuses/{sha}","languages_url":"https://api.github.com/repos/asainz/css-training/languages","stargazers_url":"https://api.github.com/repos/asainz/css-training/stargazers","contributors_url":"https://api.github.com/repos/asainz/css-training/contributors","subscribers_url":"https://api.github.com/repos/asainz/css-training/subscribers","subscription_url":"https://api.github.com/repos/asainz/css-training/subscription","commits_url":"https://api.github.com/repos/asainz/css-training/commits{/sha}","git_commits_url":"https://api.github.com/repos/asainz/css-training/git/commits{/sha}","comments_url":"https://api.github.com/repos/asainz/css-training/comments{/number}","issue_comment_url":"https://api.github.com/repos/asainz/css-training/issues/comments{/number}","contents_url":"https://api.github.com/repos/asainz/css-training/contents/{+path}","compare_url":"https://api.github.com/repos/asainz/css-training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/asainz/css-training/merges","archive_url":"https://api.github.com/repos/asainz/css-training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/asainz/css-training/downloads","issues_url":"https://api.github.com/repos/asainz/css-training/issues{/number}","pulls_url":"https://api.github.com/repos/asainz/css-training/pulls{/number}","milestones_url":"https://api.github.com/repos/asainz/css-training/milestones{/number}","notifications_url":"https://api.github.com/repos/asainz/css-training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/asainz/css-training/labels{/name}","releases_url":"https://api.github.com/repos/asainz/css-training/releases{/id}","created_at":"2015-06-05T16:04:32Z","updated_at":"2015-06-05T16:04:32Z","pushed_at":"2015-06-08T17:50:46Z","git_url":"git://github.com/asainz/css-training.git","ssh_url":"git@github.com:asainz/css-training.git","clone_url":"https://github.com/asainz/css-training.git","svn_url":"https://github.com/asainz/css-training","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":17,"forks":2,"open_issues":17,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/asainz/css-training/pulls/20"},"html":{"href":"https://github.com/asainz/css-training/pull/20"},"issue":{"href":"https://api.github.com/repos/asainz/css-training/issues/20"},"comments":{"href":"https://api.github.com/repos/asainz/css-training/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/asainz/css-training/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/asainz/css-training/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/asainz/css-training/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/asainz/css-training/statuses/b75757aad6998e145e9f1111b6f64dd8e6eca4f9"}}}}