Tim Rinkel
KPCKevin Powell - Community
•Created by Tim Rinkel on 10/6/2024 in #front-end
Using `:first-of-type` with data attribute values?
I was afraid of that. Thanks for the clarification.
14 replies
KPCKevin Powell - Community
•Created by Tim Rinkel on 10/6/2024 in #front-end
Using `:first-of-type` with data attribute values?
Just sat down to supper, I’ll take a look at the Fiddle after.
Thanks for the explanation. What you said makes sense and I was suspecting as much. However, I realized that I used classes on the divs rather than the data attributes which is what I meant to do. (Oops). I have changed the original code to what was intended. Does this change your answer at all? My guess is ‘no’, but figured I should ask. 😉
14 replies
KPCKevin Powell - Community
•Created by Tim Rinkel on 1/13/2023 in #front-end
Using CSS custom property in inline SVG
Yep, that works on the site. Now I just need to tweak it back into place. Thanks!!
15 replies
KPCKevin Powell - Community
•Created by Tim Rinkel on 1/13/2023 in #front-end
Using CSS custom property in inline SVG
@markboots. That certainly seems to work on my end. You have plenty to be proud of ‼️ I'll give it a shot in the real site. Thanks!
15 replies
KPCKevin Powell - Community
•Created by Tim Rinkel on 1/13/2023 in #front-end
Using CSS custom property in inline SVG
clr-neutral
is set in :root
and works outside of this pseudo element.
currentcolor
is an interesting thought. I tried it a few different ways but it didn't seem to make a difference.
Here's the pen I was playing with: https://codepen.io/t_rinkel/pen/rNrmzBq .15 replies