activestylus / formtastic-sass

Flexible Formtastic styling with Sass
199 stars 16 forks source link

Missing mixins (grid-inputs-core, float-inputs-core) #12

Open beverlycodes opened 14 years ago

beverlycodes commented 14 years ago

I went to use the float-inputs-for functionality in a project I'm working on and ended up with a Sass::SyntaxError letting me know that the +grid-inputs-core and +float-inputs-core mixins are missing from the current version of formtastic-sass.

BigForNothing commented 14 years ago

Remove the "-core" part from line 423 and 443 and it should fix the issue.

=grid-inputs-for(!dom_target,!width=100px,!line_height=150%)
  #{!dom_target}
    +grid-inputs-core(!width,!line_height)

By looking at the code, its taking the 1st argument (!dom_target) and creating a new class or id with it. Once that is done, its calling grid-inputs as normal using the !width and !line_height if provided, otherwise it uses the default values of 100px and 150%.

Hope this helps...