Skip to content

Commit

Permalink
fix "border: none" case
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Jun 29, 2012
1 parent afbbe54 commit 2309719
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/nib/border.styl
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* border: ...
*/

border()
if 1 == length(arguments)
border: 1px solid arguments
border(color)
if color is a 'color'
border: 1px solid color
else
border: arguments
1 change: 1 addition & 0 deletions test/cases/border.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.foo {
border: none;
border: 1px solid #f00;
border: 1px solid #f00;
}
1 change: 1 addition & 0 deletions test/cases/border.styl
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
@import 'nib/border'

.foo
border: none
border: red
border: 1px solid red

0 comments on commit 2309719

Please sign in to comment.