In the docs you can read the following:
Import Bootstrap into a Sass file (e.g. application.css.scss) to get all Bootstrap styles, templates, and variables!
@import "bootstrap";
https://github.com/twbs/bootstrap-sass
I have several scss files. One for each main section of my application (user-page.scss, admin.scsss, etc.).
I tried to make one application.scss and imported bootstrap, as in the docs. I added the file to index.html after bootstrap.scss and before all my other scss files.
<link rel="stylesheet" href="bower_components/bootstrap-sass-official/assets/stylesheets/_bootstrap-compass.scss" /> <link rel="stylesheet" href="styles/application.css"> <link rel="stylesheet" href="styles/intro.css"> <link rel="stylesheet" href="styles/admmin.css">
I get the following error:
/usr/bin/scss --no-cache --update intro.scss:intro.css error intro.scss (Line 22: Undefined mixin 'make-row'.)
So it seems that he does not find the boot file. It works if I import bootstrap into every file. Is this the correct uploast? I think no. I get a problem when I try to manually override the bootstrap variable.
How can I create multiple scss files and only import bootstrap once?
source share