Hacker News new | past | comments | ask | show | jobs | submit login

nicely done, these are pretty cool. like anything interesting in css i'm not sure if they're practical, but they're cool regardless of the practicality.

>to set your own color, simply set the icons border color in your CSS, like so: .lb-, .lb-::before .lb-*::after

could you use border-color:inherit on the :before and :after pseudo-elements, so it's just a single selector change to change the color?




Wow, that makes a ton of sense, definitely cleaner than what I've got going now. There are plenty of places to clean it up, but that would be a big one.

Thanks!


Alternatively, if you leave it off it defaults to currentColor, which means you can set the color property on it or a parent.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: