I'm new at web designing and I'm learning to use Flask. I've already done the structure of my web app and now I want to style it.
I've downloaded bootstrap Compiled CSS and JS, and I want to @import it into my customized scss file so then I can @extend some of it's features. My test code is:
@import 'C:/Users/lili_/Desktop/bootstrap-4.3.1-dist/css/bootstrap.css';
$navbar_color: red;
.my_navbar {
@extend .navbar;
background-color: $navbar_color;
}
The problem is that when I try to run sass and convert this into a css file, this error message shows up:
"The selector ".navbar" was not found."
It shows the same error with any .class or #id that I've tried to @extend. Also, when I open the "bootstrap.css" file by searching it in it's folder, it looks just fine, but when I try to follow the @import link (which I've copy-pasted on my test.scss) from the Visual Studio Code editor, an error window pops up claiming:
"Unable to open 'bootstrap.css'
resource not available"
;)) and import it into your Sass file with the relative path. Maybe this reminder about paths will help!.navbarclass in your bootstrap.css file?