5t3ph / smolcss

Minimal snippets for modern CSS layouts and components
https://smolcss.dev
798 stars 12 forks source link

Change target selector to get correct ::before #8

Open Thenakedgun opened 2 years ago

Thenakedgun commented 2 years ago

When I trialed this example, I didn't see the text "Is it me you're looking for?" as the example would suggest, but instead "Aww, you came to see me!" This second string seems to come from the normal "style.css" file & didn't have anything to do with the example. I think to make this work, you'd need to change .smol-article-anchor:target::before to #smol-article-anchor-title:target::before.

I don't use GitHub much, so please forgive me if the way I've suggested this is abnormal; just tried to suggest the change via their UI. I got a link to your site from Kevin Powell's newsletter.