{"action":"created","comment":{"url":"https://api.github.com/repos/vhl/css-style-guide/pulls/comments/80540127","id":80540127,"diff_hunk":"@@ -404,9 +416,27 @@ button, input.c-button {\n }\n ```\n \n-IMPORTANT: **Never use id's in  selectors**. They have very high specificity compared to classes, and can't be used more than once on the same page.\n+<a name=\"keep-specificity-low\"></a>\n+#### Keep specificity low.\n+\n+* Type selectors (addressing elements by their tag name) should be defined early in the cascade and then never used again unless absolutely necessary.\n+\n+* Selectors consisting of a single class should make up the majority of your CSS. A second class should generally only be added for states. \n+\n+* **NEVER use id's in selectors**. They have very high specificity compared to classes, and can't be used more than once on the same page.\n+\n+* For the same reason, **NEVER use inline styles**. They are near-impossible to override without resorting to JavaScript.\n+\n+* It should go without saying, **don't use `!important`** except in rare cases.","path":"README.md","position":82,"original_position":82,"commit_id":"80e549536270c5f5bb0e791eeb9a61f17350ba4c","original_commit_id":"80e549536270c5f5bb0e791eeb9a61f17350ba4c","user":{"login":"mhairston","id":782046,"avatar_url":"https://avatars.githubusercontent.com/u/782046?v=3","gravatar_id":"","url":"https://api.github.com/users/mhairston","html_url":"https://github.com/mhairston","followers_url":"https://api.github.com/users/mhairston/followers","following_url":"https://api.github.com/users/mhairston/following{/other_user}","gists_url":"https://api.github.com/users/mhairston/gists{/gist_id}","starred_url":"https://api.github.com/users/mhairston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhairston/subscriptions","organizations_url":"https://api.github.com/users/mhairston/orgs","repos_url":"https://api.github.com/users/mhairston/repos","events_url":"https://api.github.com/users/mhairston/events{/privacy}","received_events_url":"https://api.github.com/users/mhairston/received_events","type":"User","site_admin":false},"body":"I'll add them.","created_at":"2016-09-26T18:25:04Z","updated_at":"2016-09-26T18:25:04Z","html_url":"https://github.com/vhl/css-style-guide/pull/9#discussion_r80540127","pull_request_url":"https://api.github.com/repos/vhl/css-style-guide/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/vhl/css-style-guide/pulls/comments/80540127"},"html":{"href":"https://github.com/vhl/css-style-guide/pull/9#discussion_r80540127"},"pull_request":{"href":"https://api.github.com/repos/vhl/css-style-guide/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/vhl/css-style-guide/pulls/9","id":86757043,"html_url":"https://github.com/vhl/css-style-guide/pull/9","diff_url":"https://github.com/vhl/css-style-guide/pull/9.diff","patch_url":"https://github.com/vhl/css-style-guide/pull/9.patch","issue_url":"https://api.github.com/repos/vhl/css-style-guide/issues/9","number":9,"state":"open","locked":false,"title":"css-guidelines: Update.","user":{"login":"mhairston","id":782046,"avatar_url":"https://avatars.githubusercontent.com/u/782046?v=3","gravatar_id":"","url":"https://api.github.com/users/mhairston","html_url":"https://github.com/mhairston","followers_url":"https://api.github.com/users/mhairston/followers","following_url":"https://api.github.com/users/mhairston/following{/other_user}","gists_url":"https://api.github.com/users/mhairston/gists{/gist_id}","starred_url":"https://api.github.com/users/mhairston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhairston/subscriptions","organizations_url":"https://api.github.com/users/mhairston/orgs","repos_url":"https://api.github.com/users/mhairston/repos","events_url":"https://api.github.com/users/mhairston/events{/privacy}","received_events_url":"https://api.github.com/users/mhairston/received_events","type":"User","site_admin":false},"body":"css-guidelines: Update.\r\n\r\n* Remove section on objects.\r\n* Replace -o classes with -c classes.\r\n* Single quotes on urls instead of double.\r\n* Add detail re: depth of applicability and specificity.","created_at":"2016-09-26T14:48:37Z","updated_at":"2016-09-26T18:25:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2961f05a98953bf1f2d23cc20ea6892f9c1220be","assignee":{"login":"hurtstotouchfire","id":1400344,"avatar_url":"https://avatars.githubusercontent.com/u/1400344?v=3","gravatar_id":"","url":"https://api.github.com/users/hurtstotouchfire","html_url":"https://github.com/hurtstotouchfire","followers_url":"https://api.github.com/users/hurtstotouchfire/followers","following_url":"https://api.github.com/users/hurtstotouchfire/following{/other_user}","gists_url":"https://api.github.com/users/hurtstotouchfire/gists{/gist_id}","starred_url":"https://api.github.com/users/hurtstotouchfire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hurtstotouchfire/subscriptions","organizations_url":"https://api.github.com/users/hurtstotouchfire/orgs","repos_url":"https://api.github.com/users/hurtstotouchfire/repos","events_url":"https://api.github.com/users/hurtstotouchfire/events{/privacy}","received_events_url":"https://api.github.com/users/hurtstotouchfire/received_events","type":"User","site_admin":false},"assignees":[{"login":"hurtstotouchfire","id":1400344,"avatar_url":"https://avatars.githubusercontent.com/u/1400344?v=3","gravatar_id":"","url":"https://api.github.com/users/hurtstotouchfire","html_url":"https://github.com/hurtstotouchfire","followers_url":"https://api.github.com/users/hurtstotouchfire/followers","following_url":"https://api.github.com/users/hurtstotouchfire/following{/other_user}","gists_url":"https://api.github.com/users/hurtstotouchfire/gists{/gist_id}","starred_url":"https://api.github.com/users/hurtstotouchfire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hurtstotouchfire/subscriptions","organizations_url":"https://api.github.com/users/hurtstotouchfire/orgs","repos_url":"https://api.github.com/users/hurtstotouchfire/repos","events_url":"https://api.github.com/users/hurtstotouchfire/events{/privacy}","received_events_url":"https://api.github.com/users/hurtstotouchfire/received_events","type":"User","site_admin":false},{"login":"eknelson17","id":1696392,"avatar_url":"https://avatars.githubusercontent.com/u/1696392?v=3","gravatar_id":"","url":"https://api.github.com/users/eknelson17","html_url":"https://github.com/eknelson17","followers_url":"https://api.github.com/users/eknelson17/followers","following_url":"https://api.github.com/users/eknelson17/following{/other_user}","gists_url":"https://api.github.com/users/eknelson17/gists{/gist_id}","starred_url":"https://api.github.com/users/eknelson17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eknelson17/subscriptions","organizations_url":"https://api.github.com/users/eknelson17/orgs","repos_url":"https://api.github.com/users/eknelson17/repos","events_url":"https://api.github.com/users/eknelson17/events{/privacy}","received_events_url":"https://api.github.com/users/eknelson17/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/vhl/css-style-guide/pulls/9/commits","review_comments_url":"https://api.github.com/repos/vhl/css-style-guide/pulls/9/comments","review_comment_url":"https://api.github.com/repos/vhl/css-style-guide/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vhl/css-style-guide/issues/9/comments","statuses_url":"https://api.github.com/repos/vhl/css-style-guide/statuses/80e549536270c5f5bb0e791eeb9a61f17350ba4c","head":{"label":"vhl:misc-guideline-updates","ref":"misc-guideline-updates","sha":"80e549536270c5f5bb0e791eeb9a61f17350ba4c","user":{"login":"vhl","id":1626375,"avatar_url":"https://avatars.githubusercontent.com/u/1626375?v=3","gravatar_id":"","url":"https://api.github.com/users/vhl","html_url":"https://github.com/vhl","followers_url":"https://api.github.com/users/vhl/followers","following_url":"https://api.github.com/users/vhl/following{/other_user}","gists_url":"https://api.github.com/users/vhl/gists{/gist_id}","starred_url":"https://api.github.com/users/vhl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vhl/subscriptions","organizations_url":"https://api.github.com/users/vhl/orgs","repos_url":"https://api.github.com/users/vhl/repos","events_url":"https://api.github.com/users/vhl/events{/privacy}","received_events_url":"https://api.github.com/users/vhl/received_events","type":"Organization","site_admin":false},"repo":{"id":37481613,"name":"css-style-guide","full_name":"vhl/css-style-guide","owner":{"login":"vhl","id":1626375,"avatar_url":"https://avatars.githubusercontent.com/u/1626375?v=3","gravatar_id":"","url":"https://api.github.com/users/vhl","html_url":"https://github.com/vhl","followers_url":"https://api.github.com/users/vhl/followers","following_url":"https://api.github.com/users/vhl/following{/other_user}","gists_url":"https://api.github.com/users/vhl/gists{/gist_id}","starred_url":"https://api.github.com/users/vhl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vhl/subscriptions","organizations_url":"https://api.github.com/users/vhl/orgs","repos_url":"https://api.github.com/users/vhl/repos","events_url":"https://api.github.com/users/vhl/events{/privacy}","received_events_url":"https://api.github.com/users/vhl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vhl/css-style-guide","description":"CSS/SASS & HTML Style Guide","fork":true,"url":"https://api.github.com/repos/vhl/css-style-guide","forks_url":"https://api.github.com/repos/vhl/css-style-guide/forks","keys_url":"https://api.github.com/repos/vhl/css-style-guide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vhl/css-style-guide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vhl/css-style-guide/teams","hooks_url":"https://api.github.com/repos/vhl/css-style-guide/hooks","issue_events_url":"https://api.github.com/repos/vhl/css-style-guide/issues/events{/number}","events_url":"https://api.github.com/repos/vhl/css-style-guide/events","assignees_url":"https://api.github.com/repos/vhl/css-style-guide/assignees{/user}","branches_url":"https://api.github.com/repos/vhl/css-style-guide/branches{/branch}","tags_url":"https://api.github.com/repos/vhl/css-style-guide/tags","blobs_url":"https://api.github.com/repos/vhl/css-style-guide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vhl/css-style-guide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vhl/css-style-guide/git/refs{/sha}","trees_url":"https://api.github.com/repos/vhl/css-style-guide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vhl/css-style-guide/statuses/{sha}","languages_url":"https://api.github.com/repos/vhl/css-style-guide/languages","stargazers_url":"https://api.github.com/repos/vhl/css-style-guide/stargazers","contributors_url":"https://api.github.com/repos/vhl/css-style-guide/contributors","subscribers_url":"https://api.github.com/repos/vhl/css-style-guide/subscribers","subscription_url":"https://api.github.com/repos/vhl/css-style-guide/subscription","commits_url":"https://api.github.com/repos/vhl/css-style-guide/commits{/sha}","git_commits_url":"https://api.github.com/repos/vhl/css-style-guide/git/commits{/sha}","comments_url":"https://api.github.com/repos/vhl/css-style-guide/comments{/number}","issue_comment_url":"https://api.github.com/repos/vhl/css-style-guide/issues/comments{/number}","contents_url":"https://api.github.com/repos/vhl/css-style-guide/contents/{+path}","compare_url":"https://api.github.com/repos/vhl/css-style-guide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vhl/css-style-guide/merges","archive_url":"https://api.github.com/repos/vhl/css-style-guide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vhl/css-style-guide/downloads","issues_url":"https://api.github.com/repos/vhl/css-style-guide/issues{/number}","pulls_url":"https://api.github.com/repos/vhl/css-style-guide/pulls{/number}","milestones_url":"https://api.github.com/repos/vhl/css-style-guide/milestones{/number}","notifications_url":"https://api.github.com/repos/vhl/css-style-guide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vhl/css-style-guide/labels{/name}","releases_url":"https://api.github.com/repos/vhl/css-style-guide/releases{/id}","deployments_url":"https://api.github.com/repos/vhl/css-style-guide/deployments","created_at":"2015-06-15T17:58:43Z","updated_at":"2016-09-23T19:22:36Z","pushed_at":"2016-09-26T14:48:37Z","git_url":"git://github.com/vhl/css-style-guide.git","ssh_url":"git@github.com:vhl/css-style-guide.git","clone_url":"https://github.com/vhl/css-style-guide.git","svn_url":"https://github.com/vhl/css-style-guide","homepage":"","size":56,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"vhl:master","ref":"master","sha":"c31197954fff5f97c28231a942e0def2f9e21d12","user":{"login":"vhl","id":1626375,"avatar_url":"https://avatars.githubusercontent.com/u/1626375?v=3","gravatar_id":"","url":"https://api.github.com/users/vhl","html_url":"https://github.com/vhl","followers_url":"https://api.github.com/users/vhl/followers","following_url":"https://api.github.com/users/vhl/following{/other_user}","gists_url":"https://api.github.com/users/vhl/gists{/gist_id}","starred_url":"https://api.github.com/users/vhl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vhl/subscriptions","organizations_url":"https://api.github.com/users/vhl/orgs","repos_url":"https://api.github.com/users/vhl/repos","events_url":"https://api.github.com/users/vhl/events{/privacy}","received_events_url":"https://api.github.com/users/vhl/received_events","type":"Organization","site_admin":false},"repo":{"id":37481613,"name":"css-style-guide","full_name":"vhl/css-style-guide","owner":{"login":"vhl","id":1626375,"avatar_url":"https://avatars.githubusercontent.com/u/1626375?v=3","gravatar_id":"","url":"https://api.github.com/users/vhl","html_url":"https://github.com/vhl","followers_url":"https://api.github.com/users/vhl/followers","following_url":"https://api.github.com/users/vhl/following{/other_user}","gists_url":"https://api.github.com/users/vhl/gists{/gist_id}","starred_url":"https://api.github.com/users/vhl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vhl/subscriptions","organizations_url":"https://api.github.com/users/vhl/orgs","repos_url":"https://api.github.com/users/vhl/repos","events_url":"https://api.github.com/users/vhl/events{/privacy}","received_events_url":"https://api.github.com/users/vhl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vhl/css-style-guide","description":"CSS/SASS & HTML Style Guide","fork":true,"url":"https://api.github.com/repos/vhl/css-style-guide","forks_url":"https://api.github.com/repos/vhl/css-style-guide/forks","keys_url":"https://api.github.com/repos/vhl/css-style-guide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vhl/css-style-guide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vhl/css-style-guide/teams","hooks_url":"https://api.github.com/repos/vhl/css-style-guide/hooks","issue_events_url":"https://api.github.com/repos/vhl/css-style-guide/issues/events{/number}","events_url":"https://api.github.com/repos/vhl/css-style-guide/events","assignees_url":"https://api.github.com/repos/vhl/css-style-guide/assignees{/user}","branches_url":"https://api.github.com/repos/vhl/css-style-guide/branches{/branch}","tags_url":"https://api.github.com/repos/vhl/css-style-guide/tags","blobs_url":"https://api.github.com/repos/vhl/css-style-guide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vhl/css-style-guide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vhl/css-style-guide/git/refs{/sha}","trees_url":"https://api.github.com/repos/vhl/css-style-guide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vhl/css-style-guide/statuses/{sha}","languages_url":"https://api.github.com/repos/vhl/css-style-guide/languages","stargazers_url":"https://api.github.com/repos/vhl/css-style-guide/stargazers","contributors_url":"https://api.github.com/repos/vhl/css-style-guide/contributors","subscribers_url":"https://api.github.com/repos/vhl/css-style-guide/subscribers","subscription_url":"https://api.github.com/repos/vhl/css-style-guide/subscription","commits_url":"https://api.github.com/repos/vhl/css-style-guide/commits{/sha}","git_commits_url":"https://api.github.com/repos/vhl/css-style-guide/git/commits{/sha}","comments_url":"https://api.github.com/repos/vhl/css-style-guide/comments{/number}","issue_comment_url":"https://api.github.com/repos/vhl/css-style-guide/issues/comments{/number}","contents_url":"https://api.github.com/repos/vhl/css-style-guide/contents/{+path}","compare_url":"https://api.github.com/repos/vhl/css-style-guide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vhl/css-style-guide/merges","archive_url":"https://api.github.com/repos/vhl/css-style-guide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vhl/css-style-guide/downloads","issues_url":"https://api.github.com/repos/vhl/css-style-guide/issues{/number}","pulls_url":"https://api.github.com/repos/vhl/css-style-guide/pulls{/number}","milestones_url":"https://api.github.com/repos/vhl/css-style-guide/milestones{/number}","notifications_url":"https://api.github.com/repos/vhl/css-style-guide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vhl/css-style-guide/labels{/name}","releases_url":"https://api.github.com/repos/vhl/css-style-guide/releases{/id}","deployments_url":"https://api.github.com/repos/vhl/css-style-guide/deployments","created_at":"2015-06-15T17:58:43Z","updated_at":"2016-09-23T19:22:36Z","pushed_at":"2016-09-26T14:48:37Z","git_url":"git://github.com/vhl/css-style-guide.git","ssh_url":"git@github.com:vhl/css-style-guide.git","clone_url":"https://github.com/vhl/css-style-guide.git","svn_url":"https://github.com/vhl/css-style-guide","homepage":"","size":56,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vhl/css-style-guide/pulls/9"},"html":{"href":"https://github.com/vhl/css-style-guide/pull/9"},"issue":{"href":"https://api.github.com/repos/vhl/css-style-guide/issues/9"},"comments":{"href":"https://api.github.com/repos/vhl/css-style-guide/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/vhl/css-style-guide/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/vhl/css-style-guide/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vhl/css-style-guide/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/vhl/css-style-guide/statuses/80e549536270c5f5bb0e791eeb9a61f17350ba4c"}}}}
{"actor":{"display_login":"mhairston"}}