formtastic-sass icon indicating copy to clipboard operation
formtastic-sass copied to clipboard

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

Open beverlycodes opened this issue 15 years ago • 1 comments

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.

beverlycodes avatar May 20 '10 14:05 beverlycodes

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...

BigForNothing avatar Jun 30 '10 17:06 BigForNothing