{"action":"created","issue":{"url":"https://api.github.com/repos/sass/sass/issues/1877","labels_url":"https://api.github.com/repos/sass/sass/issues/1877/labels{/name}","comments_url":"https://api.github.com/repos/sass/sass/issues/1877/comments","events_url":"https://api.github.com/repos/sass/sass/issues/1877/events","html_url":"https://github.com/sass/sass/issues/1877","id":114293777,"number":1877,"title":"@extend in @at-root adds unwanted namespace","user":{"login":"bpaugam","id":10196812,"avatar_url":"https://avatars.githubusercontent.com/u/10196812?v=3","gravatar_id":"","url":"https://api.github.com/users/bpaugam","html_url":"https://github.com/bpaugam","followers_url":"https://api.github.com/users/bpaugam/followers","following_url":"https://api.github.com/users/bpaugam/following{/other_user}","gists_url":"https://api.github.com/users/bpaugam/gists{/gist_id}","starred_url":"https://api.github.com/users/bpaugam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bpaugam/subscriptions","organizations_url":"https://api.github.com/users/bpaugam/orgs","repos_url":"https://api.github.com/users/bpaugam/repos","events_url":"https://api.github.com/users/bpaugam/events{/privacy}","received_events_url":"https://api.github.com/users/bpaugam/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-30T15:36:29Z","updated_at":"2015-10-30T20:57:59Z","closed_at":"2015-10-30T17:16:32Z","body":"Hello !\r\n\r\nI encounter a problem: why is this\r\n\r\n```scss\r\n#myApp {\r\n  %raised {\r\n    box-shadow: 1px 1px 5px grey;\r\n  }\r\n  \r\n  @at-root {\r\n    .button {\r\n      background: green;\r\n      @extend %raised;\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nTranspiled into this:\r\n```scss\r\n#myApp .button {\r\n  box-shadow: 1px 1px 5px grey;\r\n}\r\n\r\n.button {\r\n  background: green;\r\n}\r\n```\r\n\r\nI mean, why does Sass add the #myApp selector when extending ? Or rather, is there any way I can get this result: \r\n\r\n```scss\r\n.button {\r\n  background: green;\r\n  box-shadow: 1px 1px 5px grey;\r\n}\r\n```\r\n\r\nThanks alot!"},"comment":{"url":"https://api.github.com/repos/sass/sass/issues/comments/152649581","html_url":"https://github.com/sass/sass/issues/1877#issuecomment-152649581","issue_url":"https://api.github.com/repos/sass/sass/issues/1877","id":152649581,"user":{"login":"bpaugam","id":10196812,"avatar_url":"https://avatars.githubusercontent.com/u/10196812?v=3","gravatar_id":"","url":"https://api.github.com/users/bpaugam","html_url":"https://github.com/bpaugam","followers_url":"https://api.github.com/users/bpaugam/followers","following_url":"https://api.github.com/users/bpaugam/following{/other_user}","gists_url":"https://api.github.com/users/bpaugam/gists{/gist_id}","starred_url":"https://api.github.com/users/bpaugam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bpaugam/subscriptions","organizations_url":"https://api.github.com/users/bpaugam/orgs","repos_url":"https://api.github.com/users/bpaugam/repos","events_url":"https://api.github.com/users/bpaugam/events{/privacy}","received_events_url":"https://api.github.com/users/bpaugam/received_events","type":"User","site_admin":false},"created_at":"2015-10-30T20:57:59Z","updated_at":"2015-10-30T20:57:59Z","body":"Brilliant !\r\n\r\nBased on your input, I came up with something like this (for the record):\r\n\r\nhttps://gist.github.com/bpaugam/4b24535c9ae7375cce3e\r\n\r\nThanks, mate, this has been bothering me for a while now!"}}