Skip to content

Commit

Permalink
add styl & fix npm
Browse files Browse the repository at this point in the history
  • Loading branch information
imochen committed Jul 4, 2016
1 parent 03fc2b1 commit f35a51e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
src/
example/
.gitignore
bower.json
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "hotcss",
"version": "2.1.0",
"version": "2.2.1",
"description": "Make Mobile Development Layout More Easy.",
"main": "hotcss.js",
"main": "src/hotcss.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand Down
2 changes: 1 addition & 1 deletion src/px2rem.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.function{
.px2rem( @px ){
.px2rem(@px){
return : unit(@px*320/@designWidth/20 , rem);
}
}
2 changes: 1 addition & 1 deletion src/px2rem.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@function px2rem( $px ){
@function px2rem($px){
@return $px*320/$designWidth/20 + rem;
}
2 changes: 2 additions & 0 deletions src/px2rem.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
px2rem(px)
return unit(px * 320 / designWidth / 20, 'rem')

0 comments on commit f35a51e

Please sign in to comment.