NUBIC / surveyor

A Rails gem that lets you code surveys, questionnaires, quizzes, etc... and add them to your app.
http://nubic.github.com/surveyor
MIT License
750 stars 274 forks source link

Possible collision with rails_admin bootstrap sass #433

Open alanjcfs opened 11 years ago

alanjcfs commented 11 years ago

From looking through Google Chrome, it appears that reset.css was overriding the custom-bootstrap.css.scss that I had created.

This is what I have in my custom-bootstrap.css.scss and application.css: https://gist.github.com/alanjcfs/bc885707c90540edc8df

I fixed it by disabling *= require tree from application.css and manually including the desired scss files.

geniass commented 11 years ago

I had the same problem, where reset.css was overriding bootstrap. For me

*= require surveyor_all
 *= require bootstrap
 *= require_self
 *= require_tree .
 */

worked.

anhqle commented 10 years ago

The exact same issue applies to surveyor_all.js. I remove require_tree . in both application.css and application.js, effectively removing surveyor_all.js/.css. Will it cause problem?

alanjcfs commented 10 years ago

It should be fine if you include surveyor_all as part of the assets to be compiled in Rails in production. Otherwise, certain things won't work.

anhqle commented 10 years ago

Doesn't including surveyor_all include reset.css, which is the issue that started this whole thread?

archonic commented 9 years ago

I found the inclusion of reset.css within surveyor to be annoying. It's almost certain that reset.css will be either included in the front-end css framework of choice or in app/assets/stylesheets. I wanted files included in tree to be able to override bootstrap, but with tree following bootstrap in the requires, surveyor's reset.css messes with bootstrap. All headers are font-size 13 for example because of font-size: 100%;