Giter Site home page Giter Site logo

Comments (5)

adampatarino avatar adampatarino commented on July 29, 2024

Are you using this inside a mixin?
Try without the : after your color variable, like:
background-color: lighten($color, 10%);

If not, I'll do some testing and see if we can fix this for you.

from wp-scss.

fksr86 avatar fksr86 commented on July 29, 2024

sorry, that was just a mistype i did here.

yes, it's inside this mixin:

@mixin box($color) {
    background-color: lighten($color, 10%);
}

the compiling error indicates the line containing background-color: lighten($color, 10%); as the origin of the error.

although i tried it outside a mixin and the error was the same.

thanks!

from wp-scss.

adampatarino avatar adampatarino commented on July 29, 2024

I can't seem to recreate the error on my stack. Here's some questions that should help us track down the problem.

  • Does the lighten function work anywhere for you? As in with a different property besides background-color.
  • Have you instantiated the mixin somewhere using @include with a defined color variable?
  • What is the value of your color variable? A hex, rgb, etc?
  • Do other color functions work? darken(), saturate(), change-color() ?
  • Does lighten() work with a hex value rather than a variable?
  • What other properties are you defining in your mixin besides background-color?
  • What settings are you using in the settings page?
  • Lastly what version of php and wp are you running? You can check your php version with phpinfo().

from wp-scss.

fksr86 avatar fksr86 commented on July 29, 2024

don't know if it was a cache problem on my server, but today it seems it's working after updated scssphp. i've tested it in a mixin, outside a mixin, in other color functions, always with hex colors, and everything seems ok. sorry to bother and thanks for the great plugin.

from wp-scss.

adampatarino avatar adampatarino commented on July 29, 2024

Sure! Glad you figured it out.
Let us know if we can help with anything else.

from wp-scss.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.