Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
What is the correct way to override background-color
piotrnl
New
Hi,
Using bootstrap on Vanilla 2.1. What is the correct way to override the bg color thru the whole theme. Thanks.
0
Comments
https://github.com/kasperisager/vanilla-bootstrap#compiling-assets
Follow the install instructions, modify the appropriate style LESS file, and recompile the CSS.
http://vanillaforums.org/discussion/comment/215974/#Comment_215974
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
@piotrnl
As @hgtonight says, the proper way is to edit the style's LESS file, which you will find in bootstrap/bower_components/bootswatch/theme_name_folder.
Take a look in the variables LESS file, and you should find the setting for background colour declared as
@body-bg:
Once you have done that, follow the instructions to recompile.
If you don't want to go the LESS route, you can also add the appropriate css rule in the custom file you will find in bootstrap/design.
If you plan to make a lot of alterations, I would recommend getting the hang of how the LESS files work.
See here for a brief intro: http://www.hongkiat.com/blog/less-basic/