jekyll / jekyll-sass-converter

A Sass converter for Jekyll.

Home Page:http://rubygems.org/gems/jekyll-sass-converter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

max(), min() not working properly

timharek opened this issue · comments

I'm having issues with using max() and min().

I have the following code:

width: min(760px, 70%)

Then I get the following compile error:

Conversion error: Jekyll::Converters::Scss encountered an error while converting 'assets/main.scss':
                    Internal Error: Incompatible units: '%' and 'px'.
             Error: Internal Error: Incompatible units: '%' and 'px'.

When I try to do the same with pure CSS it works fine.

I believe the issue is with SASS and not Jekyll. Check this out and see if it helps : sass/node-sass#2815

Ah, alright! Thank you, I will use the workaround suggested in that thread :)