Skip to content

Commit

Permalink
Adding new assign function
Browse files Browse the repository at this point in the history
Used by html input types addon.
  • Loading branch information
hmps committed Dec 1, 2013
1 parent 8e19574 commit 37aece0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/assets/stylesheets/_bourbon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
@import "helpers/shape-size-stripper";

// Custom Functions
@import "functions/assign";
@import "functions/flex-grid";
@import "functions/grid-width";
@import "functions/golden-ratio";
Expand Down
11 changes: 11 additions & 0 deletions app/assets/stylesheets/functions/_assign.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@function assign-inputs($inputs, $pseudo: null) {
$list : ();

@each $input in $inputs {
$input: unquote($input);
$input: if($pseudo, $input + ":" + $pseudo, $input);
$list: append($list, $input, comma);
}

@return $list;
}

0 comments on commit 37aece0

Please sign in to comment.