<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ryan's Tech Blog &#187; design</title>
	<atom:link href="http://ryepup.unwashedmeme.com/blog/category/design/feed/" rel="self" type="application/rss+xml" />
	<link>http://ryepup.unwashedmeme.com/blog</link>
	<description>mostly tech, mostly rants</description>
	<lastBuildDate>Wed, 04 Jan 2012 03:42:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Pretty icons using CSS and Mark James&#8217; Silk Icons</title>
		<link>http://ryepup.unwashedmeme.com/blog/2007/05/18/pretty-icons-using-css-and-mark-james-silk-icons/</link>
		<comments>http://ryepup.unwashedmeme.com/blog/2007/05/18/pretty-icons-using-css-and-mark-james-silk-icons/#comments</comments>
		<pubDate>Fri, 18 May 2007 16:39:54 +0000</pubDate>
		<dc:creator>ryan</dc:creator>
				<category><![CDATA[code snippet]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://ryepup.unwashedmeme.com/blog/2007/05/18/pretty-icons-using-css-and-mark-james-silk-icons/</guid>
		<description><![CDATA[I recently saw a post via reddit on Rediscovering the button element about making nice buttons with little icons, and was introduced to the Silk Icons available from Mark James. Mark has released these under a Creative Commons Attribution license, any my UIs will be better for it. I went through last night and gave [...]]]></description>
			<content:encoded><![CDATA[<p>I recently saw a post via reddit on <a href="http://particletree.com/features/rediscovering-the-button-element/">Rediscovering the button element</a> about making nice buttons with little icons, and was introduced to the <a href="http://www.famfamfam.com/lab/icons/silk/">Silk Icons</a> available from <a href="http://www.famfamfam.com/">Mark James</a>.  Mark has released these under a <a href="http://creativecommons.org/licenses/by/2.5/">Creative Commons Attribution</a> license, any my UIs will be better for it.
</p>
<p>
I went through last night and gave a little face-lift to one of my intranet projects, and it looks a <strong>lot</strong> nicer now.  I added icons to buttons and links using CSS.</p>
<p>Here's the css I used:</p>
<div class="igBar"><span id="lcss-2"><a href="#" onclick="javascript:showPlainTxt('css-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-2">
<div class="css" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.<span style="color: #993333;">icon</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"></span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">background-repeat</span>:<span style="color: #993333;">no-repeat</span>;&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">padding-left</span>:20px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.delete-<span style="color: #993333;">icon</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"></span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">background-image</span>:<span style="color: #993333;">url</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'icons/cross.png'</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.edit-<span style="color: #993333;">icon</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"></span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">background-image</span>:<span style="color: #993333;">url</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'icons/pencil.png'</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p>
and so forth, with a <code>*-icon</code> for the different icons I wanted.  Then, I decorated my buttons, links, and what-have-you by adding a <code>class="icon foo-icon"</code> attribute.  There are other ways accomplish that with CSS, but I liked this scheme the best.  In the end, I have added nothing significant to the markup, but made everything else look a lot nicer:</p>
<div style="padding-left:20px">
<img id="image23" src="http://ryepup.unwashedmeme.com/blog/wp-content/uploads/2007/05/silk-3.png" alt="Silk icon example 3" /><img id="image21" src="http://ryepup.unwashedmeme.com/blog/wp-content/uploads/2007/05/silk-2.png" alt="Silk icon example 2" /><img id="image20" src="http://ryepup.unwashedmeme.com/blog/wp-content/uploads/2007/05/silk-1.png" alt="Silk icon example" />
</div>
</p>
<p>
Thanks a lot, Mark!</p>
]]></content:encoded>
			<wfw:commentRss>http://ryepup.unwashedmeme.com/blog/2007/05/18/pretty-icons-using-css-and-mark-james-silk-icons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.488 seconds -->

