compass-twitter-bootstrap icon indicating copy to clipboard operation
compass-twitter-bootstrap copied to clipboard

I must be missing something with regards to variables

Open ScotsScripts opened this issue 12 years ago • 1 comments

Hi,

I think I'm misssing something obvious here. Let's say I add the following two lines to my scss file so I can change a couple bootstrap default variables:

$navbarHeight: 100px; $navbarBackground: red;

When compass compiles the new .css file, the values I put in are being ignored and the default bootstrap values are being used.

What am I doing wrong?

Thanks,

Scot

ScotsScripts avatar Oct 24 '12 06:10 ScotsScripts

Ok, I was able to figure out the answer to this one. It's pretty easy, but not obvious for the compass/bootstrap novice.

All the variables need to be set in the scss file BEFORE the @import "bootstrap"; and related lines, not after. Goes against my personal logic, but whatever works!

ScotsScripts avatar Oct 24 '12 06:10 ScotsScripts