{"action":"closed","issue":{"url":"https://api.github.com/repos/cycold/cycold.github.io/issues/4","repository_url":"https://api.github.com/repos/cycold/cycold.github.io","labels_url":"https://api.github.com/repos/cycold/cycold.github.io/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/cycold/cycold.github.io/issues/4/comments","events_url":"https://api.github.com/repos/cycold/cycold.github.io/issues/4/events","html_url":"https://github.com/cycold/cycold.github.io/issues/4","id":48890048,"number":4,"title":"stylus参考笔记","user":{"login":"cycold","id":2446601,"avatar_url":"https://avatars.githubusercontent.com/u/2446601?v=3","gravatar_id":"","url":"https://api.github.com/users/cycold","html_url":"https://github.com/cycold","followers_url":"https://api.github.com/users/cycold/followers","following_url":"https://api.github.com/users/cycold/following{/other_user}","gists_url":"https://api.github.com/users/cycold/gists{/gist_id}","starred_url":"https://api.github.com/users/cycold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cycold/subscriptions","organizations_url":"https://api.github.com/users/cycold/orgs","repos_url":"https://api.github.com/users/cycold/repos","events_url":"https://api.github.com/users/cycold/events{/privacy}","received_events_url":"https://api.github.com/users/cycold/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cycold/cycold.github.io/labels/stylus","name":"stylus","color":"B986CA"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2014-11-15T09:15:45Z","updated_at":"2016-08-16T07:48:56Z","closed_at":"2016-08-16T07:48:56Z","body":"stylus是一个基于nodejs的下的css预处理.[官网](http://learnboost.github.io/stylus/)\r\n中文手册可见[张鑫旭--stylus中文版参考文档](http://www.zhangxinxu.com/jq/stylus/)\r\n\r\n>\r\n关于css预处理,sass算是使用的比较熟练了,现在我写css已经离不开sass.项目中已经开始有使用sass.\r\n但是sass需要安装ruby环境.而目前前端工具很多都是基于node上的;基于nodejs一条龙的项目工具开发链,一直是我想要实现的.所以...\r\n\r\n特征:\r\n\r\n>花括号`{}` 冒号`:` 分号`;` 逗号`,` 都是可选的\r\n\r\n官网示例\r\n```stylus\r\nborder-radius()\r\n  -webkit-border-radius arguments;\r\n  -moz-border-radius arguments;\r\n  border-radius arguments;\r\n  \r\nbody\r\n  font 12px Helvetica, Arial, sans-serif;\r\n  \r\na.button\r\n  border-radius 5px;\r\n```\r\n\r\n在命令行中使用stylus的插件,比如`nib`,需要使用`--use`参数告知插件模块位置\r\n`stylus <test.stylus> test.css --use ./node_modules/nib/lib/nib`\r\n\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"cycold"}}