Comments (8)
I remember the exact moment I stepped away from this project (it is a the main dependency of PreCSS), and thanks to Twitter advanced search, I can tell you that it was July 10, 2015, which is roughly the same day it was released. My original intention was to progressively re-implement Sass with PostCSS. After allowing myself to stray from that direction, I tried to "walk away" and find other maintainers.
I have offered to let others take over the direction of this project through contributions. Ultimately, no one did take me up on the offer, and the project continued to gain users because (apparently) people like it and shared it. If there is a suitable competitor with stronger support, I will deprecate this package and redirect users to that project.
I find myself at a constant impasse. I continue to update the project when I see that my work is hurting users, but sometimes I fail to notice those calls in the noise of GitHub notifications — and for that I am genuinely sorry.
As it relates to this issue, would someone be willing to spin up a repo that demonstrates the break? This is described in CONTRIBUTING.md, but if you ask I would be happy to try to guide anyone through that process more individually.
from postcss-advanced-variables.
try this if you want to append a unit
.width-#{$i} {
width: calc(#{$i}0em);
}
or
.width-#{$i} {
width: $(i)0em;
}
from postcss-advanced-variables.
Did you find a way?
from postcss-advanced-variables.
any updates on this? having the same issue
from postcss-advanced-variables.
is this project still alive ?
from postcss-advanced-variables.
@jonathantneal : I could try to make a few PRs to solve some issues, if you provide me some guidance and the learning curve is not too steep. Cannot say that I will take over, but give you some help with the maintenance.
What about making a PR with failing tests as a starting point ?
from postcss-advanced-variables.
If you have a unknown word
error (which I presume you do), your problem is more likely related to postcss syntax itself, and the way it parse CSS.
for me, using the postcss-scss
syntax solve the problem and allow me to use the through
keyword.
Alternatively, it seems that using to
instead of through
in your for loop, may also solve the issue, without the need for you to use the postcss-scss
syntax.
Looking at the code, it seems that no matter the keyword you use here, it will work fine, because the plugins split the params of your loop based on their position, and not the keywords themself.
so :
@for $i from 6 tutatattoto 1 by 2 {
.for-$(i)-from-6-to-1-by-2 {
content: "$i";
}
}
should work as well 😅
from postcss-advanced-variables.
facing the same issue, not resolving
from postcss-advanced-variables.
Related Issues (20)
- Publish latest version to npm HOT 1
- Dependency on postcss v7.0.6 exposes security vulnerability (PostCSS < 8.4.31) HOT 1
- Mixins: Inconsistent errors when not passing required params
- Could not resolve the variable within mixin HOT 2
- Add support for @function?
- Handling multi-levels variables? HOT 3
- Publish release HOT 3
- TypeError: Cannot read property 'toLowerCase' of undefined HOT 1
- Move postcss to peerDependencies
- Update to use PostCSS v8 HOT 1
- @each don't work properly. HOT 1
- Global declarations HOT 2
- Could not resolve variable $c within #{$c}__label{ ... } HOT 1
- Suggestion for a new feature: Read-Only Variables to Overide other Variables HOT 2
- Could not resolve the variable "$pad" within "calc(100% - $pad * 2)" HOT 1
- Publish to npm HOT 6
- Loading global mixins and variables from file HOT 1
- Variable property name
- Not evaluating number when passing variables
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 postcss-advanced-variables.