<?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>GirlieMac! Blog &#187; Firefox</title>
	<atom:link href="http://girliemac.com/blog/category/firefox/feed/" rel="self" type="application/rss+xml" />
	<link>http://girliemac.com/blog</link>
	<description>Web and Mobile Development</description>
	<lastBuildDate>Thu, 29 Mar 2012 22:56:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Quick Demo: CSS3 Fancy Avatar</title>
		<link>http://girliemac.com/blog/2011/02/17/quick-demo-css3-fancy-avatar/</link>
		<comments>http://girliemac.com/blog/2011/02/17/quick-demo-css3-fancy-avatar/#comments</comments>
		<pubDate>Fri, 18 Feb 2011 06:27:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Dev]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Opera]]></category>
		<category><![CDATA[Sandbox]]></category>
		<category><![CDATA[WebKit]]></category>
		<category><![CDATA[css3]]></category>

		<guid isPermaLink="false">http://girliemac.com/blog/?p=225</guid>
		<description><![CDATA[Now I started using jsfiddle for code snippets so I can show the code AND the actual results on browsers. This fancy avatar frame is created pretty [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_jade" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fgirliemac.com%252Fblog%252F2011%252F02%252F17%252Fquick-demo-css3-fancy-avatar%252F%22%2C%20%22shorturl%22%3A%20%22http%3A%2F%2Fis.gd%2Fvkqh04%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Quick%20Demo%3A%20CSS3%20Fancy%20Avatar%20%23css3%22%20%7D);"></div>
<p><img src="http://girliemac.com/blog/wp-content/uploads/2011/02/css3-avatar.png" alt="css3-avatar" title="css3-avatar" width="413" height="106" class="aligncenter size-full wp-image-227" /></p>
<p>Now I started using jsfiddle for code snippets so I can show the code AND the actual results on browsers.</p>
<p><iframe style="width: 100%; height: 260px" src="http://jsfiddle.net/girlie_mac/cQ99J/embedded/css,html,result"></iframe></p>
<p>This fancy avatar frame is created pretty easily by using CSS box-shadow inset values.<br />
Basically, what I did is that giving a div container (with an avatar picture as a background image) an inset shadow to bottom/right, and glare to top/left. Oh and added border-radius for the rounded corners.</p>
<p>This works without the vendor-specific extensions on latest Firefox, Chrome, Webkit Nightly, and Opera. Safari 5 still requires <code>-webkit</code> extension to make the box-shadow work.</p>
<p>Really easy and practical!</p>

]]></content:encoded>
			<wfw:commentRss>http://girliemac.com/blog/2011/02/17/quick-demo-css3-fancy-avatar/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Simulating MacOS Dock-like menu with CSS3</title>
		<link>http://girliemac.com/blog/2010/06/02/simulating-macos-dock-like-menu-with-css3/</link>
		<comments>http://girliemac.com/blog/2010/06/02/simulating-macos-dock-like-menu-with-css3/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 06:14:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Dev]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Sandbox]]></category>
		<category><![CDATA[WebKit]]></category>

		<guid isPermaLink="false">http://girliemac.com/blog/?p=173</guid>
		<description><![CDATA[Since my original &#8220;CSS Aqua button&#8221; written last year, I have seen more and more fan CSS3 UI mimic of MacOS components around! I think I have [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_jade" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fgirliemac.com%252Fblog%252F2010%252F06%252F02%252Fsimulating-macos-dock-like-menu-with-css3%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Simulating%20MacOS%20Dock-like%20menu%20with%20CSS3%22%20%7D);"></div>
<p><img src="http://girliemac.com/blog/wp-content/images/dock-screenshot.jpg" alt="css3 Dock screenshot"/></p>
<p>
Since my original &#8220;CSS Aqua button&#8221; written last year, I have seen more and more fan CSS3 UI mimic of MacOS components around! I think I have seen some Mac docks too, but as I remember they all use jQuery.<br />
So I was thinking about making one only with CSS.
</p>
<p>Initially I thought it was easy &#8211; let&#8217;s make an hovered icon larger like 200%, and make siblings in 150% of the original size using CSS sibling selector, and done! A piece of cake, huh? &#8211; Then I realized I made a mistake. The adjacent-sibling selector apply to an element which is immediately <em>after</em> the element in markup, not both before and after.<br />
Oh well, so I needed to write a minimal JavaScript (so you don&#8217;t need to import a whole JS library) to add a class name to the element comes before the hovered object.</p>
<p>Anyway, here&#8217;s the <a href="http://girliemac.com/sandbox/dock.html" target="_blank">live-demo!</a> (Try it with the the latest Webkit Nightly or Safari 4) for the best experience!), and I&#8217;ll show you how I did-
</p>
<h3>Markup (Simplified)</h3>
<p>Let&#8217;s create menu items as a list.</p>
<pre class="html">
<code>
&lt;div id="dock-container"&gt;
  &lt;div id="dock"&gt;
  &lt;ul&gt;
    &lt;li&gt;&lt;a href="http://android.com"&gt;&lt;img src="images/dock-icons/android.png"/>&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="http://palm.com"&gt;&lt;img src="images/dock-icons/palm.png"/&gt;&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;...
  &lt;/ul&gt;
  &lt;div class="base"&gt;&lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;
</code>
</pre>
<p>The list should be displayed horizontally by setting the style to <code>#dock li {display:inline-block}</code>. Please see the source code from the demo for the details.
</p>
<h3>Magnify the icon with CSS transform</h3>
<p>
<img style="border:1px solid #666;" src="http://girliemac.com/blog/wp-content/images/dock-tutorial.png" align="right"/>First, let&#8217;s define the dock icon animation with css transition.<br />
The origin of the transform has to set to bottom, so the icon doesn&#8217;t scale from the middle of the icon. (Diagram #1).</p>
<p>I used only a webkit extension for this example but you can use <code>-moz</code> and <code>-o</code> extensions, for Firefox and Opera respectively.</p>
<p>Then, set the hover state &#8211; use css transform to scale the icon image up to 200%. Also you need to add some margin otherwise the enlarged icon overlaps with neighboring icons!
</p>
<pre class="css">
<code>
#dock li img {
  width: 64px;
  height: 64px;
  -webkit-box-reflect: below 2px
		    -webkit-gradient(linear, left top, left bottom, from(transparent),
		    color-stop(0.7, transparent), to(rgba(255,255,255,.5))); /* reflection is supported by webkit only */
  -webkit-transition: all 0.3s;
  -webkit-transform-origin: 50% 100%;
}
#dock li:hover img {
  -webkit-transform: scale(2);
  margin: 0 2em;
}
</code>
</pre>
<h3>Magnify adjacent icons</h3>
<pre class="css">
<code>
#dock li:hover + li img,
#dock li.prev img {
  -webkit-transform: scale(1.5);
  margin: 0 1.5em;
}
</code>
</pre>
<p>To magnify the icon at the right hand side of the hovered icon (Diagram #2), all you need to do is define the scale with using a CSS adjacent-sibling selector, E + F (an F element immediately preceded by an E element).</p>
<p>For the icon at the left (Diagram #3), ss I mentioned earlier, there is no css to get the <em>previous</em> sibling, so I need to rely on JavaScript.<br />
I used the DOM node interface, <code>previousElementSibling</code> to access the sibling node. <code>previousElementSibling</code> should be supported by Webkit, Opera and Firefox.</p>
<p>Basically what I am doing here is that get the mouseovered object (should be an img element), find the parent li element (the immediate parent should be an a-alement, not a li, so get a&#8217;s parent! Check the HTML code again!), find the previous sibling li, then give a classname &#8220;prev&#8221; so I can apply the style.<br />
Don&#8217;t forget to remove the class name as mouseout, otherwise the icon stays large.
</p>
<pre class="js">
<code>
function addPrevClass (e) {
  var target = e.target;
    if(target.getAttribute('src')) { // check if it is img
      var li = target.parentNode.parentNode;
      var prevLi = li.previousElementSibling;
      if(prevLi) {
        prevLi.className = 'prev';
      }

      target.addEventListener('mouseout', function() {
        prevLi.removeAttribute('class');
      }, false);
  }
}
if (window.addEventListener) {
  document.getElementById("dock").addEventListener('mouseover', addPrevClass, false);
}
</code>
</pre>
<p>For more details with the fancy CSS3 effects (e.g. the gradient and 3D-transform to create the &#8220;base&#8221; of the dock), please see the source code of the <a href="http://girliemac.com/sandbox/dock.html" target="_blank">demo page!</a></p>

]]></content:encoded>
			<wfw:commentRss>http://girliemac.com/blog/2010/06/02/simulating-macos-dock-like-menu-with-css3/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>CSS3 Box-Shadow with Inset Values &#8211; The Aqua Button ReReVisited!</title>
		<link>http://girliemac.com/blog/2010/02/04/css3-box-shadow-with-inset-values-the-aqua-button-rerevisited/</link>
		<comments>http://girliemac.com/blog/2010/02/04/css3-box-shadow-with-inset-values-the-aqua-button-rerevisited/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 05:22:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Dev]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Opera]]></category>
		<category><![CDATA[Sandbox]]></category>
		<category><![CDATA[WebKit]]></category>

		<guid isPermaLink="false">http://girliemac.com/blog/?p=151</guid>
		<description><![CDATA[This is my third article on CSS3 No Image Aqua Buttons. The previous articles include: CSS3 Gradients: No Image Aqua Button CSS3 Aqua Button – Revisited for [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_jade" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fgirliemac.com%252Fblog%252F2010%252F02%252F04%252Fcss3-box-shadow-with-inset-values-the-aqua-button-rerevisited%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22CSS3%20Box-Shadow%20with%20Inset%20Values%20-%20The%20Aqua%20Button%20ReReVisited%21%20%22%20%7D);"></div>
<p><a href="http://girliemac.com/sandbox/button.html"><img alt="Screenshot ot CSS Aqua buttons" src="http://girliemac.com/blog/wp-content/images/screenshot_css3button_2.png" title="Screenshot" width="224" height="135" align="right" /></a></p>
<p>This is my third article on CSS3 No Image Aqua Buttons. The previous articles include:</p>
<ol>
<li><a href="http://girliemac.com/blog/2009/04/30/css3-gradients-no-image-aqua-button/" target="_blank">CSS3 Gradients: No Image Aqua Button</a></li>
<li><a href="http://girliemac.com/blog/2010/01/28/css3-aqua-button-revisited-for-firefox-3-6/" target="_blank">CSS3 Aqua Button – Revisited for Firefox 3.6</a></li>
<li>And this one &#8211; Read on!</li>
</ol>
<p>Since Smashing Magazine has selected the original Aqua button demo for their article, <a href="http://www.smashingmagazine.com/2010/02/01/50-brilliant-css3-javascript-coding-techniques/" target="_blank">&#8220;50 Brilliant CSS3/JavaScript Coding Techniques&#8221;</a>, I have had so much more visitors to my blog. </p>
<p>This resulted quality developers leave useful comments and tips for me &#8211; thank you, <a href="http://girliemac.com/blog/2010/01/28/css3-aqua-button-revisited-for-firefox-3-6/#comment-1411" target="_blank">Zoley</a> for suggesting using <code>box-shadow</code> with the <em>inset</em> value, and a big thank you to <a href="http://girliemac.com/blog/2010/01/28/css3-aqua-button-revisited-for-firefox-3-6/#comment-1428" target="_blank">Jim</a> for actually re-writing the Aqua button with the technique!!!</p>
<p>So, now the CSS3 Aqua button is revised with semantic markup (no more &#8220;glare&#8221; div! Yes, I complained it by myself before!) and shorter CSS.<br />
And this time, no CSS gradients! &#8211; use CSS <code>box-shadow</code> property with multiple <em>inset</em> values to draw layers of inner-shadows to create the visual effect.</p>
<h3>Syntax</h3>
<p><code>(-moz-)box-shadow:  none | &lt;shadow&gt; [,&lt;shadow&gt;]*    where &lt;shadow&gt; is defined as:  inset? &#038;&#038; [ &lt;offset-x&gt; &lt;offset-y&gt; &lt;blur-radius&gt;? &lt;spread-radius&gt;? &#038;&#038; &lt;color&gt;? ]<br />
</code></p>
<h3>Values</h3>
<p>from <a href="https://developer.mozilla.org/en/CSS/-moz-box-shadow" target="_blank">Mozilla Developer Center</a>:</p>
<blockquote><p>
<strong>inset (optional)</strong><br />
If not specified (default), the shadow is assumed to be a drop shadow (as if the box were raised above the content).<br />
The presence of the <code>inset</code> keyword changes the shadow to one inside the frame (as if the content was depressed inside the box). Inset shadows are drawn above background, but below border and content.<br/><br />
<strong>&lt;color&gt; (optional)</strong><br />
If not specified, the color depends on the browser. In Gecko (Firefox), the value of the <code>color</code> property is used. Safari&#8217;s shadow is transparent and therefore useless if &lt;color&gt; is omitted.<br/><br />
<strong>&lt;offset-x&gt; &lt;offset-y&gt; (required)</strong><br />
This are two &lt;length&gt; values to set the shadow offset. &lt;offset-x&gt; specifies the horizontal distance. Negative values place the shadow to the left of the element. &lt;offset-y&gt; specifies the vertical distance. Negative values place the shadow above the element.<br />
If both values are 0, the shadow is placed behind the element (and may generate a blur effect if &lt;blur-radius&gt; and/or &lt;spread-radius&gt; is set).<br/><br />
<strong>&lt;blur-radius&gt; (optional)</strong><br />
This is a third &lt;length&gt; value. The higher this value, the bigger the blur, so the shadow becomes bigger and lighter. If not specified, it will be 0.<br/><br />
<strong>&lt;spread-radius&gt; (optional)</strong><br />
This is a fourth &lt;length&gt; value. Positive values will cause the shadow to expand and grow bigger, negative values will cause the shadow to shrink. If not specified, it will be 0 (the shadow will be the same size as the element).<br />
<strong></strong><br/>
</p></blockquote>
<p>Note &#8211; The <code>box-shadow</code> property has been removed from <a href="http://www.w3.org/TR/css3-background/#the-box-shadow" target="_blank">W3C CSS3 Background</a> Candidate recommendation document.</p>
<h3>The Entire Code!</h3>
<p>Use <code>-moz</code> and <code>-webkit</code> prefix for <code>box-shodow</code> to support these browsers. For Opera, there&#8217;s no need to add <code>-o</code>.</p>
<p>Also, notice there are three <code>inset</code> values are defined for detailed visual effects!</p>
<pre class="html">
<code>
&lt;input type="button" class="new-aqua" value="Login"/&gt;
</code>
</pre>
<pre class="css">
<code>
input[type=button].new-aqua {
  width: 155px;
  height: 35px;
  background: #cde;
  border: 2px solid #ccc;
  border-color: #8ba2c1 #5890bf #4f93ca #768fa5;
  font: 600 16px/1 Lucida Sans, Verdana, sans-serif;
  color: #fff;
  text-shadow: rgba(10, 10, 10, 0.5) 1px 2px 2px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  border-radius: 16px; -moz-border-radius: 16px; -webkit-border-radius: 16px;
  box-shadow: 0 10px 16px rgba(66, 140, 240, 0.5), inset 0 -8px 12px 0 #6bf, inset 0 -8px 0 8px #48c, inset 0 -35px 15px -10px #7ad;
  -moz-box-shadow: 0 10px 16px rgba(66, 140, 240, 0.5), inset 0 -8px 12px 0 #6bf, inset 0 -8px 0 8px #48c, inset 0 -35px 15px -10px #7ad;
  -webkit-box-shadow: 0 10px 16px rgba(66, 140, 240, 0.5), inset 0 -8px 12px 0 #6bf, inset 0 -8px 0 8px #48c, inset 0 -35px 15px -10px #7ad;
}
.new-aqua:hover {
  text-shadow: rgb(255, 255, 255) 0px 0px 5px;
}
</code>
</pre>
<p><br/></p>
<p>View the <a href="http://girliemac.com/sandbox/button.html" target="_blank">live demo page</a>! This new aqua button works on FF 3.6, Webkit 4 (the current Safari 4 doesn&#8217;t support inset box-shadow yet), Chrome 4 and Opera 10. (But fails on 10.1 on Mac).</p>
<p style="color:#777"><em>* Edited on Feb.5 &#8211; Opera 10.1 fail and Safari4 (I noticed this works only on Webkit Nightly after published this!)</em></p>
<p>And again, a huge thanks to <a href="www.coroflot.com/trickitty" target="_blank">Jim Green</a> for the revised CSS!</p>
<h3>References</h3>
<ul style="margin-top:1em">
<li><a href="http://developer.apple.com/safari/library/documentation/AppleApplications/Reference/SafariCSSRef/Articles/StandardCSSProperties.html" target="_blank">Safari CSS Reference</a> by Apple Safari Dev Center</li>
<li><a href="https://developer.mozilla.org/en/CSS/-moz-box-shadow" target="_blank">-moz-box-shadow</a> by Mozilla Developer Center</li>
<li><a href="http://dev.opera.com/articles/view/css3-border-background-boxshadow/" target="_blank">CSS3 borders, backgrounds and box-shadows</a> by Dev.Opera</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://girliemac.com/blog/2010/02/04/css3-box-shadow-with-inset-values-the-aqua-button-rerevisited/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
		<item>
		<title>CSS3 Aqua Button &#8211; Revisited for Firefox 3.6</title>
		<link>http://girliemac.com/blog/2010/01/28/css3-aqua-button-revisited-for-firefox-3-6/</link>
		<comments>http://girliemac.com/blog/2010/01/28/css3-aqua-button-revisited-for-firefox-3-6/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 21:17:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Dev]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Sandbox]]></category>

		<guid isPermaLink="false">http://girliemac.com/blog/?p=129</guid>
		<description><![CDATA[This is an update for the Aqua button tutorial. This update will add a support for Firefox 3.6. If you haven&#8217;t seen the article, please go read [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_jade" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fgirliemac.com%252Fblog%252F2010%252F01%252F28%252Fcss3-aqua-button-revisited-for-firefox-3-6%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22CSS3%20Aqua%20Button%20-%20Revisited%20for%20Firefox%203.6%22%20%7D);"></div>
<p>This is an update for the <a href="http://girliemac.com/blog/2009/04/30/css3-gradients-no-image-aqua-button/">Aqua button tutorial</a>. This update will add a support for Firefox 3.6. If you haven&#8217;t seen the article, please go read it before proceeding here.</p>
<p><br/></p>
<p>
<a href="http://girliemac.com/sandbox/button.html"><img alt="Screenshot ot CSS Aqua buttons" src="http://girliemac.com/blog/wp-content/images/screenshot_css3button_new.png" title="Screenshot" width="224" height="135" align="right" /></a></p>
<p>On the end of November last year, <a href="http://hacks.mozilla.org/2009/11/css-gradients-firefox-36/" target="_blank">Mozilla Hacks announced</a> the support for CSS gradient in a background on upcoming Firefox 3.6 (which final version has just released recently). </p>
<p>As already been supported on WebKit, FF does support both linear and radial gradient, however, Mozilla has implemented differently &#8211;<br />
Most noticeably, Mozilla separate linear and radial gradient as <code>-moz-linear-gradient</code> and <code>-moz-radial-gradient</code>, while on WebKit, the syntax goes <code>-webkit-gradient</code> and you specify linear or radial.</p>
<p>Also the specification of each value is different too.<br />
If you want a linear gradient starting from red on top to ending at bottom in white, you need to define &#8211; </p>
<p>WebKit:<br />
<code>background: -webkit-gradient(linear, left top, right bottom, from(red), to(white)))</code><br />
Firefox:<br />
<code>background: -moz-linear-gradient(top, red, white);<br />
</code>
</p>
<h3>The Aqua Button Redefined</h3>
<p>Let&#8217;s re-create the aqua button, by adding <code>-moz</code> prefixed gradient definitions:</p>
<p>The button:</p>
<pre class="css">
<code>
.aqua{
  background-color: rgba(60, 132, 198, 0.8);
  border-top-color: #8ba2c1;
  border-right-color: #5890bf;
  border-bottom-color: #4f93ca;
  border-left-color: #768fa5;
  -webkit-box-shadow: rgba(66, 140, 240, 0.5) 0px 10px 16px;
  -moz-box-shadow: rgba(66, 140, 240, 0.5) 0px 10px 16px;
  background-image: -webkit-gradient(linear, 0% 0%, 0% 90%, from(rgba(28, 91, 155, 0.8)), to(rgba(108, 191, 255, .9)));
/* for FF 3.6 */
  background-image: -moz-linear-gradient(rgba(28, 91, 155, 0.8) 0%, rgba(108, 191, 255, .9) 90%);
}
</code>
</pre>
<p>and the glare:</p>
<pre class="css">
<code>
.button .glare {
  position: absolute;
  top: 0;
  left: 5px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  height: 1px;
  width: 142px;
  padding: 8px 0;
  background-color: rgba(255, 255, 255, 0.25);
  background-image: -webkit-gradient(linear, 0% 0%, 0% 95%, from(rgba(255, 255, 255, 0.7)), to(rgba(255, 255, 255, 0)));
  /* for FF 3.6 */
  background-image: -moz-linear-gradient(rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 95%);
}
</code>
</pre>
<p>This is <a href="http://girliemac.com/sandbox/button.html" target="_blank">the actual html page</a>. Open it on Firefox 3.6 and see!</p>
<h3>More Info on Mozilla CSS Gradients</h3>
<ul style="margin-top:1em">
<li><a href="http://hacks.mozilla.org/2009/11/css-gradients-firefox-36/" target="_blank">CSS gradients in Firefox 3.6</a> by HACKS.MOZILLA.ORG</li>
<li><a href="https://developer.mozilla.org/index.php?title=en/CSS/-moz-linear-gradient" target="_blank">-moz-linear-gradient</a> by Mozilla Developer Center</li>
<li><a href="https://developer.mozilla.org/index.php?title=en/CSS/-moz-radial-gradient" target="_blank">-moz-radial-gradient</a> by Mozilla Developer Center</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://girliemac.com/blog/2010/01/28/css3-aqua-button-revisited-for-firefox-3-6/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>Classification of Mobile Browsers</title>
		<link>http://girliemac.com/blog/2009/09/22/classification-of-mobile-browsers/</link>
		<comments>http://girliemac.com/blog/2009/09/22/classification-of-mobile-browsers/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 03:00:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Nokia]]></category>
		<category><![CDATA[Opera]]></category>
		<category><![CDATA[Palm]]></category>
		<category><![CDATA[WAP]]></category>
		<category><![CDATA[WebKit]]></category>
		<category><![CDATA[WinMo]]></category>

		<guid isPermaLink="false">http://girliemac.com/blog/?p=93</guid>
		<description><![CDATA[Today, I am not going to post some CSS3 tricks on Webkit, or stuff like that. Instead, I post a list mobile browsers, since I am often [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_jade" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fgirliemac.com%252Fblog%252F2009%252F09%252F22%252Fclassification-of-mobile-browsers%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Classification%20of%20Mobile%20Browsers%20%22%20%7D);"></div>
<p>Today, I am not going to post some CSS3 tricks on Webkit, or stuff like that. Instead, I post a list mobile browsers, since I am often asked about mobile / WAP browsers by engineers, product managers, and mobile-curious or mobile-newbie people.
<p>I gathered 30+ major browsers I have worked with (plus a few I have never even seen), and categorize by the markup that browsers can render &#8211; WML, CHTML, XHTML-MP, and HTML4.</p>
<p>So, here you go. If you find some mistakes, let me know!</p>
<style type="text/css">
			#mobile-browsers table {width: 500px; margin-bottom: 1em; border-right: 1px solid #999;border-bottom: 1px solid #999;}
			#mobile-browsers table tr td,
			#mobile-browsers table tr th {margin: 0; padding: 3px; border-left: 1px solid #999;}
			#mobile-browsers table tr.first td {border-top: 1px solid #999;}
		</style>
<div id="mobile-browsers">
<table>
<tr style="background-color:#ebb06a;">
<th colspan="2">WML Browsers (WAP 1.x)</th>
</tr>
<tr>
<td width="40%">Openwave earliy browsers 4.x </td>
<td>&nbsp;</td>
</tr>
<tr class="first">
<td>Early Nokia browser</td>
<td>&nbsp;</td>
</tr>
<tr class="first">
<td>Early Obigo browser</td>
<td>&nbsp;</td>
</tr>
</table>
<table>
<tr style="background-color:#bbda78;">
<th colspan="2">CHTML Browsers (Common in Japan)</th>
</tr>
<tr>
<td width="40%" rowspan="2">CHTML browsers</td>
<td>Compact-HTML browsers</td>
</tr>
<tr>
<td>Compact NetFront</td>
</tr>
<tr class="first">
<td>i-mode browsers (CHTML / XHTML) </td>
<td>NTT Docomo</td>
</tr>
</table>
<table>
<tr style="background-color:#f2a1d3">
<th colspan="2">XHTML Browsers (WAP 2.x &#8211; XHTML-MP / WML)</th>
</tr>
<tr>
<td rowspan="2" width="40%">WebKit</td>
<td>Nokia S40</td>
</tr>
<tr>
<td>Nokia S60 &#8211; earlier versions, or &#8220;Services&#8221; browser</td>
</tr>
<tr class="first">
<td rowspan="2">NetFront by Access</td>
<td>Palm Blazer 3.x -</td>
</tr>
<tr>
<td>Sony Ericsson WAP browser</td>
</tr>
<tr class="first">
<td>Blazer by Handspring</td>
<td>original browsers before accured by Palm</td>
</tr>
<tr class="first">
<td rowspan="5">Openwave 6.x</td>
<td>Siemens</td>
</tr>
<tr>
<td>Sharp</td>
</tr>
<tr>
<td>Sanyo</td>
</tr>
<tr>
<td>Motorola</td>
</tr>
<tr>
<td>Toshiba</td>
</tr>
<tr class="first">
<td>Blackberry by RIM</td>
<td>Blackberry browser- earlier version ~4.3? (<a href="http://docs.blackberry.com/en/developers/subcategories/?userType=21&#038;category=BlackBerry+Browser" target="_blank">*</a>)</td>
</tr>
<tr class="first">
<td>Obigo by Teleca</td>
<td></td>
</tr>
<tr class="first">
<td>Polaris by InfraWare</td>
<td></td>
</tr>
<tr class="first">
<td>Helio</td>
<td></td>
</tr>
<tr class="first">
<td>Motorola MIB</td>
<td></td>
</tr>
</table>
<table>
<tr style="background-color:#91e0f1;">
<th colspan="2">HTML Browsers</th>
</tr>
<tr>
<td width="40%" rowspan="7">WebKit</td>
<td>Nokia S60 3rd gen., &#8220;Web&#8221; Mini-map browser</td>
</tr>
<tr>
<td>Apple Mobile Safari</td>
</tr>
<tr>
<td>Google Android </td>
</tr>
<tr>
<td>Palm WebOS </td>
</tr>
<tr>
<td>Iris, by Torch Mobile (now RIM)</td>
</tr>
<tr>
<td>Bitstream Bolt (Proxy)</td>
</tr>
<tr>
<td>MOTOMAGX (Motorola Linux devices)</td>
</tr>
<tr class="first">
<td rowspan="4">Gecko</td>
<td>Mozilla Minimo (dead?)</td>
</tr>
<tr>
<td>Mozilla Fennec</td>
</tr>
<tr>
<td>Maemo (aka MicroB)</td>
</tr>
<tr>
<td>Skyfire</td>
</tr>
<tr class="first">
<td rowspan="4">Opera (proxy)</td>
<td>Opera Mobile</td>
</tr>
<tr>
<td>Opera Mini</td>
</tr>
<tr>
<td>Nintendo DSi</td>
</tr>
<tr>
<td>Nintendo Wii</td>
</tr>
<tr class="first">
<td>Blackberry by RIM</td>
<td>Blackberry browser ver.4.6+ (I am not sure about 4.4 and 4.5)</td>
</tr>
<tr class="first">
<td>Microsoft Internet Explorer (was Microsoft Pocket IE) </td>
<td>(earlier versions do not support CSS?)</td>
</tr>
<tr class="first">
<td rowspan="4">NetFront 3.x ?</td>
<td>Sony Ericsson browsers</td>
</tr>
<tr>
<td>Sony PlayStation / PSP browsers</td>
</tr>
<tr>
<td>Palm Blazer 4.x</td>
</tr>
<tr>
<td>Amazon Kindle</td>
</tr>
<tr class="first">
<td>Teleca</td>
<td>Teleca Browser V3.x ? (LG Voyager)</td>
</tr>
<tr class="first">
<td>Danger (now by Microsoft)</td>
<td>Sidekick</td>
</tr>
</table></div>
<p>I have categorized only with the markup type, and did not sub-categorize these browsers. However, if I would, I may want to grade XHTML-MP devices with page memory size (=&#8221;deck size&#8221;, yes I said deck size), and screen resolution for UI design purpose. </p>
<p>To grade full-HTML browsers, you need to spend massive time and effort on testing rendering capability with CSS, and Javascript DOM compatibility, events, etc.  Actually, PPK  has done excellent work on mobile browser testing, so you can simply visit <a href="http://www.quirksmode.org/m/" target="_blank">Quirksmode.org</a>!</p>

]]></content:encoded>
			<wfw:commentRss>http://girliemac.com/blog/2009/09/22/classification-of-mobile-browsers/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Find Your Tweeting Neighbor on iPhone with GeoLocation</title>
		<link>http://girliemac.com/blog/2009/06/21/find-your-tweeting-neighbor-on-iphone-with-geolocation/</link>
		<comments>http://girliemac.com/blog/2009/06/21/find-your-tweeting-neighbor-on-iphone-with-geolocation/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 02:20:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Sandbox]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[WebKit]]></category>

		<guid isPermaLink="false">http://girliemac.com/blog/2009/06/21/find-your-tweeting-neighbor-on-iphone-with-geolocation/</guid>
		<description><![CDATA[iPhone OS 3.0 is now available, and developers can take advantage of the newly introduced geolocation feature in Safari browser. To try it out quickly, I used [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_jade" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fgirliemac.com%252Fblog%252F2009%252F06%252F21%252Ffind-your-tweeting-neighbor-on-iphone-with-geolocation%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Find%20Your%20Tweeting%20Neighbor%20on%20iPhone%20with%20GeoLocation%22%20%7D);"></div>
<p><img src="http://girliemac.com/blog/wp-content/images/neighbortweet.png" alt="screenshot"/></p>
<p>iPhone OS 3.0 is now available, and developers can take advantage of the newly introduced <strong>geolocation</strong> feature in Safari browser.</p>
<p>To try it out quickly, I used Twitter Search API again to create a tiny test app called, <a href="http://girliemac.com/geo" target="_blank"/>NeighborTweet</a>, which enable you to find out who are tweeting in your neighborhood. Basically, what it does is that obtain your location, and pass the latitude and longitude data to Twitter search and display the result tweets.</p>
<p>Try it out on your iPhone with:<br />
Short URL <a href="http://girliemac.com/geo" target="_blank"/>http://bit.ly/K0ZaE</a><br />
or<br />
<a href=http://qrcode.kaywa.com/img.php?s=8&#038;d=http%3A%2F%2Fgirliemac.com%2Fgeo">This QR Code</a> with scanning app like BeeTagg.</p>
<p>If you are interested in learning more on Twitter search API and geocode, please read <a href="http://apiwiki.twitter.com/Twitter-Search-API-Method%3A-search" target="_blank">Twitter Wiki</a>.</p>
<p>OK, now here&#8217;s the code.<br />
To find out your location with Geolocation class is simple &#8211; you just call <code>getCurrentPosition()</code> method. This initiates an asynchronous request to detect the user&#8217;s position.</p>
<pre class="js">
<code>
navigator.geolocation.getCurrentPosition(someFunction)
</code>
</pre>
<p>Get latitude and longitude, by using <code>coords</code> instance:</p>
<pre class="js">
<code>
latitude = position.coords.latitude;
longitude = position.coords.longitude;
</code>
</pre>
<p>Here&#8217;s an actual code I used to create the sample app:</p>
<pre class="js">
<code>
if (navigator.geolocation) {
  navigator.geolocation.getCurrentPosition(function(position) {
    callback(position.coords.latitude, position.coords.longitude);
  });
} else {
  alert("Geolocation services are not supported by your browser.");
} 

function callback(lat,lon){
  // twitter search json-p callback
  var geocode = "&#038;geocode=" + lat + "%2C" + lon + "%2C1mi";
  var fullUrl = url + geocode;
  ...
}
var url = "http://search.twitter.com/search.json?callback=getTweets";

function getTweets (json) {
  // display json data
  ...
}
</code>
</pre>
<h3>References</h3>
<p>Geolocation References:</p>
<ul>
<li><a href="http://developer.apple.com/safari/library/documentation/AppleApplications/Reference/SafariWebContent/GettingGeographicalLocations/GettingGeographicalLocations.html" target="_blank">Safari Reference Library &#8211; Getting Geographic Locations</a> &#8211; Apple Developer Connection</li>
<li><a href="https://developer.mozilla.org/En/Using_geolocation" target="_blank">Using geolocation</a> &#8211; Mozilla Developer Center</li>
<li><a href="http://www.w3.org/TR/geolocation-API/" target="_blank">Geolocation API Specification</a> &#8211; W3C Working Draft</li>
</ul>
<p>More References:</p>
<ul>
<li><a href="http://apiwiki.twitter.com/Twitter-Search-API-Method%3A-search" target="_blank">Twitter Search API Wiki</a></li>
<li><a href="http://bob.pythonmac.org/archives/2005/12/05/remote-json-jsonp/" target="_blank">Remote JSON &#8211; JSONP</a></li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://girliemac.com/blog/2009/06/21/find-your-tweeting-neighbor-on-iphone-with-geolocation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mobile Safari for iPhone 3 includes Geolocation</title>
		<link>http://girliemac.com/blog/2009/06/01/mobile-safari-for-iphone-3-includes-geolocation/</link>
		<comments>http://girliemac.com/blog/2009/06/01/mobile-safari-for-iphone-3-includes-geolocation/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 23:45:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[WebKit]]></category>

		<guid isPermaLink="false">http://girliemac.com/blog/2009/06/01/mobile-safari-for-iphone-3-includes-geolocation/</guid>
		<description><![CDATA[Although W3C&#8217;s document, The Geolocation API Specification is still in draft state and not yet finalized, major browsers are working to support this functionality and as we [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_jade" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fgirliemac.com%252Fblog%252F2009%252F06%252F01%252Fmobile-safari-for-iphone-3-includes-geolocation%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Mobile%20Safari%20for%20iPhone%203%20includes%20Geolocation%22%20%7D);"></div>
<p>Although W3C&#8217;s document, <a href="http://www.w3.org/TR/geolocation-API/" target="_blank">The Geolocation API Specification</a> is still in draft state and not yet  finalized, major browsers are working to support this functionality and as we all expected, Mobile Safari is not an exception.</p>
<p>According to <a href="http://blogs.computerworld.com/iphones_safari_browser_to_include_geolocation_0" target="_blank">ComputerWorld blog</a>, the geolocation API has been implemented for the upcoming API. Apparently, Seth of ComputerWorld tried the test webpage, built by Doug Turner for Mozilla on a 3.0B5 iPhone&#8217;s Mobile Safari.<br />
This screenshot is grabbed from the CompWorld&#8217;s blog.<br />
<img src="http://girliemac.com/blog/wp-content/images/compWorld_iphone_geo.png" /> </p>
<p>Obviously I don&#8217;t have access to the new iPhone so I just tested the test page  (<a href="http://people.mozilla.org/~dougt/geo.html" target="_blank">http://people.mozilla.org/~dougt/geo.html</a>) using Geolocation API <code>watchPosition()</code> method, on Mozilla 3.5. (And this should works similarly on Fennec too. I wish I could try on an actual device!)</p>
<p><img src="http://girliemac.com/blog/wp-content/images/ff35_geo01.png"/><br/><br />
<img src="http://girliemac.com/blog/wp-content/images/ff35_geo02.png"/></p>
<p>I am using my old PowerBook G4, with Comcast,. Since this Mac is not equipped with GPS device, Firefox gathers information about nearby wireless access points and computer’s IP address.</p>
<p>Nice! I can&#8217;t wait to see this working on iPhone!<br />
Especially, NextMuni.com with location enabled, that tells me where I am and where the nearest bus stop!</p>

]]></content:encoded>
			<wfw:commentRss>http://girliemac.com/blog/2009/06/01/mobile-safari-for-iphone-3-includes-geolocation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CSS3 Gradients: No Image Aqua Button</title>
		<link>http://girliemac.com/blog/2009/04/30/css3-gradients-no-image-aqua-button/</link>
		<comments>http://girliemac.com/blog/2009/04/30/css3-gradients-no-image-aqua-button/#comments</comments>
		<pubDate>Fri, 01 May 2009 05:33:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Sandbox]]></category>
		<category><![CDATA[WebKit]]></category>
		<category><![CDATA[Yahoo!]]></category>

		<guid isPermaLink="false">http://girliemac.com/blog/2009/04/30/css3-gradients-no-image-aqua-button/</guid>
		<description><![CDATA[Note (Jan 28, 2010): I added a Firefox support to this tutorial. Please visit the &#8220;revisited&#8221; article too! Boooo, Yahoo! just had the 3rd round of layoff [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_jade" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fgirliemac.com%252Fblog%252F2009%252F04%252F30%252Fcss3-gradients-no-image-aqua-button%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22CSS3%20Gradients%3A%20No%20Image%20Aqua%20Button%22%20%7D);"></div>
<p style="color:red"><em>Note (Jan 28, 2010): I added a Firefox support to this tutorial. Please visit the <a href="http://girliemac.com/blog/2010/01/28/css3-aqua-button-revisited-for-firefox-3-6/">&#8220;revisited&#8221;</a> article too!</em></p>
<p>Boooo, Yahoo! just had the 3rd round of layoff within a little over a year period, and this time I was axed with several more fellow excellent engineers of Mobile team. So now I have free time to spend on more coding!<br />
My job function needed full focus on products and it prevented me to have experiments and testing as I wanted to, so I always spent my own time to do. Now I can do whatever I want to while I am still on payroll. Yes! I am still paid my regular salary for a while, thanks for the new regulation <img src='http://girliemac.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />
</p>
<p>
<img src="http://girliemac.com/blog/wp-content/images/screenshot_css3button.png" alt="css3 button screenshot" align="right"/><br />
OK, enough blah about the stupid corporate stuff.<br />
Anyway, I played around with WebKit CSS3 gradient and created a useless but fun stuff &#8211; an Aqua button with no images!<br />
Back in the time when Mac OS X was first announced, there&#8217;re a plenty of web tutorials that describe how to create the sexy aqua button with Photoshop, and now I can show how to create one with CSS!
</p>
<p>
Here&#8217;s a screen capture of the rendered button. You can see <a href="http://girliemac.com/sandbox/button.html" target="_blank">the actual HTML page</a> too.
</p>
<p>OK, let&#8217;s take a look at the code:</p>
<pre class="html">
<code>
&lt;div class="button aqua"&gt;
  &lt;div class="glare"&gt;&lt;/div&gt;
  Button Label
&lt;/div&gt;
</code>
</pre>
<h3>Create a Button Base and Styling Label</h3>
<pre class="css">
<code>
.button{
  width: 120px;
  height: 24px;
  padding: 5px 16px 3px;
  -webkit-border-radius: 16px;
  -moz-border-radius: 16px;
  border: 2px solid #ccc;
  position: relative;

  /* Label */
  font-family: Lucida Sans, Helvetica, sans-serif;
  font-weight: 800;
  color: #fff;
  text-shadow: rgba(10, 10, 10, 0.5) 1px 2px 2px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
</code>
</pre>
<p>The first part to render a rounded-corner rectangle. Set the position as relative to place &#8220;glare&#8221; inside of the button later.<br />
The second part is for styling the label.<br />
Give text-shodow with alpha-transparency. (Believe or not, Chrome and Android do not support text-shadow!)
</p>
<h3>Button Color and Shadow</h3>
<pre class="css">
<code>
.aqua{
  background-color: rgba(60, 132, 198, 0.8);
  background-image: -webkit-gradient(linear, 0% 0%, 0% 90%, from(rgba(28, 91, 155, 0.8)), to(rgba(108, 191, 255, .9)));
  border-top-color: #8ba2c1;
  border-right-color: #5890bf;
  border-bottom-color: #4f93ca;
  border-left-color: #768fa5;
  -webkit-box-shadow: rgba(66, 140, 240, 0.5) 0px 10px 16px;
  -moz-box-shadow: rgba(66, 140, 240, 0.5) 0px 10px 16px; /* FF 3.5+ */
}
</code>
</pre>
<p>Now, specify the appearance of the button and shadow at bottom.<br />
Here. I use the <em>-webkit-gradient</em> to create a nice-looking aqua gradient.</p>
<p>Notice that I use <code>-webkit-gradient</code> as a <code>background-image</code>, although there&#8217;s no physical graphics are added there.<br />
You can use gradients in <code>background-image</code>, <code>border-image</code>, <code>list-style-image</code> and content property.<br />
On Firefox, this is ignored and you see only Background-color. </p>
<p>The syntax for linear gradient is as follows:<br/><br />
<code>-webkit-gradient(lenear, <em>left top</em>, <em>right bottom</em>, from(<em>start color/alpha</em>), to(<em>end color/alpha</em>))</code>
</p>
<p>In this example, starts with dark blue from straight top to bottom (no angle) at 95%, not all way down, to blended into lighter blue.
</p>
<p>Then, I specified color on each border (so the css looks pretty messy).</p>
<p>Finally, give a nice shadow at bottom, with <code>-webkit-box-shadow</code>.<br />
Firefox 3.5+ supports it too, so duplicate it with <code>-moz-box-shadow</code>.</p>
<p>Syntax is as:<br/><br />
<code>[color/alpha] [horizontal offset] [vertical offset] [blur radius] </code>
</p>
<h3>Give it shine</h3>
<pre class="css">
<code>
.button .glare {
  position: absolute;
  top: 0;
  left: 5px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  height: 1px;
  width: 142px;
  padding: 8px 0;
  background-color: rgba(255, 255, 255, 0.25);
  background-image: -webkit-gradient(linear, 0% 0%, 0% 95%, from(rgba(255, 255, 255, 0.7)), to(rgba(255, 255, 255, 0)));
}
</code>
</pre>
<p>The class <em>glare</em> renders the glossy look on the button.<br />
First, give absolute position to the parent container, <em>button</em> to give shine in the right position.
</p>
<p><;li<br />
Again, use <em>-webkit-gradient</em> to create the glossy look, by playing with alpha-transparency.<br />
Start with the white (alpha 0.7) and end with complete transparent (alpha 0).
</p>
<p>Honestly, I do not like to have this non-semantic empty div block to only get this visual effect.<br />
I need to figure a better way to do.</p>
<p>References:</p>
<ul>
<li><a href="http://devworld.apple.com/safari/library/documentation/AppleApplications/Reference/SafariCSSRef/Articles/Functions.html#//apple_ref/doc/uid/TP40007955-SW25" target="_blank">Safari Reference Library &#8211; CSS Property Functions</a> by Apple</li>
<li><a href="http://webkit.org/blog/175/introducing-css-gradients/" target="_blank">Surfin&#8217; Safari &#8211; Introducing CSS Gradients</a></li>
<li><a href="https://developer.mozilla.org/en/CSS_Reference/Mozilla_Extensions" target="_blank">Mozilla Extensions</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://girliemac.com/blog/2009/04/30/css3-gradients-no-image-aqua-button/feed/</wfw:commentRss>
		<slash:comments>94</slash:comments>
		</item>
		<item>
		<title>Tried Fennec Milestone Release for Windows Mobile</title>
		<link>http://girliemac.com/blog/2009/02/17/tried-fennec-milestone-release-for-windows-mobile/</link>
		<comments>http://girliemac.com/blog/2009/02/17/tried-fennec-milestone-release-for-windows-mobile/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 23:18:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[WinMo]]></category>

		<guid isPermaLink="false">http://girliemac.com/blog/2009/02/17/tried-fennec-milestone-release-for-windows-mobile/</guid>
		<description><![CDATA[Last week, Mozilla has released the early version of Firefox Mobile, &#8220;Fennec&#8221; for Windows Mobile (pre-alpha). Just like the earlier release was only for VGA Nokia devices [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_jade" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fgirliemac.com%252Fblog%252F2009%252F02%252F17%252Ftried-fennec-milestone-release-for-windows-mobile%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Tried%20Fennec%20Milestone%20Release%20for%20Windows%20Mobile%22%20%7D);"></div>
<p>Last week, Mozilla has released the early version of Firefox Mobile, &#8220;Fennec&#8221; for Windows Mobile (pre-alpha).<br />
Just like the earlier release was only for VGA Nokia devices like N800, this WinMo-release targets only one device, HTC Touch Pro.</p>
<p>Unfortunately I could not borrow an actual HTC &#8220;Fuze&#8221; (AT&#038;T version of Touch Pro), so I tested via DeviceAnywhere service. </p>
<p>Just typed in the Mozilla&#8217;s ftp address directly on PIE (I have no reasons why I didn&#8217;t use the default Opera Mobile), downloading and installing was fine (Pic.1).<br />
I got a pretty Fennec icon on screen. Nice. But I hope Mozilla will make it less jaggy for the next release. (Pic.2)<br />
Clicked the icon and wait, wait, wait&#8230; pretty slow. When I almost lost my patience, the browser finally launched&#8230; its title bar. Let&#8217;s wait for more. -nothing happened.<br />
Quit and relaunched. &#8211; the same result.<br />
Re-installed. &#8211; the same result. (Pic.3)</p>
<table>
<tr>
<td><a href="http://www.flickr.com/photos/girliemac/3288183059/" title="1 of 3 - Fennec 'Milestone Release' for HTC Touch Pro by GirlieMac, on Flickr"><img src="http://farm4.static.flickr.com/3280/3288183059_b833f497e2_m.jpg" width="240" height="166" alt="1 of 3 - Fennec 'Milestone Release' for HTC Touch Pro" /></a><br/><small>Pic.1 &#8211; Installing Fennec</small></td>
<td><a href="http://www.flickr.com/photos/girliemac/3288999788/" title="2 of 3 - Fennec 'Milestone Release' for HTC Touch Pro by GirlieMac, on Flickr"><img src="http://farm4.static.flickr.com/3337/3288999788_ac46a62d8b_m.jpg" width="240" height="163" alt="2 of 3 - Fennec 'Milestone Release' for HTC Touch Pro" /></a><br/><small>Pic.2 &#8211; Fennec icon</small></td>
</tr>
<tr>
<td><a href="http://www.flickr.com/photos/girliemac/3288183207/" title="3 of 3 - Fennec 'Milestone Release' for HTC Touch Pro by GirlieMac, on Flickr"><img src="http://farm4.static.flickr.com/3137/3288183207_9854d0be36_m.jpg" width="240" height="162" alt="3 of 3 - Fennec 'Milestone Release' for HTC Touch Pro" /></a><br/><small>Pic.3 &#8211; WTF</small></td>
</tr>
</table>
<p>Conclusion: Somebody please help me. I can&#8217;t make it work!!!</p>
<p>Links:</p>
<ul>
<li>Download URL: http://ftp.mozilla.org/pub/mozilla.org/mobile/fennec-0.11.en-US.wince-arm.cab</li>
<li>Mozilla <a href="http://ftp.mozilla.org/pub/mozilla.org/mobile/">FTP Index</a> for mobile</li>
<li>Brad&#8217;s Blog &#8211; <a href="http://blog.mozilla.com/blassey/2009/02/10/fennec-milestone-release-for-windows-mobile/">Fennec Milestone Release for Windows Mobile</a></li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://girliemac.com/blog/2009/02/17/tried-fennec-milestone-release-for-windows-mobile/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Meet Fennec, a little brother of Firefox</title>
		<link>http://girliemac.com/blog/2008/10/18/meet-fennec-a-little-brother-of-firefox/</link>
		<comments>http://girliemac.com/blog/2008/10/18/meet-fennec-a-little-brother-of-firefox/#comments</comments>
		<pubDate>Sat, 18 Oct 2008 23:57:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Nokia]]></category>
		<category><![CDATA[WAP]]></category>

		<guid isPermaLink="false">http://girliemac.com/blog/2008/10/18/meet-fennec-a-little-brother-of-firefox/</guid>
		<description><![CDATA[Here comes Fennec!!! (Release note) It&#8217;s been a whole year since Firefox first announced that they were developing for their mobile version, after the not-so-successful Minimo for [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_jade" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fgirliemac.com%252Fblog%252F2008%252F10%252F18%252Fmeet-fennec-a-little-brother-of-firefox%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Meet%20Fennec%2C%20a%20little%20brother%20of%20Firefox%22%20%7D);"></div>
<p>Here comes Fennec!!! (<a href="http://www.mozilla.org/projects/fennec/1.0a1/releasenotes/" target="_blank">Release note</a>)<br/><br />
It&#8217;s been a whole year since Firefox <a href="http://girliemac.com/blog/2007/10/11/mobile-firefox-is-coming/">first announced</a> that they were developing for their mobile version, after the not-so-successful Minimo for WinMo, and they finally released this public alpha for Nokia N810, whose default built-in browser is already Mozilla-based MicroB.<br/><br />
Unfortunately neither I or my beloved DeviceAnywhere has N810 device, so I tried the one for Mac OS.<br />
Because this is for N810 WVGA screen, so the browser window is set 800&#215;480 pixel, and support touch screen (so you need flick the screen to navigate).  I am wondering how comfortable with the UI on other smaller screen devices, or how non-touch screen UI would look like. (Or are they even planning to support one?)  <br/><br />
Anyway, I was playing around and tested some pages quickly: <br/><br />
<a href="http://www.flickr.com/photos/girliemac/2952344089/" title="Fennec Alpha by GirlieMac, on Flickr"><img src="http://farm4.static.flickr.com/3208/2952344089_6ba92fdda2_m.jpg" alt="Fennec Alpha" height="144" width="240" /></a> <a href="http://www.flickr.com/photos/girliemac/2952344181/" title="Fennec Alpha by GirlieMac, on Flickr"><img src="http://farm4.static.flickr.com/3229/2952344181_011c67a0a6_m.jpg" alt="Fennec Alpha" height="144" width="240" /></a><a href="http://www.flickr.com/photos/girliemac/2952344181/" title="Fennec Alpha by GirlieMac, on Flickr"></a><br />
(left) Startup screen, and (right) Yahoo! search.<br />
<br/><br />
<a href="http://www.flickr.com/photos/girliemac/2953195598/" title="Fennec Alpha by GirlieMac, on Flickr"><img src="http://farm4.static.flickr.com/3176/2953195598_06a7032d64_m.jpg" alt="Fennec Alpha" height="144" width="240" /></a> <a href="http://www.flickr.com/photos/girliemac/2952294985/" title="Acid3 Test on Fennec by GirlieMac, on Flickr"><img src="http://farm4.static.flickr.com/3023/2952294985_9c8098bc8d_m.jpg" alt="Acid3 Test on Fennec" height="144" width="240" /></a><a href="http://www.flickr.com/photos/girliemac/2952294985/" title="Acid3 Test on Fennec by GirlieMac, on Flickr"></a><br />
(L) My twitter home page. Editting was a bit pain because I don&#8217;t see a cursor on this emulator. (R) Run Acid3 test. 90/100 is good (better than iPhone Safari but doesn&#8217;t beat the latest Webkit which gets perfect score).<br />
<br/><br />
<a href="http://www.flickr.com/photos/girliemac/2953195682/" title="Fennec Alpha by GirlieMac, on Flickr"><img src="http://farm4.static.flickr.com/3007/2953195682_1111f7717d_m.jpg" alt="Fennec Alpha" height="144" width="240" /></a> <a href="http://www.flickr.com/photos/girliemac/2952344291/" title="Fennec Alpha by GirlieMac, on Flickr"><img src="http://farm4.static.flickr.com/3142/2952344291_bea1ce0028_m.jpg" alt="Fennec Alpha" height="144" width="240" /></a><a href="http://www.flickr.com/photos/girliemac/2952344291/" title="Fennec Alpha by GirlieMac, on Flickr"></a><br />
(L) iCuteOverload. Looks like it supports iUI nicely. I need to take out the &#8220;-webkit&#8221; prefix to see if border-image works on Fennec. (R) Some tests on event &#8211; not seems to support (both results &#8220;true&#8221; on iPhone Safari)<br />
<br/><br />
Anyway, overall I think this is pretty sweet. I am excite to see the battle among Webkit &#8211; Apple vs. Google, and vs. Mozilla.Also, if you are lucky enough own N810, try <a href="http://ftp.mozilla.org/pub/mozilla.org/mobile/mozilla-fennec.install" target="_blank">install</a> it on your device!</p>

]]></content:encoded>
			<wfw:commentRss>http://girliemac.com/blog/2008/10/18/meet-fennec-a-little-brother-of-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

