{"action":"opened","issue":{"url":"https://api.github.com/repos/LeeJim/qiuliijun.com/issues/7","repository_url":"https://api.github.com/repos/LeeJim/qiuliijun.com","labels_url":"https://api.github.com/repos/LeeJim/qiuliijun.com/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/LeeJim/qiuliijun.com/issues/7/comments","events_url":"https://api.github.com/repos/LeeJim/qiuliijun.com/issues/7/events","html_url":"https://github.com/LeeJim/qiuliijun.com/issues/7","id":166476404,"number":7,"title":"LESS","user":{"login":"LeeJim","id":7017290,"avatar_url":"https://avatars.githubusercontent.com/u/7017290?v=3","gravatar_id":"","url":"https://api.github.com/users/LeeJim","html_url":"https://github.com/LeeJim","followers_url":"https://api.github.com/users/LeeJim/followers","following_url":"https://api.github.com/users/LeeJim/following{/other_user}","gists_url":"https://api.github.com/users/LeeJim/gists{/gist_id}","starred_url":"https://api.github.com/users/LeeJim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeeJim/subscriptions","organizations_url":"https://api.github.com/users/LeeJim/orgs","repos_url":"https://api.github.com/users/LeeJim/repos","events_url":"https://api.github.com/users/LeeJim/events{/privacy}","received_events_url":"https://api.github.com/users/LeeJim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-20T01:42:46Z","updated_at":"2016-07-20T01:42:46Z","closed_at":null,"body":"## 变量\r\n```less\r\n@link-color:        #428bca; // sea blue\r\n@link-color-hover:  darken(@link-color, 10%);\r\n```\r\n### 变量插入\r\n变量还可以放在其他地方使用，例如选择器，属性，URLs和@import声明\r\n\r\n#### 选择器\r\n```less\r\n// Variables\r\n@my-selector: banner;\r\n\r\n// Usage\r\n.@{my-selector} {\r\n  margin: 0 auto;\r\n}\r\n```\r\n\r\n#### 属性\r\n```less\r\n@property: color;\r\n\r\n.widget {\r\n  @{property}: #0ee;\r\n  background-@{property}: #999;\r\n}\r\n```\r\n\r\n#### URLs\r\n```less\r\n// Variables\r\n@images: \"../img\";\r\n\r\n// Usage\r\nbody {\r\n  background: url(\"@{images}/white-sand.png\");\r\n}\r\n```\r\n\r\n#### @import\r\n```less\r\n// Variables\r\n@themes: \"../../src/themes\";\r\n\r\n// Usage\r\n@import \"@{themes}/tidal-wave.less\";\r\n```\r\n\r\n### 变量名声明变量\r\n```less\r\n@fnord:  \"I am fnord.\";\r\n@var:    \"fnord\";\r\ncontent: @@var; //\"I am fnord.\"\r\n```"}}
{"actor":{"display_login":"LeeJim"}}