Closed fareez-ahamed closed 9 years ago
Did you override $brand-primary
? Are there any additional Sass functions in your stack that could be overriding tint
? https://github.com/wingrunr21/flat-ui-sass/blob/master/vendor/assets/stylesheets/flat-ui/_variables.scss#L268
No I'm not manually overriding anything...
I only have these lines in my sass file...
@import 'flat-ui/variables';
@import 'bootstrap';
@import 'flat-ui';
And I use "bootstrap-sass-official": "~3.3.4"
Off the top of my head I don't know what the issue is. Have you tried downgrading bootstrap? Try ~3.2.
I tried updating to ~3.2... Still getting the same error :cry:
If 3.1 doesn't work then it is either something in your sass stack or a problem with node-sass. #39 is tasked for making sure node-sass is compatible.
Well I have the same issue with 3.1 as well... :(
What version of node-sass
has laravel-elixir
pulled in?
"devDependencies": {
"gulp": "^3.9.0",
"laravel-elixir": "^1.0.1"
}
These are my dependencies... laravel-elixir 1.0.1
uses gulp-sass 1.3.3
which in turn uses node-sass 2.1.1
And now I also tried with laravel-elixir 2.3.8
uses gulp-sass 2.0.1
. which in turn uses node-sass 3.1.2
. Same error
You can clone this repo https://github.com/fareez-ahamed/laravel-elixir-flat-ui and run following commands to reproduce my error...
bower install
npm install
gulp
@wingrunr21 any update on this?
No, looking at it today
Sorry about that. I came down with something and didn't get to take a look til now.
The issue is the tint
function. I've not yet tracked down why it appears to not be returning a color, but if I redefine it (at the top of the app.scss
file) to be this:
@function tint($color, $percentage){
@return mix(#ffffff, $color, $percentage)
}
The compilation succeeds.
Hi, it works for me too...! :smiley:
It would be nice to have a permanent solution. The laravel community is using laravel-elixir
as its coming out of the box. So it would be nice if it works with it without needing tweaks!!!
That would be what #39 is for. :wink:
Thanks for your great work :+1: Happy to have Flat UI in SASS :smile:
I can confirm that defining the tint function solves this issue for me too.
I get this error
Using
"flat-ui-sass": "~2.1.3"
through bower. Compiling usinglaravel-elixir
which internally usesnode-sass