I'm sure this is a dead simple question, but I can't find a straight forward answer so thought I'd ask here.
I'm building a site using Bootstrap, though want my custom styles to take precedence over Bootstrap's.
I'd imagine it's probably as simple as adjusting the order in my application.css.scss
file, but my tinkering hasn't found a solution yet.
Currently this file is as follows:
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
* compiled file so the styles you add here take precedence over styles defined in any styles
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
* file per style scope.
*
*= require_tree .
*= require_self
*/
@import "bootstrap-sprockets";
@import "bootstrap";
I've just started building this site, and have a couple of Bootstrap grid columns, one of which I'd like to remove the padding from. The other, I've added a background image and height to, no problem. The following code is from home.css.scss
:
.col-md-4 {
background: url('http://i.imgur.com/xxxxxxxxxxxx.jpg');
height: 1000px;
} //both of which work
.col-md-8 {
padding: 0px 0px 0px 0px;
} //which is overridden by Bootstrap's default styling
As I've said, hopefully this is a real simple solution that won't take too much effort to answer. Appreciate any help! Steve.