Skip to content

Commit

Permalink
添加 border-*, 统一风格(top, right, bottom, left)
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin authored and jaywcjlove committed Dec 24, 2016
1 parent a4e422d commit 9545191
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 14 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
root = true

[*]
indent_style = space
indent_size = 4
tab_width = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
11 changes: 9 additions & 2 deletions lib/stylus-px2rem/border.styl
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@

border()
px2rem('border',arguments)
border-top()
px2rem('border-top',arguments)
border-right()
px2rem('border-right',arguments)
border-bottom()
px2rem('border-bottom',arguments)
border-left()
px2rem('border-left',arguments)
border-radius()
px2rem('border-radius',arguments)
px2rem('border-radius',arguments)
3 changes: 1 addition & 2 deletions lib/stylus-px2rem/font-size.styl
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@

font-size()
px2rem('font-size',arguments)
px2rem('font-size',arguments)
8 changes: 4 additions & 4 deletions lib/stylus-px2rem/margin.styl
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
margin()
px2rem('margin',arguments)
margin-bottom()
px2rem('margin-bottom',arguments)
margin-top()
px2rem('margin-top',arguments)
margin-right()
px2rem('margin-right',arguments)
margin-bottom()
px2rem('margin-bottom',arguments)
margin-left()
px2rem('margin-left',arguments)
margin-right()
px2rem('margin-right',arguments)
7 changes: 3 additions & 4 deletions lib/stylus-px2rem/padding.styl
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@

padding()
px2rem('padding',arguments)
padding-bottom()
px2rem('padding-bottom',arguments)
padding-top()
px2rem('padding-top',arguments)
padding-right()
px2rem('padding-right',arguments)
padding-bottom()
px2rem('padding-bottom',arguments)
padding-left()
px2rem('padding-left',arguments)
px2rem('padding-left',arguments)
3 changes: 1 addition & 2 deletions lib/stylus-px2rem/top.styl
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@

top()
px2rem('top',arguments)
px2rem('top',arguments)

0 comments on commit 9545191

Please # to comment.