Re:Show HN: Littlebox, a pure CSS icon library – worth conti...
by notatoad on Friday February 13, 2015 @08:05PM
(#9048249)
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?
Re:Show HN: Littlebox, a pure CSS icon library – worth conti...
by cabmaddux on Saturday February 14, 2015 @02:23AM
(#9049008)
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.
>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?