Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find element in a list? #65

Open
kkomaz opened this issue Mar 1, 2016 · 1 comment
Open

Find element in a list? #65

kkomaz opened this issue Mar 1, 2016 · 1 comment

Comments

@kkomaz
Copy link

kkomaz commented Mar 1, 2016

In sass you can use the nth position syntax to find an element in a list... What is the equivalent for this functionality if exists?

$list: "item-1", "item-2", "item-3";
nth($list, 1) -> "item-1"
@diverent2
Copy link

Looking at the respective plugins this doesn´t seem to be part of any of the included plugins.
This postcss plugin seems to allow for the expected behaviour: postcss-nth-list.
However it´s quite old (just like this issue 😅).

Is there still a demand for it?
Have you found any solutions, alternatives for this feature, whatsoever?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants