<?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>Garrett Murphey &#187; Random</title>
	<atom:link href="http://gmurphey.com/category/random/feed/" rel="self" type="application/rss+xml" />
	<link>http://gmurphey.com</link>
	<description>New Media Interactive Developer</description>
	<lastBuildDate>Fri, 23 Apr 2010 02:02:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Page Link Manager Now Available at WordPress.org</title>
		<link>http://gmurphey.com/2007/06/16/page-link-manager-now-on-available-at-wordpressorg/</link>
		<comments>http://gmurphey.com/2007/06/16/page-link-manager-now-on-available-at-wordpressorg/#comments</comments>
		<pubDate>Sat, 16 Jun 2007 16:53:37 +0000</pubDate>
		<dc:creator>Garrett Murphey</dc:creator>
				<category><![CDATA[News & Announcements]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://gmurphey.com/2007/06/16/page-link-manager-now-on-available-at-wordpressorg/</guid>
		<description><![CDATA[With the recent release of Page Link Manager v0.3, it has been added to WordPress.org. I&#8217;ll still be hosting and supporting the plugin here for any of you that like to go straight to the source, but I&#8217;m hoping it will be easier to find and discover by other WordPress users over on the plugin [...]]]></description>
			<content:encoded><![CDATA[<p>With the recent release of <a href="http://gmurphey.com/2006/10/05/wordpress-plugin-page-link-manager/">Page Link Manager v0.3</a>, it has been added to <a href="http://wordpress.org/extend/plugins/" target="_blank">WordPress.org</a>.</p>
<p>I&#8217;ll still be hosting and supporting the plugin here for any of you that like to go straight to the source, but I&#8217;m hoping it will be easier to find and discover by other WordPress users over on the plugin site.</p>
]]></content:encoded>
			<wfw:commentRss>http://gmurphey.com/2007/06/16/page-link-manager-now-on-available-at-wordpressorg/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>My Ideal Cascading Style Sheet: Organization</title>
		<link>http://gmurphey.com/2007/03/12/my-ideal-cascading-style-sheet-organization/</link>
		<comments>http://gmurphey.com/2007/03/12/my-ideal-cascading-style-sheet-organization/#comments</comments>
		<pubDate>Mon, 12 Mar 2007 05:13:37 +0000</pubDate>
		<dc:creator>Garrett Murphey</dc:creator>
				<category><![CDATA[Cascading Style Sheets]]></category>
		<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://gmurphey.com/2007/03/12/my-ideal-cascading-style-sheet-organization/</guid>
		<description><![CDATA[I'm not the most organized person and I'm not afraid to admit it. It's one of the things that has drawn me to designing with HTML and programming with  Javascript and PHP. With HTML things are designed to fit into a hierarchy of nested tags, and most programming languages are organized by functions and methods. There's inherent organization. But one crucial piece of the web developer's toolkit is missing syntactical design &#8212; that being Cascading Style Sheets (CSS).]]></description>
			<content:encoded><![CDATA[<p>I am not the most organized person and I&#8217;m not afraid to admit it. It&#8217;s one of the things that has drawn me to designing with HTML and programming with  Javascript and PHP. With HTML things are designed to fit into a hierarchy of nested tags, and most programming languages are organized by functions and methods. There&#8217;s inherent organization. But one crucial piece of the web developer&#8217;s toolkit is missing syntactical design &mdash; that being Cascading Style Sheets (CSS).</p>
<p>Here&#8217;s how I write my most of my CSS now.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#menu</span> ul <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#menu</span> ul li <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1.2em</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1.2em</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#menu</span> ul li a <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#006699</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#menu</span> ul li a<span style="color: #6666ff;">.here</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#999999</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Now that&#8217;s not very hard to read, but amongst hundreds, if not thousands, of other lines of CSS, it&#8217;s quite easy to lose track of those 18 lines. And I, being the unorganized designer I am, tend to throw lines of CSS in the middle rules that should otherwise be grouped together. And those relationships are quite important when we need to debug a design issue caused by a child inheriting styles from a parent. The CSS syntax really lends nothing to natural organization.</p>
<p>One way I&#8217;ve tried to become a more efficient with the current CSS model is through rule and style separation by files. For instance, I may create files like design.css, typography.css, etc. But then I run into scenarios where I can&#8217;t decide which files to keep certain rules in, since they may apply to both, and eventually that system collapses upon itself.</p>
<p>I&#8217;ve thought long and hard about how CSS can improve (and hopefully make us more productive). One idea is illustrated below.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#menu</span> <span style="color: #00AA00;">&#123;</span>
	ul <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
		li <span style="color: #00AA00;">&#123;</span>
			<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1.2em</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1.2em</span><span style="color: #00AA00;">;</span>
		<span style="color: #00AA00;">&#125;</span>
	<span style="color: #00AA00;">&#125;</span>
	a <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#06699</span><span style="color: #00AA00;">;</span>
		<span style="color: #6666ff;">.here</span> <span style="color: #00AA00;">&#123;</span>
			<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#999999</span><span style="color: #00AA00;">;</span>
		<span style="color: #00AA00;">&#125;</span>
	<span style="color: #00AA00;">&#125;</span>	
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>As you can see, I&#8217;ve nested my styles within parents to show relationships more efficiently. Nothing can come between any of the rules for the <code>#menu</code> element.</p>
<p>Another way this solution could help is by making it much easier to collaborate. My colleagues rarely organize their CSS files exactly like mine, and when we&#8217;re trading these files back and forth, there&#8217;s a lot of time spent familiarizing ourselves with each other&#8217;s personal style. I&#8217;m not saying that a syntax like this would completely cut out a &#8220;familiarization period&#8221;, but it would definitely reduce it by creating a rule-grouping standard.</p>
<p>I&#8217;m curious to know how you think CSS could be made more efficient and cleaner. It&#8217;s definitely a subject I want to discuss more.</p>
]]></content:encoded>
			<wfw:commentRss>http://gmurphey.com/2007/03/12/my-ideal-cascading-style-sheet-organization/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
