TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Pure CSS GUI icons (experimental)

127 点作者 tswicegood将近 14 年前

8 条评论

drdaeman将近 14 年前
I don't get why this is "awesome".<p>CSS for icons is like HTML tables for markup. You have a path, split it to pieces you can represent with CSS using the methods you consider acceptable and draw a shape using ::before and ::after pseudo-elements.<p>Sure, those icons were carefully hand-crafted. This requires a lot of patient work, and this is admirable.<p>Yet, we have SVG for vector graphics. Embed it with data: URIs (I believe browsers who support CSS3 transforms can display SVG backgrounds) and that's it.
评论 #2722075 未加载
评论 #2722417 未加载
dualogy将近 14 年前
Loving this. Unicode has some awesome symbol dingbats (not just arrows, even weather symbols, coffee cups and the likes) for UI icons too but this goes a step further and is more stylish (plus Android fonts don't have most dingbats, not even the arrows -- not sure about iOS).
cemregr将近 14 年前
If you're looking for resizable icons that work in non-canvas non-SVG settings, putting those vectors in a webfont is a pretty good idea too.<p>Check out: <a href="http://pictos.drewwilson.com/" rel="nofollow">http://pictos.drewwilson.com/</a>
评论 #2722304 未加载
necolas将近 14 年前
Yeah, as the opening paragraph of the article says, I did this just as 'an exercise in creative problem solving and working within constraints. This is not a "production ready" CSS icon set.'<p>Hopefully it's clear that it's not being presented as something to be used in production or instead of SVG/other more appropriate technologies.
评论 #2723581 未加载
nnash将近 14 年前
Really hate to be, <i>that guy</i> but this was posted almost a year ago and got ~200pts.<p><a href="http://news.ycombinator.com/item?id=1921197" rel="nofollow">http://news.ycombinator.com/item?id=1921197</a>
dstein将近 14 年前
I see no reason why you couldn't use canvas to generate icons as data URI's. Each icon could then be represented as a set of canvas drawing instructions, that could be pre-rendered, scaled for different devices/uses, cached, etc. I think that would be a better long-term solution.<p>Has anyone built something like this yet?
评论 #2722120 未加载
crag将近 14 年前
Weight is a non issue if you working on intranet sites. Or os applications.<p>And as others have pointed out, you can compress this file down to under 1k.<p>I like what I see. I'd love to have an icon set that didn't rely on images or "font-face" statements.
评论 #2723228 未加载
lyime将近 14 年前
Just use Pictos.