<?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>Oncemade &#187; Development</title>
	<atom:link href="http://oncemade.com/category/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://oncemade.com</link>
	<description>Design, Web Dev, Inspiration</description>
	<lastBuildDate>Fri, 09 Jul 2010 02:06:26 +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>Dev Notes #1 &#8211; Bookmarklet</title>
		<link>http://oncemade.com/dev-notes-1-bookmarklet/</link>
		<comments>http://oncemade.com/dev-notes-1-bookmarklet/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 05:24:21 +0000</pubDate>
		<dc:creator>Rodrigo</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Bookmarklet]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://oncemade.com/?p=867</guid>
		<description><![CDATA[I got tired of my colleague, *cough Buz, asking me for links and tools that I find and use while [...]]]></description>
			<content:encoded><![CDATA[<p>I got tired of my colleague, *cough <span class="vcard"><a href="http://pizzabytheslice.com" class="fn url" rel="friend">Buz</a></span>, asking me for links and tools that I find and use while working, so I've decided to create posts where I list these things for future reference. Enough talk lets get to it. </p>

<p>Bookmarklet is a very important piece of my development. Lately, I've been using the following:</p>

<ol class="notesList">
	<li>
		<h3><a href="http://david.dojotoolkit.org/recss.html" title="ReCSS: Reload your CSS" rel="bookmark">ReCSS</a></h3>
		<p>Super B tool, used to reload your css without refreshing the whole page. It's very useful if you want to change a website in production that you can't run locally.</p>
	</li>
	<li>
		<h3><a href="http://getfirebug.com/lite.html" title="Firebug Lite" rel="bookmark">Firebug Lite</a></h3>
		<img src="http://oncemade.com/wp-content/uploads/2009/12/firebug_lite.png" alt="Firebug Lite" />
		<p>If you develop websites in different browsers like I do (webkit nightly build), and can't live without Firebug; Firebug Lite is the way to go. It isn't as powerful as the Firebug add-on but it does a good job if you need to use the console or check for applied styles. Unfortunately, there is no way to change the css on the fly.</p>
	</li>
	<li>
		<h3><a href="http://www.sprymedia.co.uk/article/Design" title="Allan Jardine | Reflections | Design" rel="bookmark">Design</a></h3>
		<img src="http://oncemade.com/wp-content/uploads/2009/12/design_bookmarklet.png" alt="Design Bookmarklet" height="93" width="283" />
		<p>A very cool set of design tools. It includes grid, rule, unit and crosshair. A must have if you are designing in the browser.</p>
	</li>
	<li>
		<h3><a href="http://www.learningjquery.com/2006/12/jquerify-bookmarklet" title="jQuerify Bookmarklet &raquo; Learning jQuery - Tips, Techniques, Tutorials" rel="bookmark">jQuerify</a></h3>
		<p>As expected, it includes jQuery to the page. Very useful if you want to use firebug's console and jQuery selectors.</p>
	</li>
	<li>
		<h3><a href="http://slayeroffice.com/?c=/content/tools/suite.html" title="slayeroffice - web experiments gone horribly awry" rel="bookmark">Favelet Suite</a></h3>
		<p>If you are a fan of the <a href="https://addons.mozilla.org/en-US/firefox/addon/60">web developer toolbar</a> add-on for Firefox, you will love this tool.</p>
	</li>
	<li>
		<h3><a href="http://www.westciv.com/xray/" title="XRAY :: for web developers">xRay</a></h3>
		<p>It displays CSS information of a selected object.</p>
	</li>
	<li>
		<h3><a href="http://leftlogic.com/lounge/articles/microformats_bookmarklet/" title="Microformats Bookmarklet &rsaquo; Left Logic" rel="bookmark">Microformats</a></h3>
		<img src="http://oncemade.com/wp-content/uploads/2009/12/microformats.png" alt="Microformats" />
		<p>Every time I markup a page, I try to use microformats as much as possible. This bookmarklet gives you a list of vCard on the page. Unfortunately, it doesn't display any other micro data. </p>
	</li>
</ol>

<p>If I missed any other bookmarklet, feel free to leave a comment with the link to it.</p>]]></content:encoded>
			<wfw:commentRss>http://oncemade.com/dev-notes-1-bookmarklet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Adding hasJS Class When JavaScript Is Available</title>
		<link>http://oncemade.com/adding-hasjs-class-when-javascript-is-available/</link>
		<comments>http://oncemade.com/adding-hasjs-class-when-javascript-is-available/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 05:01:10 +0000</pubDate>
		<dc:creator>Rodrigo</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[DOM]]></category>
		<category><![CDATA[progressive enhancement]]></category>

		<guid isPermaLink="false">http://oncemade.com/?p=781</guid>
		<description><![CDATA[While at An Event Apart Boston, Jeremy Keith delivered the best lecture of the conference, about progressive enhancement. One slide [...]]]></description>
			<content:encoded><![CDATA[<p>While at <a href="http://www.aneventapart.com/2009/boston/" title="An Event Apart Boston 2009">An Event Apart Boston</a>, <a href="http://adactio.com/" title="Adactio: Jeremy Keith">Jeremy Keith</a> delivered the best lecture of the conference, about progressive enhancement. One slide caught my attention the most. It was about adding a class to the body if JavaScript was available. Here is his code example using jQuery:</p>
<pre><h4>Keith's Example using jQuery:</h4><code>jQuery(function($) {
$(&#x27;body&#x27;).addClass(&#x27;hasJS&#x27;);
});</code>

<h4>CSS</h4><code>.hasJS .module {
display: none;
}</code>
</pre>
<h5>Why add a class if JavaScript is enabled?</h5>
<p>Although the majority of desktop users have JavaScript enabled, mobile is one of the most used platforms to surf the web. Some mobile browsers don't support JavaScript. Keep in mind that search engines don't run JavaScript, so NEVER add important content using JavaScript.</p>
<span id="more-781"></span>
<p>My current project at work requires the content to be rendered for both enabled and disabled JavaScript browsers. I did a bit of research and found that most websites/solutions add the <em>hasJS</em> class to the body after the <abrr title="Document Object Module"><em>DOM</em></abrr> is loaded. My first thought was, if the class gets added after the <em>DOM</em> is loaded, a shift on the page will occur providing a bad user experience. Yahoo was a site I researched and they have, IMHO, the cleverest solution of them all. They add the class to the <em>HTML</em> element instead of the <em>BODY</em> element. The first script block on the page to be loaded adds the <em>hasJS</em> class without dependency on libraries. <strong>Note: Yahoo uses another class name "jsenabled"</strong>.</p>
<p class="aligncenter"><img src="http://oncemade.com/wp-content/uploads/2009/08/yahoo_firebug.png" alt="Yahoo Firebug" /></p>
<p>You might be asking why add the class to the <em>HTML</em> element? I think it makes more sense because the <em>BODY</em> is the beginning of the content. This means that everything after the body is "visible" to the user and blocking the content with a script tag isn't a good optimization practice. Here is the code to add the <em>hasJS</em>  class to the body:</p>
<pre><h4>hasJS Script Block</h4><code>&lt;script type=&quot;text/javascript&quot;&gt;
  document.getElementsByTagName(&#x27;html&#x27;)[0].className = &#x27;hasJS&#x27;;
&lt;/script&gt;
</code></pre>
<p class="note">NOTE: If you already have more classes on the HTML element, use <strong>  document.getElementsByTagName(&#x27;html&#x27;)[0].className += &#x27; hasJS&#x27;;</strong> instead.</p>

<a target="_blank" class="demoBtn" href="http://examples.oncemade.com/hasjs.html">Demo</a>

<div class="browserSupport">
<h4>Browser Support</h4>
<ul class="browserComp clearfix">
   <li class="firefoxComp"><span>Firefox</span></li>
   <li class="safariComp"><span>Safari</span></li>
   <li class="chromeComp"><span>Chrome</span></li>
   <li class="operaComp"><span>Opera</span></li>
   <li class="ie7Comp"><span>Internet Explore 7 &amp; 8</span></li>
<li class="ie6Comp"><span>Internet Explore 6</span></li>
</ul>
</div>]]></content:encoded>
			<wfw:commentRss>http://oncemade.com/adding-hasjs-class-when-javascript-is-available/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Renaming and Extending Easy-Clearing, AKA Clearfix</title>
		<link>http://oncemade.com/renaming-and-extending-easy-clearing-aka-clearfix/</link>
		<comments>http://oncemade.com/renaming-and-extending-easy-clearing-aka-clearfix/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 04:25:28 +0000</pubDate>
		<dc:creator>Rodrigo</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[clearfix]]></category>
		<category><![CDATA[easy-clearing]]></category>
		<category><![CDATA[group]]></category>
		<category><![CDATA[Markup]]></category>

		<guid isPermaLink="false">http://oncemade.com/?p=642</guid>
		<description><![CDATA[When positioniseverything.net posted an article about clearfix technique, it didn&#x27;t take much for web developers and designers to start adopting [...]]]></description>
			<content:encoded><![CDATA[<p>When <a href="http://positioniseverything.net">positioniseverything.net</a> posted an article about <a href="http://www.positioniseverything.net/easyclearing.html"><em>clearfix</em></a> technique, it didn&#x27;t take much for web developers and designers to start adopting it. Lately, <a href="http://simplebits.com">Dan Cederholm</a> has been talking about renaming the class <em>clearfix</em> to <em>group</em>, which semantically speaking makes a lot more sense. So, let&#x27;s go ahead and rename the class.</p>
<pre><h4>New Easy-Clearing</h4><code>.group:after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}</code></pre>

<p>Using <a href="http://www.quirksmode.org/css/condcom.html">conditional comments</a>, let&#x27;s add the proper code to handle <abbr title="Internet Explore 6">IE 6</abbr> and <abbr title="Internet Explore 7">IE 7</abbr> (<abbr title="Internet Explore 8">IE8</abbr> supports the :after pseudo-elements; no extra code is necessary).</p>
<span id="more-642"></span>
<pre><h4>New Easy-Clearing for IE</h4><code>/* IE6 */
* html .group { height: 1%; }

/*IE7 */
.group { min-height: 1px; }</code></pre>
<p>I&#x27;ve been using the <em>group</em> class on my latest projects and I&#x27;d like to share a small tip, when clearing list items, with you.</p>
<p>Normally, we&#x27;d have the <em>group</em> class on every <em>LI</em>, like so:</p>
<pre><h4>Clearing List Items the Old Way</h4><code>&lt;ul class=&quot;comments&quot;&gt;
  &lt;li class=&quot;group&quot;&gt;
    &lt;img src=&quot;carla.jpg&quot; alt=&quot;Carla&amp;#x27;s Picture&quot; /&gt;
    &lt;p&gt;Tiny and I miss you&lt;/p&gt;
  &lt;/li&gt;
  &lt;li class=&quot;group&quot;&gt;
    &lt;img src=&quot;steven.jpg&quot; alt=&quot;Steven&amp;#x27;s Picture&quot; /&gt;
    &lt;p&gt;I need a favor! It will take you 5 seconds.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li class=&quot;group&quot;&gt;
    &lt;img src=&quot;buzz.jpg&quot; alt=&quot;Buzz&amp;#x27;s Picture&quot; /&gt;
    &lt;p&gt;I speak gibberish&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;</code></pre>


<!--more-->
<p>Although the markup doesn&#x27;t look very bad, we can make things better by introducing a new class (<em>groupList</em>) and adding it to the <em>UL</em>.</p>
<pre><h4>Clearing List Items the New Way</h4><code>&lt;ul class=&quot;comments groupList&quot;&gt;
  &lt;li&gt;
    &lt;img src=&quot;carla.jpg&quot; alt=&quot;Carla&amp;#x27;s Picture&quot; /&gt;
    &lt;p&gt;Tiny and I miss you&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;img src=&quot;steven.jpg&quot; alt=&quot;Steven&amp;#x27;s Picture&quot; /&gt;
    &lt;p&gt;I need a favor! It will take you 5 seconds.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;img src=&quot;buzz.jpg&quot; alt=&quot;Buzz&amp;#x27;s Picture&quot; /&gt;
    &lt;p&gt;I speak gibberish&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;</code></pre>

<p>Phew, the markup looks much cleaner! Now that we&#x27;ve fixed it, let&#x27;s add the <em>.groupList > li</em> selector to the existing <em>.group</em> styles.</p>
<pre><h4>Extending .group</h4><code>.groupList > li,
.group:after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}</code></pre>

<p>Wait! How about the beloved <abbr title="Internet Explore">IE</abbr>?

<pre><h4>Extending .group IE</h4><code>/* IE6 */
* html .groupList li,
* html .group { height: 1%; }
* html .groupList li li { height: auto; } /* Resets nested LIs */

/*IE7 */
.group > li,
.group { min-height: 1px; }</code></pre>


<p>
<h4>Browser Support</h4>
<ul class  = "browserComp clearfix">
<li class = "firefoxComp"><span>Firefox</span></li>
<li class = "safariComp"><span>Safari</span></li>
<li class = "chromeComp"><span>Chrome</span></li>
<li class = "operaComp"><span>Opera</span></li>
<li class = "ie7Comp"><span>Internet Explore 7 &#038; 8</span></li>
<li class = "ie6Comp"><span>Internet Explore 6</span></li>
</ul>
</p>]]></content:encoded>
			<wfw:commentRss>http://oncemade.com/renaming-and-extending-easy-clearing-aka-clearfix/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>The Right Way to Declare RGBa Colors</title>
		<link>http://oncemade.com/the-right-way-to-declare-rgba-colors/</link>
		<comments>http://oncemade.com/the-right-way-to-declare-rgba-colors/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 06:55:34 +0000</pubDate>
		<dc:creator>Rodrigo</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[css 3]]></category>
		<category><![CDATA[progressive enrichment]]></category>
		<category><![CDATA[rgba]]></category>

		<guid isPermaLink="false">http://oncemade.com/?p=625</guid>
		<description><![CDATA[The most efficient way to declare RGBa values and don't mess up the CSS. ]]></description>
			<content:encoded><![CDATA[<p>One of the best progressive enrichment that I use on my projects is to set colors as <abbr title="Red, Green, Blue, and Alpha"><em>RGBa</em></abbr> (red, green, blue, alpha) values. As I write this, <abbr title="Red, Green, Blue, and Alpha"><em>RGBa</em></abbr> is current supported in firefox 3.0.5+, Safari 2+, Chrome 1+, and Opera 10+.</p>  <p>The most efficient way that I found to declare <abbr title="Red, Green, Blue, and Alpha"><em>RGBa</em></abbr> values is to separate the flat colors into code block, and keeping <abbr title="Red, Green, Blue, and Alpha"><em>RGBa</em></abbr> with the other styles. Like in this example:</p>  <pre><h4>CSS</h4><code>/* NON RGBa BROWSERS
  ------------------------------------------------------ */
#wrap { background-color: #000; }
#footer,
#header { background-color: #ccc; }
.section { color: #fff; }

/* HEADER
  ------------------------------------------------------ */
#header { background-color: rgba(204,204,204,.8); }
#header ul { float: right; }
#header li {
  float: left;
  margin-left: 1em;
}
#header li:first-child { margin-left: 0; }

/* WRAP
  ------------------------------------------------------ */
#wrap {
  width: 960px;
  margin: 0 auto;
  background-color: (0,0,0,.7);
}
.section {
  padding: 1em;
  color: rgba(255,255,255,.9);
}
</code></pre>
<p>I always keep the flat colors separated because they can be easily removed when the other browsers start supporting <em>RGBa</em>. Why didn't I declare the <em>HEX</em> colors on the same line as the <em>RGBa</em>? Simple! <em>IE</em> doesn't support it; no color will be rendered at all. <strong>Note: Please be aware that the <abbr title="Red, Green, Blue, and Alpha"><em>RGBa</em></abbr> colors have to be the last ones declared.</strong></p>
<span id="more-625"></span>
<pre><h4>DOESN'T WORK IN IE</h4><code>/* HEADER
  ------------------------------------------------------ */
#header {
  background-color: #ccc;
  background-color: rgba(204,204,204,.8);
}</code></pre>
<p>Last but not least, when I use border's shorthand syntax, I declare it with the flat colors first, and then <em>border-color</em> afterward. See the example bellow for better understanding.</p>
<pre><h4>CSS</h4><code>/* NON RGBa BROWSERS
  ------------------------------------------------------ */
#header { border: 1px solid #000; }

/* HEADER
  ------------------------------------------------------ */
#header { border-color: rgba(0,0,0,.7); }
</code></pre>
<div>
Just a few examples of website using <abbr title="Red, Green, Blue, and Alpha"><em>RGBa</em></abbr> colors:
<ul>  <li><a href="http://forabeautifulweb.com/" title="Web design and development training workshops for web designers and developers | For A Beautiful Web">For A Beautiful Web</a> - Crafted by <a href="http://www.stuffandnonsense.co.uk/" title="Stuff and Nonsense | Creative web site design specialists based in North Wales, UK">Andy Clarke</a></li>  <li><a href="http://tweetcc.com/" title="tweetCC | Publish &#038; license tweets with Creative Commons">TweetCC</a> - Crafted by <a href="http://www.stuffandnonsense.co.uk/" title="Stuff and Nonsense | Creative web site design specialists based in North Wales, UK">Andy Clarke</a></li>  <li><a href="http://designertweet.com/" title="Designer Tweet">Designer Tweet</a> - My latest case study website.</li>  <li><a href="http://simplebits.com/" title="SimpleBits">SimpleBits - Crafted by Dan Cederholm</a></li>
</ul>
</div>
<div  class="update">
<h4>Update</h4>
For more information and details about <em>RGBa</em>, please visit the following:
<ul>
<li><a href="http://www.timkadlec.com/post.asp?q=61">Not As Clear As It Seems: CSS3 Opacity and RGBA</a></li>
<li><a href="http://forabeautifulweb.com/blog/about/is_css3_rgba_ready_to_rock/">Is CSS3 RGBa ready to rock? </a></li>
</ul>
</div>
<h4>Browser Support</h4>
<ul class="browserComp clearfix">  <li class="firefoxComp"><span>Firefox 3.0+</span></li>  <li class="safariComp"><span>Safari 3.0+</span></li>  <li class="chromeComp"><span>Chrome 1+</span></li>  <li class="operaComp"><span>Opera 10+</span></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://oncemade.com/the-right-way-to-declare-rgba-colors/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
