{"action":"closed","issue":{"url":"https://api.github.com/repos/haoxins/mylog/issues/46","labels_url":"https://api.github.com/repos/haoxins/mylog/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/haoxins/mylog/issues/46/comments","events_url":"https://api.github.com/repos/haoxins/mylog/issues/46/events","html_url":"https://github.com/haoxins/mylog/issues/46","id":71503343,"number":46,"title":"[scss] - mixin vs extend vs placeholder","user":{"login":"coderhaoxin","id":2569835,"avatar_url":"https://avatars.githubusercontent.com/u/2569835?v=3","gravatar_id":"","url":"https://api.github.com/users/coderhaoxin","html_url":"https://github.com/coderhaoxin","followers_url":"https://api.github.com/users/coderhaoxin/followers","following_url":"https://api.github.com/users/coderhaoxin/following{/other_user}","gists_url":"https://api.github.com/users/coderhaoxin/gists{/gist_id}","starred_url":"https://api.github.com/users/coderhaoxin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderhaoxin/subscriptions","organizations_url":"https://api.github.com/users/coderhaoxin/orgs","repos_url":"https://api.github.com/users/coderhaoxin/repos","events_url":"https://api.github.com/users/coderhaoxin/events{/privacy}","received_events_url":"https://api.github.com/users/coderhaoxin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/haoxins/mylog/labels/blog","name":"blog","color":"0052cc"},{"url":"https://api.github.com/repos/haoxins/mylog/labels/note","name":"note","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-28T06:53:50Z","updated_at":"2015-06-25T02:34:53Z","closed_at":"2015-06-25T02:34:53Z","body":"### @extend\r\n\r\n```scss\r\n.one {\r\n  ...;\r\n}\r\n\r\n.one-more {\r\n  @extend .one;\r\n  ...;\r\n}\r\n```\r\n\r\n* 生成的 css 将同时存在 .one, .one-more;\r\n* 如果此时 .one 不需要直接使用呢?\r\n\r\n### placeholder\r\n\r\n```scss\r\n%one {\r\n  ...;\r\n}\r\n\r\n.one-more {\r\n  @extend %one;\r\n  ...;\r\n}\r\n```\r\n"}}