2

My rails (with bootstrap-sass gem) application.css.scss looks like this:

/*
 * ...boilerplate application.css.scss comments
 *= require_tree .                                                              
 *= require_self                                                                
 */                                                                             
@import 'bootstrap'

.container-fixed {                                                              
  margin: 0 auto;                                                               
  max-width: 970px;                                                             
}           

Viewing any page gives me a Sass:SyntaxError like this Invalid CSS after "...ort 'bootstrap'": expected selector or at-rule, was ".container-fixed {". I don't see a problem with the .container-fixed snippet. Elsewhere I see that this error can be caused by a file imported before the line that Sass complains about. However, there is no other CSS in this project (apart from bootstrap itself). What am I doing wrong?

Community
  • 1
  • 1
iftheshoefritz
  • 5,829
  • 2
  • 34
  • 41

1 Answers1

6

As per Cimmanon's comment, the issue is fixed by adding a semi-colon at the end of the @import line, as shown in the bootstrap-sass docs.

iftheshoefritz
  • 5,829
  • 2
  • 34
  • 41