-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined Variable Error while updating a .scss file into .css #6566
Comments
Any more information about exactly how you're using SASS in your project? I use SASS all the time with no problem. This is likely to be operator error rather than an issue. |
I just created a navbar and changed the border-radius of it. In the mean time, I changed it's bg color by using '.blue' class. But I found, there's present the primary color accent of nav in the background at the four corners from it. That's why I wanted to change only the primary color of the navigation panel by importing "_navbar.scss" in a main.scss file. In main.scss file, I set the value for $primary-color as transparent before the line of importing. Then, I was updating it in a new style.css file by using "sass main.scss style.css" command. In that time, the error ("Undefined Variable $navbar-height-mobile") occurs. |
@soumya-99 so this is not an issue with the framework, but an issue with how you are doing it. Please close the issue. In future use the Gitter channel to ask for help on how to use the framework.
https://github.com/Dogfalo/materialize/blob/v1-dev/sass/materialize.scss You comment out which components you don't need (or include them all).
a) in _variables.scss (this is the ONLY place where $primary-color should be set. Do not change it anywhere else. It sets the primary color for the entire theme) |
@doughballs Thank you for your kind information. I'll close the issue. |
"Undefined Variable" Error while updating a SASS file into CSS
The text was updated successfully, but these errors were encountered: