Joss Posted November 14, 2014 Share Posted November 14, 2014 So, just updated a bit of scss to be told, "There is a bloody undefined variable, you useless excuse for a pathetic human being!" (Don't you wish error messages were more fun?) I looked at the supposed undefined variable, "$dark-grey" Well, looks fine to me. Went and looked at my colour scheme, "$dark-gray" Well, look fine to me too. So why isn't it working? Seems I have tripped over a language barrier....... Link to comment Share on other sites More sharing options...
Soma Posted November 14, 2014 Share Posted November 14, 2014 Grey or gray? 1 Link to comment Share on other sites More sharing options...
Martijn Geerts Posted November 14, 2014 Share Posted November 14, 2014 If that's in PHP, then it's the dash. Dashes can't be used in PHP variable names. Link to comment Share on other sites More sharing options...
Joss Posted November 14, 2014 Author Share Posted November 14, 2014 Grey or gray? Quite. I started of by pasting in a little bit off scss to use as a guide that had the variable $dark-gray - seemed a sensible name, so I kept it. That was about four weeks ago. Today I return to my little project and decide to use the variable. Of course I spell it the way I have always done grEy. In my post you can see the difference - in a whole line of variables it was not quite so obvious. If that's in PHP, then it's the dash. Dashes can't be used in PHP variable names. Nope, definitely scss - the clue was on the first line .... Link to comment Share on other sites More sharing options...
Martijn Geerts Posted November 14, 2014 Share Posted November 14, 2014 Must be grey in my head, reading is so difficult. 2 Link to comment Share on other sites More sharing options...
Recommended Posts