Skip to content

Commit

Permalink
Refactor html5-input-types. Version bump to 0.1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil LaPier committed Sep 24, 2011
1 parent 2c7c527 commit c7027db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
18 changes: 5 additions & 13 deletions app/assets/stylesheets/addons/_html5-input-types.scss
Expand Up @@ -20,25 +20,17 @@ $inputs-list: 'input[type="email"]',
'input[type="time"]', 'input[type="time"]',
'input[type="week"]'; 'input[type="week"]';


$list-count: 0; $unquoted-inputs-list: ();
$unquoted-inputs-list: false;


@each $input-type in $inputs-list { @each $input-type in $inputs-list {
@if $list-count == 0 { $unquoted-inputs-list: append($unquoted-inputs-list, unquote($input-type), comma);
$unquoted-inputs-list: unquote($input-type);
$list-count: $list-count + 1;
}

@else if $list-count > 0 {
$unquoted-inputs-list: join($unquoted-inputs-list, unquote($input-type), comma);
}
} }


$all-text-inputs: $unquoted-inputs-list; $all-text-inputs: $unquoted-inputs-list;


// You must use interpolation on the variable: // You must use interpolation on the variable:
// #{$all-text-inputs} // #{$all-text-inputs}
//************************************************************************// //************************************************************************//
// #{$all-text-inputs}, textarea { // #{$all-text-inputs}, textarea {
// border: 1px solid green; // border: 1px solid red;
// } // }
2 changes: 1 addition & 1 deletion lib/bourbon/version.rb
@@ -1,3 +1,3 @@
module Bourbon module Bourbon
VERSION = "0.1.8" VERSION = "0.1.9"
end end

0 comments on commit c7027db

Please sign in to comment.