<?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>Ladysign Dev Blog &#187; css</title>
	<atom:link href="http://www.ladysign-apps.com/blog/category/code/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ladysign-apps.com/blog</link>
	<description>Girls can code.</description>
	<lastBuildDate>Mon, 12 Dec 2011 16:58:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Chrome Safari Webkit only CSS hack</title>
		<link>http://www.ladysign-apps.com/blog/code/css/chrome-safari-webkit-only-css-hack/</link>
		<comments>http://www.ladysign-apps.com/blog/code/css/chrome-safari-webkit-only-css-hack/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 14:31:20 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[webkit]]></category>

		<guid isPermaLink="false">http://www.ladysign-apps.com/blog/?p=1007</guid>
		<description><![CDATA[<p><strong>Difficulty:</strong> 1 out of 5 stars</p>
<p>Here&#8217;s an example how to target only webkit browsers:</p>

		 input.search{
			color: red;
		}

		@media screen and (-w[......]<p class='read-more'><a href='http://www.ladysign-apps.com/blog/code/css/chrome-safari-webkit-only-css-hack/'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>Difficulty:</strong> 1 out of 5 stars</p>
<p>Here&#8217;s an example how to target only webkit browsers:</p>
<pre class="brush: css; title: ;">
		 input.search{
			color: red;
		}

		@media screen and (-webkit-min-device-pixel-ratio:0) {
			input.search{
 				color: green;
			}
		}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ladysign-apps.com/blog/code/css/chrome-safari-webkit-only-css-hack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nice search field</title>
		<link>http://www.ladysign-apps.com/blog/code/css/nice-search-field/</link>
		<comments>http://www.ladysign-apps.com/blog/code/css/nice-search-field/#comments</comments>
		<pubDate>Wed, 02 Feb 2011 10:21:46 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[searchinput]]></category>

		<guid isPermaLink="false">http://www.ladysign-apps.com/blog/?p=1003</guid>
		<description><![CDATA[<p><strong>Difficulty:</strong> 3 out of 5 stars</p>
<p>Advanced HTML5 search field with placeholder and fallback for the other browsers.<br />
Styling with gradient + radius + image [......]</p><p class='read-more'><a href='http://www.ladysign-apps.com/blog/code/css/nice-search-field/'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>Difficulty:</strong> 3 out of 5 stars</p>
<p>Advanced HTML5 search field with placeholder and fallback for the other browsers.<br />
Styling with gradient + radius + image in field.<br />
With JS logics: Search on input string and search on enter.</p>
<p>HTML:</p>
<pre class="brush: xml; title: ;">
&lt;fieldset class=&quot;search&quot;&gt;&lt;div class=&quot;inputsearchgroup&quot;&gt;
&lt;span class=&quot;search_icon&quot;&gt;&lt;/span&gt;
&lt;input type=&quot;hidden&quot; name=&quot;url&quot; value=&quot;search.php&quot;&gt;
&lt;input class=&quot;search&quot; type=&quot;search&quot; placeholder=&quot;Search...&quot; name=&quot;search&quot;&gt;&lt;/div&gt;
&lt;button class=&quot;smallradius submit&quot;&gt;Search&lt;/button&gt;
&lt;/fieldset&gt;
</pre>
<p>CSS:</p>
<pre class="brush: css; title: ;">
fieldset.search {
	border: none;
	padding: 0;
	position: relative;
}

fieldset.search input {
    -webkit-appearance: none;
    -webkit-box-sizing: content-box;
    background: none;
    background: -webkit-gradient(linear, left top, left bottom, from(rgba(250, 250, 250, 1)), to(rgba(250, 250, 250, 0)), color-stop(.3,rgba(250, 250, 250, 0))););
    background-image: -moz-linear-gradient(rgba(250, 250, 250, 1) 0%, rgba(255, 255, 255, 0) 30%);
    border: 1px solid #f2f2f3;
    float: left;
    margin-right: 5px;
    padding: 10px 0 10px 44px;
    background-color: #fff;
}

fieldset.search div.inputsearchgroup {
	position: relative;
	float: left;
}

fieldset.search div.inputsearchgroup span.search_icon {
	background: url(icon_search_glass.png) no-repeat 10px 7px;
	display: inline-block;
	position: absolute;
	top: 0;
	left: 0;
	width: 37px;
	height: 33px;
}

/*
 * CSS3
 */
.smallradius {
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
}
</pre>
<p>JS:</p>
<pre class="brush: jscript; title: ;">
(function(){
	/*
	 * jQuery PlaceHolder + Search Submit
	 * it submits the search query on enter button and on search button.
	 * place holder functionality for browsers which don't support placeholder
	 * @author Lee Boonstra
	 * @since 21 jan 2011
	 * @version 1.0
	 *
	 * @uses jQuery 1.2.6, &lt;http://www.jquery.com&gt; or higher
	 */
	$.fn.SearchInput = function(){
		var strSavedString = &quot;&quot;;

		/*
		 * Does the browser support placeholder attribute?
		 * @return boolean
		 */
		function isBrowserSupport(){
			var i = document.createElement(&quot;input&quot;);
			return &quot;placeholder&quot; in i;
		}
		return this.each(function(){
			var button = $(this).parent().parent().find('.submit');
			var url = $(this).parent().find('input[name|=url]').val();
			var e = $(this);

			var strPlaceHolderText = e.attr(&quot;placeholder&quot;);

			if(e.val().length == 0){
				e.val(strPlaceHolderText);
			}

			/*
			 * On field focus remove placeholder if there is no written text in it.
			 * @return void
			 */
			e.focus(function(){
				strSavedString = e.val();
				if (strSavedString === strPlaceHolderText) {
					e.val(&quot;&quot;);
				}
			});

			/*
			 * Save the written text in a variable
			 * @return void
			 */
			e.change(function(){
				strSavedString = e.val();
			});

			/*
			 * While leaving the focus of the field, put the placeholder back
			 * or the written text.
			 * @return void
			 */
			e.blur(function(){
				if(isBrowserSupport()===false){
					if(strSavedString !== strPlaceHolderText &amp;&amp; strSavedString !== &quot;&quot;){
						e.val(strSavedString);
					} else {
						e.val(strPlaceHolderText);
					}
				}
			});

			/*
			 * Search if the key is enter or button has been clicked,
			 * if there's a input hidden url and the input is not empty and does not contain the    placeholder
			 */
			function search(ev){
				if (ev.keyCode === 13 &amp;&amp; strSavedString !== strPlaceHolderText &amp;&amp; strSavedString !== &quot;&quot; &amp;&amp; url !== null) {
					window.location.href = url + &quot;?q=&quot; + strSavedString;
				}
				if(ev===&quot;click&quot; &amp;&amp; strSavedString !== strPlaceHolderText &amp;&amp; strSavedString !== &quot;&quot; &amp;&amp; url !== null){
					window.location.href = url + &quot;?q=&quot; + strSavedString;
				}
			}

			/*
			 * Submit the query
			 */
			e.keyup(function(ev){
				search(ev);
			})
			button.click(function(){
				search(&quot;click&quot;);
			});

		});

	};
})(jQuery);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ladysign-apps.com/blog/code/css/nice-search-field/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing SASS + Compass for Windows &amp; OS X</title>
		<link>http://www.ladysign-apps.com/blog/code/css/installing-sass-compass-for-os-x/</link>
		<comments>http://www.ladysign-apps.com/blog/code/css/installing-sass-compass-for-os-x/#comments</comments>
		<pubDate>Sat, 29 Jan 2011 19:01:40 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://www.ladysign-apps.com/blog/?p=996</guid>
		<description><![CDATA[<p><strong>Difficulty:</strong> 1 out of 5 stars</p>
<p>It&#8217;s very easy to install Sass and Compass on your Mac. Sass is included with HAML.<br />
To get SASS working, you&#8217;[......]</p><p class='read-more'><a href='http://www.ladysign-apps.com/blog/code/css/installing-sass-compass-for-os-x/'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>Difficulty:</strong> 1 out of 5 stars</p>
<p>It&#8217;s very easy to install Sass and Compass on your Mac. Sass is included with HAML.<br />
To get SASS working, you&#8217;ll need an installation of Ruby. On your Mac this is already done.</p>
<p>On your Windows environment, you&#8217;ll need to install Ruby via the installer:<br />
<a href="http://rubyinstaller.org/about/contributors/">http://rubyinstaller.org/about/contributors/</a><br />
after running the setup open the commandline: (Windows run > type: CMD)<br />
Check if ruby is installed, navigate to the Ruby bin folder, and type:<br />
ruby -v<br />
If you receive a prompt with the installed version number of Ruby back, then the installation went good. And you can go further&#8230;</p>
<p>For both Windows &#038; OS X, type in your console the following commando&#8217;s:</p>
<p>sudo gem install haml<br />
sudo gem install haml-edge<br />
sudo gem install compass</p>
<p>check if compass is running:<br />
compass version</p>
<p>now you can write your sass file.<br />
create in an editor style.scss<br />
to convert your sass file back to .css just type in your console:<br />
sass &#8211;watch style.scss:style.css</p>
<p>and on windows:<br />
C:\Ruby\bin\> sass -trace D:\Sass\default.scss:D:\Sass\default.css</p>
<p><a href="http:/sass-lang.com">http://sass-lang.com/</a><br />
<a href="http://compass-style.org">http://compass-style.org</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ladysign-apps.com/blog/code/css/installing-sass-compass-for-os-x/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Image base64 uri strings</title>
		<link>http://www.ladysign-apps.com/blog/code/css/image-base64-uri-strings/</link>
		<comments>http://www.ladysign-apps.com/blog/code/css/image-base64-uri-strings/#comments</comments>
		<pubDate>Tue, 28 Dec 2010 19:43:49 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[encoding]]></category>
		<category><![CDATA[generators]]></category>
		<category><![CDATA[generator]]></category>
		<category><![CDATA[image base64 strings]]></category>

		<guid isPermaLink="false">http://www.ladysign-apps.com/blog/?p=993</guid>
		<description><![CDATA[<p><strong>Difficulty:</strong> 2 out of 5 stars</p>
<p>By using the Data URI scheme you can embed images directly into your HTML and CSS. It works by encoding an image into a b[......]</p><p class='read-more'><a href='http://www.ladysign-apps.com/blog/code/css/image-base64-uri-strings/'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>Difficulty:</strong> 2 out of 5 stars</p>
<p>By using the Data URI scheme you can embed images directly into your HTML and CSS. It works by encoding an image into a base64 string and place it directly withing an HTML image tag or as a CSS background URL. Such a base64 string url example in your CSS looks like this:</p>
<pre class="brush: css; title: ;">
div.image {
 background: data:image/x-png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAABLElEQVR42qSTQStFURSFP7f3XygyoAwoYSYMPCIpk2egMFSmUvwCRpSRDIwYGbwyVuYykB9y914m951z7nHe6J26dc9u77XXWmdvJLF7/audqx9JYuvyW92LL0li8K2df2r17CPEVk7ftXTclyQqAMmRCwC5I3fS42a4W7y74VYDNAAuJA8AaXIsSACsDgAdAJeFrnnyoMBygKZJJ3b1It0AmsTMDPdEgrujJqHEwCxqznMaD2KgyCDRnEuo8qJhHvx/hcQDbzGoix5Yi4G1TcwZWNEDKwJU+WDkhg2ToDaD+M65YcVB8jg3Y5IY5VQAyyf9gLJw+CqAuYNnAczsPQpgevtBU937kDexcdssj8Ti0ZskMd97CRs3u//U2sjJzbtwH1+/Cf8jS/gbAMmWc42HzdIjAAAAAElFTkSuQmCC
}
</pre>
<p>I found this generator who generates such a string after uploading an image.<br />
I used this for iPhone/iPad app development.</p>
<p><a href="http://webcodertools.com/imagetobase64converter">http://webcodertools.com/imagetobase64converter</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ladysign-apps.com/blog/code/css/image-base64-uri-strings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>eFocus number 1 internet full service company</title>
		<link>http://www.ladysign-apps.com/blog/code/css/efocus-number-1-internet-full-service-company/</link>
		<comments>http://www.ladysign-apps.com/blog/code/css/efocus-number-1-internet-full-service-company/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 17:33:25 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[efocus]]></category>

		<guid isPermaLink="false">http://www.ladysign-apps.com/blog/?p=960</guid>
		<description><![CDATA[<p><strong>Difficulty:</strong> 5 out of 5 stars</p>
<p>Last week the company I work for: eFocus, became number 1 in the <a href="http://www.emerce.nl/artikel.jsp?rubriek=404797&#038;id=2997956">Emerce top 100</a>.<br />
We&#8217;re very happy with this notatio[......]</p><p class='read-more'><a href='http://www.ladysign-apps.com/blog/code/css/efocus-number-1-internet-full-service-company/'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>Difficulty:</strong> 5 out of 5 stars</p>
<p>Last week the company I work for: eFocus, became number 1 in the <a href="http://www.emerce.nl/artikel.jsp?rubriek=404797&#038;id=2997956">Emerce top 100</a>.<br />
We&#8217;re very happy with this notation! </p>
<p><a href="http://www.efocus.nl/algemeen/nieuws/efocus_nummer_1_fullservice_internetbureau_in_emer"><br />
<img src="http://www.ladysign-apps.com/blog/siteimg/efocus.jpg" alt="eFocus #1 internet full service company" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ladysign-apps.com/blog/code/css/efocus-number-1-internet-full-service-company/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

