Skip to content

Commit

Permalink
Simplify checking for optional parameter in button addon
Browse files Browse the repository at this point in the history
  • Loading branch information
Chad Mazzola committed Jul 3, 2011
1 parent cc02287 commit 28ad202
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/assets/addons/_button.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@mixin button ($style: simple, $base-color: #4294f0) {
$pos-type: type-of($style);

@if $pos-type == color {
@if type-of($style) == color {
$base-color: $style;
$style: simple;
}
Expand Down

0 comments on commit 28ad202

Please sign in to comment.