Skip to content
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants