1

After upgrading to rails 3.2 I'm getting this error on rake assets:precompile

Invalid CSS after "*": expected "{", was "html .fileinput..."

here is the trace: http://paste.ubuntu.com/1285319/

application.css is pretty much the default:

/*
 * This is a manifest file that'll automatically include all the stylesheets available in this directory
 * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
 * the top of the compiled file, but it's generally better to create a new file per style scope.
 *= require_self 
 *= require_tree . 
*/

obviously it doesn't like the comments in CSS, was there some change in SASS or Rails I haven't noticed?

here are the versions of sass:

sass (3.2.1)
sass-rails (3.2.5)
  railties (~> 3.2.0)
  sass (>= 3.1.10)
  tilt (~> 1.3)
4
  • can you paste your css file which contains html .fileinput... ? Commented Oct 17, 2012 at 16:23
  • I'm not sure what do you mean... the stylesheet is inserted <%= stylesheet_link_tag "application" %> standard way Commented Oct 17, 2012 at 17:39
  • Are there other files in assets/stylesheets? Rails can’t be objecting to comments in CSS, nothing has changed in that regard. Commented Oct 17, 2012 at 18:03
  • yeah, sure. there are quite a many of them... Commented Oct 17, 2012 at 18:18

1 Answer 1

1

the error was caused by this line in jquery.fileupload-ui.css (jQuery File Upload UI Plugin CSS 6.3)

/* Fix for IE 6: */
*html .fileinput-button {
  line-height: 22px;
  margin: 1px -3px 0 0;
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.