Permalink
Browse files

Refactor html5-input-types. Version bump to 0.1.9

  • Loading branch information...
1 parent 2c7c527 commit c7027db88819393b6bcd58030dd65ad58ae4629c Phil LaPier committed Sep 24, 2011
Showing with 6 additions and 14 deletions.
  1. +5 −13 app/assets/stylesheets/addons/_html5-input-types.scss
  2. +1 −1 lib/bourbon/version.rb
View
18 app/assets/stylesheets/addons/_html5-input-types.scss
@@ -20,25 +20,17 @@ $inputs-list: 'input[type="email"]',
'input[type="time"]',
'input[type="week"]';
-$list-count: 0;
-$unquoted-inputs-list: false;
+$unquoted-inputs-list: ();
@each $input-type in $inputs-list {
- @if $list-count == 0 {
- $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);
- }
+ $unquoted-inputs-list: append($unquoted-inputs-list, unquote($input-type), comma);
}
$all-text-inputs: $unquoted-inputs-list;
// You must use interpolation on the variable:
// #{$all-text-inputs}
//************************************************************************//
-// #{$all-text-inputs}, textarea {
-// border: 1px solid green;
-// }
+// #{$all-text-inputs}, textarea {
+// border: 1px solid red;
+// }
View
2 lib/bourbon/version.rb
@@ -1,3 +1,3 @@
module Bourbon
- VERSION = "0.1.8"
+ VERSION = "0.1.9"
end

0 comments on commit c7027db

Please sign in to comment.