News for hackers. Stuff that matters.
Re:Show HN: Littlebox, a pure CSS icon library – worth conti... by jszymborski on Friday February 13, 2015 @08:09PM (#9048264)
I wonder if SVG is more suited to something like this...
Re:Show HN: Littlebox, a pure CSS icon library – worth conti... by jakobegger on Saturday February 14, 2015 @01:49AM (#9048955)
I was completely amazed when I recently checked browser support for inline SVG; almost all current browsers support them! [1] So I decided to use inline SVG for icons and logos. It's extremely fast (no separate network request, images embedded in gzipped html source), and as a bonus I can style the images easily using CSS (eg. change colors on hover/active state)

Example see here: http://jsfiddle.net/Lszz5392/1/

The nicest part about this is that I can use Adobe Illustrator (or any other vector editor) to create the graphics, and then paste them straight into HTML.

[1]: http://caniuse.com/#feat=svg-html5

Re:Show HN: Littlebox, a pure CSS icon library – worth conti... by vbezhenar on Saturday February 14, 2015 @05:48AM (#9049327)
It might sound weird but I actually like to draw simple SVG images using text editor. SVG is well suited for that, it's readable and compact.
Re:Show HN: Littlebox, a pure CSS icon library – worth conti... by jakobegger on Saturday February 14, 2015 @05:57AM (#9049339)
Yes, I've done that too. What's even nicer is that you can write scripts that generate SVG. Drawing symmetric things like a gear can be very cumbersome in a vector editor, but it's really nice if you draw it with a script. (And I was finally able to make use of all the math & geometry I learned in school)
Re:Show HN: Littlebox, a pure CSS icon library – worth conti... by michaelbuddy on Friday February 13, 2015 @09:30PM (#9048487)
it's exactly what svg is suited for. I cringe anytime I see css graphics. ONe guy did an entire 3D scene using CSS and I was both awestruck and sickened when I saw the explanation of how it was done. what a pain in the ass with little reward IMO. But if somebody wants to do something, whatevs go for it. hack away.