In this post we will talk about the not so new functional pseudo-class selectors :is() and :where().
We will see how they work in details, how the...
For further actions, you may consider blocking this person and/or reporting abuse
Very cool illustrations!
I'm glad you liked them! Thanks for the feedback Thomas.
interesting topic, lovely illustrated, thanks!
Thank you ππ
I mean :is seems frivolous? I get that its a one liner in css, but in sass probably not and who is writing in plain css anyways?
Here are the different ways of writing this:
I guess that's the least useful way to use it with sass but just to be clear I'm not advocating the use of
:is()
or:where()
. Use what works best for you πAlso, I would say a lot of people are writing in plain CSS. It could be nice to have a global metric on this tho
Yeah thanks, putting the example for others to see as I found it interesting. I didn't know :is existed so was interesting to learn about!
Its hard to tell which is used more, here are some npm metrics on sass packages for fun:
node-sass has 3,075,362 weekly downloads.
sass has 9,050,002 weekly downloads.
sass-loader has 11,673,625 weekly downloads.
Ok, but what about combining multiple :is selectors? Can't do that in SASS. Also, the :is selector is forgiving of unsupported selectors. Can't say that about SASS.
@mattcoz because you didnβt tag me I didnβt get notified of your comment, so Iβm a little late here. Could you give me an example of what you mean?
Examples were given in the article.
Thank you heaps. I've literally never used :is or where before. Going to try it out!
Useful ππβ€οΈ
Thank you kind sir!
π
Nicely explained, Iβll try this for sure.
Thanks Zakariya!
Glad to hear that
That's awesome
Thank you Hassan!
Thnaks for all. Good article
Thanks for the lesson, it's so helpful
ππ
Simplified a lot with the illustrations
Thanks for the feedback Matheus π
Happy to hear that!
Thanks! Itβs helpful and easy to understand.
very nice!
ππ
Another banger content by Mustapha
Thank you Tom. Means a lot π€π€
Thank you for that explanation!
My pleasure. Glad you liked it
great
Nice ! I like the illustrations, it really helps to understand easily.
Thanks for this post
Thanks for the feedback Antoine I appreciate it!
great explanation!!!
Π‘ongratulations π₯³! Your article hit the top posts for the week - dev.to/fruntend/top-10-posts-for-f...
Keep it up π
An amazing explanation for sure.
Nice illustrations, did you made it by hand or is there a software or website that creates them?