Open alanjcfs opened 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.
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?
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.
Doesn't including surveyor_all include reset.css, which is the issue that started this whole thread?
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%;
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.