Comments (5)
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.
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.
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.
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.
Sure! Glad you figured it out.
Let us know if we can help with anything else.
from wp-scss.
Related Issues (20)
- Configure plugin via define or json HOT 2
- CSS rule filter: invert() creates error message HOT 2
- Settings are not getting stored HOT 3
- Improving performance HOT 5
- Add a version to the compiled scss file
- Source Map Issue HOT 4
- File Permission Error, permission denied. Please make the cache directory writable. HOT 7
- Update scssphp to v1.10.0 HOT 2
- ":not()" is crashing Wordpress HOT 6
- Can not change colors HOT 2
- Conflicting with any kind of infinite scroll plugin. HOT 2
- Wrong path in header generated HOT 2
- Warning: Array to string conversion HOT 3
- Version 3.0 Crashed my entire site - (Resolved) HOT 33
- Error with 3.0 Update: Uncaught Error: Class "ScssPhp\ScssPhp\Block\MediaBlock" #630 HOT 4
- Looking for a new maintainer HOT 7
- What would a Premium version of WP-SCSS look like? HOT 2
- 4.0.2 causing error in commented out SCSS HOT 2
- PHP 8.2 Creation of dynamic property ... is deprecated HOT 2
- PHP Warning: No such file or directory HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wp-scss.