{"action":"created","issue":{"url":"https://api.github.com/repos/WordPress/gutenberg/issues/9008","repository_url":"https://api.github.com/repos/WordPress/gutenberg","labels_url":"https://api.github.com/repos/WordPress/gutenberg/issues/9008/labels{/name}","comments_url":"https://api.github.com/repos/WordPress/gutenberg/issues/9008/comments","events_url":"https://api.github.com/repos/WordPress/gutenberg/issues/9008/events","html_url":"https://github.com/WordPress/gutenberg/pull/9008","id":350735351,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4NTA3ODUz","number":9008,"title":"Styles: add Editor Styles support","user":{"login":"youknowriad","id":272444,"node_id":"MDQ6VXNlcjI3MjQ0NA==","avatar_url":"https://avatars3.githubusercontent.com/u/272444?v=4","gravatar_id":"","url":"https://api.github.com/users/youknowriad","html_url":"https://github.com/youknowriad","followers_url":"https://api.github.com/users/youknowriad/followers","following_url":"https://api.github.com/users/youknowriad/following{/other_user}","gists_url":"https://api.github.com/users/youknowriad/gists{/gist_id}","starred_url":"https://api.github.com/users/youknowriad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youknowriad/subscriptions","organizations_url":"https://api.github.com/users/youknowriad/orgs","repos_url":"https://api.github.com/users/youknowriad/repos","events_url":"https://api.github.com/users/youknowriad/events{/privacy}","received_events_url":"https://api.github.com/users/youknowriad/received_events","type":"User","site_admin":false},"labels":[{"id":587918873,"node_id":"MDU6TGFiZWw1ODc5MTg4NzM=","url":"https://api.github.com/repos/WordPress/gutenberg/labels/Customization","name":"Customization","color":"655104","default":false},{"id":631490822,"node_id":"MDU6TGFiZWw2MzE0OTA4MjI=","url":"https://api.github.com/repos/WordPress/gutenberg/labels/Extensibility","name":"Extensibility","color":"655104","default":false},{"id":531680824,"node_id":"MDU6TGFiZWw1MzE2ODA4MjQ=","url":"https://api.github.com/repos/WordPress/gutenberg/labels/[Type]%20Task","name":"[Type] Task","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":{"login":"youknowriad","id":272444,"node_id":"MDQ6VXNlcjI3MjQ0NA==","avatar_url":"https://avatars3.githubusercontent.com/u/272444?v=4","gravatar_id":"","url":"https://api.github.com/users/youknowriad","html_url":"https://github.com/youknowriad","followers_url":"https://api.github.com/users/youknowriad/followers","following_url":"https://api.github.com/users/youknowriad/following{/other_user}","gists_url":"https://api.github.com/users/youknowriad/gists{/gist_id}","starred_url":"https://api.github.com/users/youknowriad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youknowriad/subscriptions","organizations_url":"https://api.github.com/users/youknowriad/orgs","repos_url":"https://api.github.com/users/youknowriad/repos","events_url":"https://api.github.com/users/youknowriad/events{/privacy}","received_events_url":"https://api.github.com/users/youknowriad/received_events","type":"User","site_admin":false},"assignees":[{"login":"youknowriad","id":272444,"node_id":"MDQ6VXNlcjI3MjQ0NA==","avatar_url":"https://avatars3.githubusercontent.com/u/272444?v=4","gravatar_id":"","url":"https://api.github.com/users/youknowriad","html_url":"https://github.com/youknowriad","followers_url":"https://api.github.com/users/youknowriad/followers","following_url":"https://api.github.com/users/youknowriad/following{/other_user}","gists_url":"https://api.github.com/users/youknowriad/gists{/gist_id}","starred_url":"https://api.github.com/users/youknowriad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youknowriad/subscriptions","organizations_url":"https://api.github.com/users/youknowriad/orgs","repos_url":"https://api.github.com/users/youknowriad/repos","events_url":"https://api.github.com/users/youknowriad/events{/privacy}","received_events_url":"https://api.github.com/users/youknowriad/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/WordPress/gutenberg/milestones/63","html_url":"https://github.com/WordPress/gutenberg/milestone/63","labels_url":"https://api.github.com/repos/WordPress/gutenberg/milestones/63/labels","id":3584407,"node_id":"MDk6TWlsZXN0b25lMzU4NDQwNw==","number":63,"title":"3.8","description":"","creator":{"login":"mtias","id":548849,"node_id":"MDQ6VXNlcjU0ODg0OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/548849?v=4","gravatar_id":"","url":"https://api.github.com/users/mtias","html_url":"https://github.com/mtias","followers_url":"https://api.github.com/users/mtias/followers","following_url":"https://api.github.com/users/mtias/following{/other_user}","gists_url":"https://api.github.com/users/mtias/gists{/gist_id}","starred_url":"https://api.github.com/users/mtias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtias/subscriptions","organizations_url":"https://api.github.com/users/mtias/orgs","repos_url":"https://api.github.com/users/mtias/repos","events_url":"https://api.github.com/users/mtias/events{/privacy}","received_events_url":"https://api.github.com/users/mtias/received_events","type":"User","site_admin":false},"open_issues":40,"closed_issues":15,"state":"open","created_at":"2018-08-20T17:39:34Z","updated_at":"2018-09-04T10:52:06Z","due_on":"2018-09-06T07:00:00Z","closed_at":null},"comments":32,"created_at":"2018-08-15T08:57:34Z","updated_at":"2018-09-04T12:58:25Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/WordPress/gutenberg/pulls/9008","html_url":"https://github.com/WordPress/gutenberg/pull/9008","diff_url":"https://github.com/WordPress/gutenberg/pull/9008.diff","patch_url":"https://github.com/WordPress/gutenberg/pull/9008.patch"},"body":"Extending the editor styles is not an easy task for theme developers. They have to take care of all the specifity that Gutenberg styles use. And it's prone to errors because Gutenberg can change the wrappers at any time.\r\n\r\nIn this PR I'm exploring auto-injecting namespaces (specifity) for theme CSS to avoid leaving that to the theme developpers.\r\n\r\nA theme author would write:\r\n\r\n```css\r\nh2 { color: red; }\r\n```\r\n\r\nThe injected CSS would be\r\n\r\n```css\r\n.editor-block-list__block h2 { color: red; }\r\n```\r\n\r\nTo test it, notice that the editor styles do work for the Twenty Seventeen theme."},"comment":{"url":"https://api.github.com/repos/WordPress/gutenberg/issues/comments/418356937","html_url":"https://github.com/WordPress/gutenberg/pull/9008#issuecomment-418356937","issue_url":"https://api.github.com/repos/WordPress/gutenberg/issues/9008","id":418356937,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODM1NjkzNw==","user":{"login":"youknowriad","id":272444,"node_id":"MDQ6VXNlcjI3MjQ0NA==","avatar_url":"https://avatars3.githubusercontent.com/u/272444?v=4","gravatar_id":"","url":"https://api.github.com/users/youknowriad","html_url":"https://github.com/youknowriad","followers_url":"https://api.github.com/users/youknowriad/followers","following_url":"https://api.github.com/users/youknowriad/following{/other_user}","gists_url":"https://api.github.com/users/youknowriad/gists{/gist_id}","starred_url":"https://api.github.com/users/youknowriad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youknowriad/subscriptions","organizations_url":"https://api.github.com/users/youknowriad/orgs","repos_url":"https://api.github.com/users/youknowriad/repos","events_url":"https://api.github.com/users/youknowriad/events{/privacy}","received_events_url":"https://api.github.com/users/youknowriad/received_events","type":"User","site_admin":false},"created_at":"2018-09-04T12:58:25Z","updated_at":"2018-09-04T12:58:25Z","author_association":"CONTRIBUTOR","body":"I rebased and added support for tweaking the editor width. So right now you can do:\r\n\r\n```css\r\nhtml {\r\n   width: 800px;\r\n}\r\n```\r\n\r\nAnd this will update the content area width properly. "}}
{"actor":{"display_login":"youknowriad"}}