StartBootstrap / startbootstrap-clean-blog

A clean Bootstrap blog theme created by Start Bootstrap
https://startbootstrap.com/theme/clean-blog/
MIT License
1.78k stars 1.85k forks source link

Compile one CSS file only with Sass #63

Closed vitoo closed 6 years ago

vitoo commented 6 years ago

Hello,

I see you include 2 css file, 1 for bootstrap, and one for the theme I try to compile 1 CSS file only with Sass, but i can't get it to work How to achieve it ? Here is what i've tried :

@import 'node_modules/bootstrap/scss/bootstrap';

@import "variables.scss";
@import "mixins.scss";
@import "global.scss";
@import "navbar.scss";
@import "masthead.scss";
@import "post.scss";
@import "contact.scss";
@import "footer.scss";
@import "bootstrap-overrides.scss";

As you can see, the btn-primary color is not overrided (default bootstrap blue ?) :


Img


Thanks for your help

davidtmiller commented 6 years ago

Yes I keep them separated on purpose just for ease of use, but if you did want to combine them for a deployment scenario then you would want to load your overrides, then Bootstrap, then the rest of the styles.

@import 'node_modules/bootstrap/scss/bootstrap';

@import "bootstrap-overrides.scss";

@import "variables.scss";
@import "mixins.scss";
@import "global.scss";
@import "navbar.scss";
@import "masthead.scss";
@import "post.scss";
@import "contact.scss";
@import "footer.scss";
vitoo commented 5 years ago

Well, we have to import variable, then boostrap, then custom styles This worked :

@import "variables.scss";

@import 'node_modules/bootstrap/scss/bootstrap';

@import "mixins.scss";
@import "global.scss";
@import "navbar.scss";
@import "masthead.scss";
@import "post.scss";
@import "contact.scss";
@import "footer.scss";
@import "bootstrap-overrides.scss";