lib/facades/sass_ext/form_elements.rb in facades-0.0.2 vs lib/facades/sass_ext/form_elements.rb in facades-0.0.3
- old
+ new
@@ -13,10 +13,14 @@
def all_input_types
[:checkbox, :password, :radio, :select, :string, :textarea].collect{ |t| send(:"#{t}_input_types") }.flatten.compact
end
+ def button_input_types
+ "input[type=submit], input[type=reset], button[type=submit]"
+ end
+
def checkbox_input_types
"input[type=checkbox]"
end
alias :check_input_types :checkbox_input_types
@@ -29,12 +33,14 @@
end
def select_input_types
"select"
end
-
+
def string_input_types
- %w{email password text}.collect{ |t| "input[type=#{t}]" }
+ %w{email password text number search tel time url datetime date datetime-local week month}.collect do |type|
+ "input[type=#{type}]"
+ end
end
def textarea_input_types
"textarea"
end
\ No newline at end of file