<?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>jc-designs.net &#187; Sass/Less/Compass</title>
	<atom:link href="http://jc-designs.net/blog/category/web-development/sasslesscompass/feed/" rel="self" type="application/rss+xml" />
	<link>http://jc-designs.net/blog</link>
	<description>jc-designs blog</description>
	<lastBuildDate>Mon, 16 Jan 2012 15:30:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Compass Gets An App &#8211; No Command Line Needed</title>
		<link>http://jc-designs.net/blog/2011/04/compass-gets-an-app-no-command-line-needed/</link>
		<comments>http://jc-designs.net/blog/2011/04/compass-gets-an-app-no-command-line-needed/#comments</comments>
		<pubDate>Fri, 08 Apr 2011 19:55:09 +0000</pubDate>
		<dc:creator>jcDesigns</dc:creator>
				<category><![CDATA[Product Reviews]]></category>
		<category><![CDATA[Sass/Less/Compass]]></category>
		<category><![CDATA[Compass]]></category>
		<category><![CDATA[sass]]></category>

		<guid isPermaLink="false">http://jc-designs.net/blog/?p=865</guid>
		<description><![CDATA[Another post on what you think about Compass? Oh shut up. If it wasn&#8217;t as bad ass as it is, I wouldn&#8217;t write about it. This isn&#8217;t really about Compass though. Well&#8230;it is, but more about the app that was built for it, so that users don&#8217;t have to use the command line. Honestly, if [...]]]></description>
			<content:encoded><![CDATA[<h3>Another post on what you think about Compass?</h3>
<p>Oh shut up. If it wasn&#8217;t as bad ass as it is, I wouldn&#8217;t write about it. This isn&#8217;t really about <a href="http://beta.compass-style.org/">Compass</a> though. Well&#8230;it is, but more about the app that was built for it, so that users don&#8217;t have to use the command line. Honestly, if I can figure out how to at least make Compass compile my Sass through the command line, then anyone can. BUT&#8230;this makes the whole process of a hell of a lot easier.</p>
<h3>Compass made easier</h3>
<p>At first, I thought, the command line really isn&#8217;t that hard because you only need to know a few commands, why do I need an app to do this? Then I tried <a href="http://compass.handlino.com/">Compass.app by Handlino</a>. After trying it out, there is only one reason why I can see someone not wanting to use this product (which only costs $7 by the way), but I&#8217;ll talk about that last.</p>
<p>After you have unzipped the file, and opened the app up, all that happens is that a gray version of the Compass logo appears in your task bar. When you click the icon, you get several things you can do, depending on where you are in your project. If you are starting a new one, you have a bunch of different Compass project options you can install. I went with the HTML5 Boilerplate option, since I love using it. The others are: Blueprint, basic Compass Projects, 960gs, or HTML5 Boilerplate. You can see what I&#8217;m talking about in the image below.</p>
<div class="center"><img src="http://jc-designs.net/newimages/blogImages/compassApp1.jpg" alt="Compass.app project creation" /></div>
<p><span id="more-865"></span><br />
After you select the type of project you want to create, you are asked where you want to save it, and what you want to call it.</p>
<h3>So you created a project&#8230;what the hell just happened?</h3>
<p>As you can see, there isn&#8217;t a whole lot to do, but that is really the beauty of this app. It doesn&#8217;t need to do much more. After you create a project, Compass.app opens a window that gives you a report of what it just installed in your project folder, and some links to the stylesheets to copy and paste into your file. I didn&#8217;t need them though because they were already linked. Below is what the report looks like:</p>
<div class="center"><img src="http://jc-designs.net/newimages/blogImages/compassApp2.jpg" alt="Compass.app project creation report" /></div>
<p>What actually happened though is the really awesome part. If you open the folder you had the app create, you will see something like this:</p>
<div class="center"><img src="http://jc-designs.net/newimages/blogImages/compassApp3.jpg" alt="Compass.app project folder" /></div>
<p>Yep! Everything you need to just start coding your website. It installed my .scss file, the <a href="http://html5boilerplate.com/">HTML5 Boilerplate</a> files, the Compass config file, and the javascript files that the boilerplate uses (Modernizr, jQuery, DD_belatedPNG.fix, blank script file)&#8230;basically the works. Just a couple of clicks, and BAM!&#8230;ready to go!</p>
<h3>Compass.app is watching</h3>
<p>If you have the project open, the app is watching for any changes to your Sass file. You make a change to the file, the app then compiles it. Freakin&#8217; awesome. And if you don&#8217;t have it open, click the icon in your task bar again, and under &#8216;History&#8217; you will see a list of your projects. All you have to do is select the one you want Compass.app to watch, and it will. Seriously, it couldn&#8217;t really be any easier. I had asked about something like this from Compass&#8217; creator Chris Eppstein, and this came out from someone else soon after. Thank you Handlino!</p>
<div class="center"><img src="http://jc-designs.net/newimages/blogImages/compassApp4.jpg" alt="Compass.app watching your files" /></div>
<p><em>NOTE: I should also mention there is a &#8216;Preference&#8217; menu item that allows you to specify your gem path, but I am not that far into my self teaching of Ruby to have any idea what to do with that yet.</em></p>
<h3>Conclusion</h3>
<p>For seven bucks, this is a no brainer. Just be sure to avoid the mistake I made when going to their buy form. It is in a different language, but up at the top is a drop down for the English version. I didn&#8217;t see that when I went there, and I panicked. </p>
<p>Is there any reason not to use <a href="http://compass.handlino.com/">Compass.app</a> though? Maybe&#8230;which I say hesitantly. It seems to be using Compass v.10.6., and I will assume that most users of Compass are using it&#8217;s beta  Version: 0.11.beta.5. The app is also using Sass version 3.0.24, when it is on version 3.0.25. Big deal? Probably not. I&#8217;m also not sure if the HTML5 Boilerplate is the most current version, but that was awesome to begin with anyway. I don&#8217;t really think the newer versions added anything outstanding in the terms of &#8220;need to have&#8221;, but that is up for you to judge. In my opinion, for $7, just buy the damn thing.</p>
<p>Let me know what you think if you have already purchased it! And if you know what the hell the gem path option is, please explain (but in idiot terms so we can all understand your dialect of nerd speak).</p>
<div class="gator">
<a  href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=jcDesigns-" rel="nofollow"><img src="http://tracking.hostgator.com/img/Shared/468x60.gif" border=0></a></p>
<p>Coupon Code: webmachine</p>
</div>
 <img src="http://jc-designs.net/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=865" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://jc-designs.net/blog/2011/04/compass-gets-an-app-no-command-line-needed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Love For SCSS And Sass Grows</title>
		<link>http://jc-designs.net/blog/2011/04/my-love-for-scss-and-sass-grows/</link>
		<comments>http://jc-designs.net/blog/2011/04/my-love-for-scss-and-sass-grows/#comments</comments>
		<pubDate>Thu, 07 Apr 2011 03:39:50 +0000</pubDate>
		<dc:creator>jcDesigns</dc:creator>
				<category><![CDATA[Sass/Less/Compass]]></category>
		<category><![CDATA[Compass]]></category>
		<category><![CDATA[sass]]></category>

		<guid isPermaLink="false">http://jc-designs.net/blog/?p=862</guid>
		<description><![CDATA[As does my stupidity I&#8217;ve been continuing on with my site redesign, which means I continue to use Sass. I&#8217;m dead serious with the title of this post, too. Not just Sass, but Compass as well. Sass would be good by itself, but the stuff that Compass puts in, especially it&#8217;s CSS3 module. I have [...]]]></description>
			<content:encoded><![CDATA[<h3>As does my stupidity</h3>
<p>I&#8217;ve been continuing on with my site redesign, which means I continue to use <a href="http://sass-lang.com/">Sass</a>. I&#8217;m dead serious with the title of this post, too. Not just Sass, but <a href="http://beta.compass-style.org/">Compass</a> as well. Sass would be good by itself, but the stuff that Compass puts in, especially it&#8217;s CSS3 module. I have used the border-radius and box-shadow includes enough now, that writing them in regular CSS seems an incredible chore.</p>
<p>I only have to write this:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #a1a100;color: #439AD0;">@include border-radius(10px 0px 0px 10px);</span></pre></div></div>

<p>To achieve this:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;">-moz-border-radius<span style="color: #00AA00;color: #439AD0;">:</span><span style="color: #933;">10px</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">10px</span><span style="color: #00AA00;color: #439AD0;">;</span>
-webkit-border-radius<span style="color: #00AA00;color: #439AD0;">:</span><span style="color: #933;">10px</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">10px</span><span style="color: #00AA00;color: #439AD0;">;</span>
-o-border-radius<span style="color: #00AA00;color: #439AD0;">:</span><span style="color: #933;">10px</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">10px</span><span style="color: #00AA00;color: #439AD0;">;</span>
-ms-border-radius<span style="color: #00AA00;color: #439AD0;">:</span><span style="color: #933;">10px</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">10px</span><span style="color: #00AA00;color: #439AD0;">;</span>
-khtml-border-radius<span style="color: #00AA00;color: #439AD0;">:</span><span style="color: #933;">10px</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">10px</span><span style="color: #00AA00;color: #439AD0;">;</span>
border-radius<span style="color: #00AA00;color: #439AD0;">:</span><span style="color: #933;">10px</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">10px</span><span style="color: #00AA00;color: #439AD0;">;</span></pre></div></div>

<p>You can see why this is awesome. If you can&#8217;t, you should stop reading. No, seriously though, how many of you actually write all of those in CSS? I don&#8217;t. I write the one for -moz, -webkit, and the last one. Compass is covering ALL of them, so in effect, it is doing more than I originally would  have, and I&#8217;m writing less. So how did my stupidity grow? Good question.</p>
<p><span id="more-862"></span><br />
The answer? I have found myself writing completely stupid crap. Let&#8217;s take nesting for example, because I seem to have broken a rule I wasn&#8217;t aware of until <a href="http://groups.google.com/group/compass-users/browse_thread/thread/9c05149d2f7d5e0/d9b1d8c0d6c41bad?lnk=gst&#038;q=nesting#d9b1d8c0d6c41bad">this discussion</a>. Apparently, nesting anymore than 3 levels down, is complete idiocy. Didn&#8217;t know that&#8230;which makes me feel even more embarrassed. After asking a question of Compass&#8217;s creator, <a href="http://jc-designs.net/blog/2011/01/informal-interview-chris-eppstein-creator-of-compass/" target="_blank">Chris Eppstein</a>, if this seemed reasonable:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;">aside <span style="color: #00AA00;color: #439AD0;">&#123;</span> ul <span style="color: #00AA00;color: #439AD0;">&#123;</span> li <span style="color: #00AA00;color: #439AD0;">&#123;</span> a <span style="color: #00AA00;color: #439AD0;">&#123;</span><span style="color: #00AA00;color: #439AD0;">&#125;</span> <span style="color: #00AA00;color: #439AD0;">&#125;</span> <span style="color: #00AA00;color: #439AD0;">&#125;</span> <span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>The short answer, which was short anyway due to it being asked on twitter, was no. And as I looked at what I wrote, that answer was really all I needed. I&#8217;m nested 4 elements deep in the above example, I really only needed three, mostly likely two. Why does this matter? As one commenter put it in the linked discussion above, you have less chance of shooting yourself in the foot the larger your stylesheet becomes. Plus I&#8217;m just making it inefficient to begin with. It was totally unnecessary.</p>
<h3>Any other issues?</h3>
<p>Yes. DUMB ASS VARIABLES! I&#8217;m looking at my .scss file right now, and I see two variables that are totally ridiculous. I have assigned &#8216;left&#8217; to $l, and &#8216;right&#8217; to $r. Seriously? I can type the words &#8216;left&#8217; or &#8216;right&#8217; just as fast as I can calling the variable. This was not saving me anything in writing my CSS. Am I going to remove it though? No. It&#8217;s not hurting anything, and it is a reminder to myself now to think more before I type.</p>
<p>Another issue is, there isn&#8217;t a great resource for people new to Sass, to see what other developers have written in building an average site. I&#8217;m talking about a typical info site. I am basically flying by the seat of my pants. Luckily, a book is coming out &#8211; <a href="http://www.manning.com/netherland/">Sass and Compass in Action</a>, and I&#8217;m hoping this will help in that regard. I want to see real life examples of what some good mixins are. Right now, the two I have written that I like are for calling image sprites so that all I have to do is pass the left and top position numbers. What I need though is the deeper stuff, if there are any. I think the main problem for me is, there are no real beginners. The people that created it and others using Sass seem to be hardcore Ruby programmers who are used to this type of stuff to begin with.</p>
<h3>What does this stuff all mean?</h3>
<p>It means I have learned a great deal using Sass for just one site. I can at least see what I have done wrong, where I can improve, and next time won&#8217;t be such a head slap to my face when seeing some of the crap I did. So if there are any experienced Sass users out there reading this, I would love to see some good mixin examples. Do you use any for font stuff? I don&#8217;t even know, but if you do, please post it in the comment section! Thank you!</p>
<div class="gator">
<a  href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=jcDesigns-" rel="nofollow"><img src="http://tracking.hostgator.com/img/Shared/468x60.gif" border=0></a></p>
<p>Coupon Code: webmachine</p>
</div>
 <img src="http://jc-designs.net/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=862" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://jc-designs.net/blog/2011/04/my-love-for-scss-and-sass-grows/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CSS Variables, Mixins and Nesting Might Be Coming</title>
		<link>http://jc-designs.net/blog/2011/01/css-variables-mixins-and-nesting-might-be-coming/</link>
		<comments>http://jc-designs.net/blog/2011/01/css-variables-mixins-and-nesting-might-be-coming/#comments</comments>
		<pubDate>Fri, 21 Jan 2011 20:08:12 +0000</pubDate>
		<dc:creator>jcDesigns</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Sass/Less/Compass]]></category>
		<category><![CDATA[LESS]]></category>
		<category><![CDATA[sass]]></category>

		<guid isPermaLink="false">http://jc-designs.net/blog/?p=786</guid>
		<description><![CDATA[If you don&#8217;t know Sass&#8230;you might want to now I&#8217;ve read a couple of posts/articles in the past week that REALLY got me excited again about CSS. A guy over at Google, Tab Atkins, has hinted at it, and then this article by Johan Brook talks about it as well. What the hell am I [...]]]></description>
			<content:encoded><![CDATA[<h3>If you don&#8217;t know Sass&#8230;you might want to now</h3>
<p>I&#8217;ve read a couple of posts/articles in the past week that REALLY got me excited again about CSS. A guy over at Google, <a href="http://twitter.com/tabatkins">Tab Atkins</a>, has hinted at it, and then <a href="http://johanbrook.com/quickies/webkit-css-variables-mixins-nesting/">this articl</a>e by Johan Brook talks about it as well.</p>
<p>What the hell am I talking about you ask? Well by the title of this post you should have figured it out.You know all those articles I&#8217;ve posted about my experience with Sass and how much I love it? Or maybe my artilce on LESS.js? There are other articles around the net where people commented their worries and complaints on why they didn&#8217;t need or use it. Well guess what&#8230;you might want to rethink that and start learning. Variables, mixins and nesting might be coming to CSS itself. If you didn&#8217;t read the article I linked to above, Webkit is thinking about it, and it may be here as soon as the end of this year.</p>
<p><span id="more-786"></span></p>
<h3>What does this mean for web developers?</h3>
<p>Adding these things into CSS would be a dream come true, and now that there is some actual discussion going on to make this happen (and from people at Google!), that dream is closer to reality. If Chrome (I assume Safari is included in that) adds this functionality in, I think Firefox will be close behind. That&#8217;s cool and all, I know, but what does that mean for us?</p>
<p>Simple answer: A whole lot of awesome! Smaller and tight stylesheets! Possibly quicker development time. Might as well start learning it now, cause its not hard, but you do have to put some effort into it to get it down.</p>
<p>CSS seems to be growing in what it handles and does, and faster than people are learning it. Trust me, I work with people who don&#8217;t even have CSS2 down and they&#8217;ve been working with it for two years. If adding things like this culls the heard a little, I for one am all for it.</p>
<h3>What are these new features anyway?</h3>
<p>Here is a real quick example of what I have used so far in my redesign of my website, so you can see what we have to look forward to. This is from my Sass file, and is for the right sidebar of my <a href="http://jc-designs.net" target="_blank">home page</a>.</p>
<p>Below includes some variables, a couple of mixins, and some nested stuff:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;">/Variables
$dkgray<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc00cc;">#2d2d2d</span><span style="color: #00AA00;color: #439AD0;">;</span>
$orange<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc00cc;">#f15c22</span><span style="color: #00AA00;color: #439AD0;">;</span>
$wht<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;color: #439AD0;">;</span>
$w<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">1020px</span><span style="color: #00AA00;color: #439AD0;">;</span>
$r<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">right</span><span style="color: #00AA00;color: #439AD0;">;</span>
$l<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span><span style="color: #00AA00;color: #439AD0;">;</span>
&nbsp;
<span style="color: #a1a100;color: #439AD0;">@mixin font ($size, $weight, $family: &quot;Arial,Helvetica,sans-serif&quot;){</span>
  <span style="color: #000000; font-weight: bold;color: #439AD0;">font</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
    family<span style="color: #00AA00;color: #439AD0;">:</span> #<span style="color: #00AA00;color: #439AD0;">&#123;</span>$family<span style="color: #00AA00;color: #439AD0;">&#125;</span><span style="color: #00AA00;color: #439AD0;">;</span>
    <span style="color: #000000; font-weight: bold;color: #439AD0;">size</span><span style="color: #00AA00;color: #439AD0;">:</span> $size<span style="color: #00AA00;color: #439AD0;">;</span>
    weight<span style="color: #00AA00;color: #439AD0;">:</span> #<span style="color: #00AA00;color: #439AD0;">&#123;</span>$weight<span style="color: #00AA00;color: #439AD0;">&#125;</span><span style="color: #00AA00;color: #439AD0;">;</span>
  <span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #a1a100;color: #439AD0;">@mixin sprite($left, $top) {</span>
    <span style="color: #000000; font-weight: bold;color: #439AD0;">background</span><span style="color: #00AA00;color: #439AD0;">:</span>  <span style="color: #993333;color: #439AD0;">url</span><span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #ff0000; font-style: italic;">../images/iconSprite.png</span><span style="color: #00AA00;color: #439AD0;">&#41;</span> <span style="color: #993333;color: #439AD0;">no-repeat</span> $left $top<span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#calltoAction</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">260px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">181px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">background</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">url</span><span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #ff0000; font-style: italic;">../images/calltoAction.png</span><span style="color: #00AA00;color: #439AD0;">&#41;</span> <span style="color: #993333;color: #439AD0;">no-repeat</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">top</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $dkgray<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">padding</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">25px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
	h1 <span style="color: #00AA00;color: #439AD0;">&#123;</span>
		<span style="color: #a1a100;color: #439AD0;">@include font(16px, &quot;bold&quot;);</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $dkgray<span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">text-align</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">center</span><span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">text-shadow</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">none</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #00AA00;color: #439AD0;">&#125;</span>
	h2 <span style="color: #00AA00;color: #439AD0;">&#123;</span>
		<span style="color: #a1a100;color: #439AD0;">@include font(42px, &quot;bold&quot;, &quot;Bebas, Arial,Helvetica,sans-serif&quot;);</span>
		<span style="color: #a1a100;color: #439AD0;">@include sprite(210px, 13px);</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $dkgray<span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">text-align</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">center</span><span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">padding</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">18px</span> <span style="color: #933;">4px</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">text-shadow</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">3px</span> <span style="color: #cc00cc;">#999</span><span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">border</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">none</span><span style="color: #00AA00;color: #439AD0;">;</span>
		a <span style="color: #00AA00;color: #439AD0;">&#123;</span>
			<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $dkgray<span style="color: #00AA00;color: #439AD0;">;</span>
			&amp;<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;color: #439AD0;">&#123;</span>
			<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $orange<span style="color: #00AA00;color: #439AD0;">;</span>
			<span style="color: #00AA00;color: #439AD0;">&#125;</span>
		<span style="color: #00AA00;color: #439AD0;">&#125;</span>
	<span style="color: #00AA00;color: #439AD0;">&#125;</span>
	h3 <span style="color: #00AA00;color: #439AD0;">&#123;</span>
		<span style="color: #a1a100;color: #439AD0;">@include font(16px, &quot;bold&quot;);</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $dkgray<span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">text-align</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">right</span><span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">20px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>The tag with an id of #calltoAction has a variable call:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $dkgray</pre></div></div>

<p>Now, $dkgray is set to #2d2d2d, but the best part is, I don&#8217;t have to remember the damn hex code for that color. Seems silly at first, but takes less thinking on my part, and really easy to change that color across the board if I have to. No find and replace needed.</p>
<p>You will also see that there is an h1 nested with in that #calltoAction, which only styles the h1 tags within it. This avoids repetition by nesting selectors within one another. Awesome. If you look at the above code you can see I&#8217;ve nested some things even deeper, to style the &#8216;h2 a&#8217; styles.</p>
<p>There is also the mixin calls. If you look at the top of the code above, you see a mixin for the sprite. Anytime I want to use that same sprite (and I do quite often), I type something like this:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #a1a100;color: #439AD0;">@include sprite(210px, 13px);</span></pre></div></div>

<p>All that I have to change each time are the pixel numbers for the position. This means less typing and smaller file sizes when all of these things are used. A LOT less repetition goes on throughout as well.</p>
<h3>What do you think about this?</h3>
<p>Sass and Compass let me do this cool crap now, but if CSS gets this functionality, and compiling happens in browser, there is going to be a lot of happiness. Probably a lot of grumbling and haters as well, but who cares about them? CSS was becoming tedious to write for me without Sass. This will make it fun again for me, and a lot faster to write. I think it needed it, and this is long over due. What do you guys think?</p>
<div class="gator">
<a  href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=jcDesigns-" rel="nofollow"><img src="http://tracking.hostgator.com/img/Shared/468x60.gif" border=0></a></p>
<p>Coupon Code: webmachine</p>
</div>
 <img src="http://jc-designs.net/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=786" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://jc-designs.net/blog/2011/01/css-variables-mixins-and-nesting-might-be-coming/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Informal Interview: Chris Eppstein &#8211; Creator of Compass</title>
		<link>http://jc-designs.net/blog/2011/01/informal-interview-chris-eppstein-creator-of-compass/</link>
		<comments>http://jc-designs.net/blog/2011/01/informal-interview-chris-eppstein-creator-of-compass/#comments</comments>
		<pubDate>Thu, 13 Jan 2011 19:20:41 +0000</pubDate>
		<dc:creator>jcDesigns</dc:creator>
				<category><![CDATA[Informal Interview]]></category>
		<category><![CDATA[Sass/Less/Compass]]></category>
		<category><![CDATA[Compass]]></category>
		<category><![CDATA[interview]]></category>
		<category><![CDATA[sass]]></category>

		<guid isPermaLink="false">http://jc-designs.net/blog/?p=768</guid>
		<description><![CDATA[Talking to people in web development I had a thought the other day and on a whim I asked a couple people if I could get an informal interview. I email them questions, and they give me the answers. I originally planned to ask people that were not in the top tier of popularity&#8230;you know, [...]]]></description>
			<content:encoded><![CDATA[<h3>Talking to  people in web development</h3>
<p>I had a thought the other day and on a whim I asked a couple people if I could get an informal interview. I email them questions, and they give me the answers. I originally planned to ask people that were not in the top tier of popularity&#8230;you know, people like&#8230;well&#8230;me. The ones who write web development blogs because they love what they do, and working in the trenches. People that have something to say that most of us wouldn&#8217;t know about otherwise. That plan has somewhat changed when I got a &#8220;yes&#8221; from someone I didn&#8217;t expect to. I plan on doing a bunch of these, but this first one makes me very happy. On to the first of what I call &#8220;Informal Interviews.&#8221;</p>
<h3>Chris Eppstein &#8211; Creator of Compass</h3>
<p><a href="http://twitter.com/chriseppstein">Chris</a> is the creator of <a href="http://beta.compass-style.org/">Compass</a>, a stylesheet authoring framework, and is on the core team of <a href="http://sass-lang.com/">Sass</a> — the stylesheet syntax upon which Compass is built. On top of that, he is the Software Architect at <a href="http://www.caring.com/">Caring.com</a>, a website devoted to caregivers of the sick and elderly. How he has any time left to relax, I&#8217;ll never know. On to the Q &#038; A!</p>
<p><span id="more-768"></span><br />
<strong>How did the creation of Compass come about? Were you already on the core Sass team, or did that come after? And did Nathan Weizenbaum or Hampton Catlin have any input?</strong></p>
<div class="blueInterview"><strong>Chris:</strong> I found Sass because I hated ERB (the ruby on rails default templating engine) and as the architect of <a href="http://www.caring.com/">Caring.com</a>, I decided that we would switch to Haml. Sass came bundled with it. Sass &#038; Haml were already at 2.0 at that point. Our website also used the Blueprint CSS framework and I always hated the presentation class names that blueprint forced on us and we were beginning to feel the pain that they were causing. I saw that mixins could &#8220;cure&#8221; that pain point and that the calculation features of Sass lent themselves very well to the regularity of a grid based design, so I decided I would port the blueprint grid to sass. At that time mixins didn&#8217;t accept arguments and there was no looping constructs, so the <a href="https://github.com/chriseppstein/blueprint-sass/blob/534fce95befd64a6df82d7ec020a57b14ac16576/blueprint/grid-base.sass">first version</a> of the blueprint grid was about 450 lines of sass (compared to the <a href="https://github.com/chriseppstein/compass/blob/master/frameworks/blueprint/stylesheets/blueprint/_grid.scss">current version</a> which is about 250 lines). The first time I contacted Nathan was to show him this grid and discuss how we could make it more concise. We brainstormed the argument passing semantics of mixins and the first control flow directives that night.</p>
<p>I threw my quaint little blueprint grid up onto github and suddenly started getting watchers in much larger numbers than anything else I had put up there before. I remember being very excited to get 10 watchers.</p>
<p>Eventually I ported the entire blueprint framework to sass and then I approached the blueprint team to see if they were interested in using Sass as an underlying technology. They thought the idea was interesting and told me to pursue it. I got a little carried away and basically threw out all of blueprint and replaced it with a custom tool chain. While working on this, I realized that much of the tools I was making could apply to any css framework. At some point the blueprint team decided not to merge my commits. I was actually pretty happy about this&#8230; and so I converted all my work into a new project called Compass that I could use to support lots of CSS Frameworks.</p>
<p>I worked on compass for about a year before I asked to join the Sass team. At the time there were rumblings about it splitting off from haml to it&#8217;s own project. That will finally happen very soon with the Haml/Sass 3.1 release.</p>
<p>I&#8217;ve only spoken to Hampton a couple times. He hasn&#8217;t been very involved in Haml or Sass in the time I&#8217;ve been around.</p></div>
<p><strong>When you are working on a release for Sass, do you call N. Weizenbaum and go over things/exchange code, or video conference? How do you all communicate and exchange code, and who handles what?</strong></p>
<div class="blueInterview"><strong>Chris:</strong> We chat over IM when we have decisions to make or ideas to discuss. We send emails sometimes. Nathan does a bulk of the coding on Sass, my patches to Sass generally are to the bits that concern how Sass interfaces to applications, configuration options, etc. I&#8217;ve made relatively few changes to the core language at the code level. Mostly we just collaborate on the language semantics and syntax. Because the number of touch points is low, there&#8217;s not much coordination required. Git &#038; Github are very useful for doing code reviews and sorting out issues on the bug tracker.</em></div>
<p><strong>Do you have any stats you can share on how many people are using Sass? Any growth surges?</strong></p>
<div class="blueInterview"><strong>Chris:</strong> <em>It&#8217;s hard to say. I&#8217;m curious to know as well. Based on traffic to the compass website, I estimate there are 15k &#8211; 25k active compass users. I would suspect that there are 3-5x that many Sass users.</p>
<p>Traffic has grown consistently over the past couple years. Here&#8217;s some charts:</p>
<ul>
<li><a href="https://skitch.com/crispy/rjd7a/visitors-overview-google-analytics">Compass</a></li>
<li>
<a href="https://skitch.com/crispy/rjd75/dashboard-google-analytics">Sass</a></li>
<p>Anecdotally, I&#8217;ve seen the number of peer-to-peer twitter recommendations to use Sass or Compass go up considerably in the last few months. Having a high net promoter score is a key indicator of growth, so that makes me very happy.</em></div>
<p><strong>Who is Sass intended for in your opinion? Is it mainly for hardcore Ruby developers?</strong></p>
<div class="blueInterview"><strong>Chris:</strong> Sass is for people who have to write CSS, irrespective of their background. One of the reasons I made compass was so that people who didn&#8217;t have a Ruby app could take advantage of Sass. We try to make features that operate at low levels for the more programmery users so that they can enable the less programmery front-enders with features that they will find easy to use. It&#8217;s a really tough balance to achieve, which is why we are always eager to get feedback.</div>
<p><strong>Are there any goals to try and make Sass and Compass more accessible to wider range of people? Was the SCSS syntax part that?</strong></p>
<div class="blueInterview"><strong>Chris:</strong> Yes. CSS sucks. We think the power of Sass should be available to everyone. Lots of people didn&#8217;t like the aesthetic of the indented syntax, so SCSS was introduced to bring the core technology behind Sass to more users. We hope that Sass will be integrated with more products like CSS Editors and eventually we hope to see the concepts brought to browsers themselves.</div>
<p><strong>Related to the previous question, did you have any hand in creating <a href="http://compass.handlino.com">Compass.app by Handlino</a>? If not, what do you think of it? I&#8217;m also curious on why it costs $7, when Compass itself is free. That seems backwards to me.</strong></p>
<div class="blueInterview"><strong>Chris:</strong> They consulted with me ahead of the release and I offered feedback on the features it provided. Compass is MIT licensed, which means that people can sell it and embed it if they want to, so I can&#8217;t stop them even if I wanted to at this point. But Compass needs a GUI and so far no one has made a free one, so if people are willing to pay a few dollars to avoid using the command line, I think they should. I granted them access to the Compass trademarks on the condition that their code is open. So anyone who wants to, can download the GUI and compile it for free. Of course, you need to know the command line to do that.</div>
<p><strong>Also, if you didn&#8217;t have any part to play in that, do you intend to ever create one yourself? Maybe an an app with more of an interface to try and get away from the command line?</strong></p>
<div class="blueInterview"><strong>Chris:</strong> I don&#8217;t have time to build it &#8212; I have built the core compass infrastructure in a way that I think should enable it to be integrated into a GUI with relative ease. It&#8217;s been years since I worked on desktop applications, I&#8217;m sure others will have a much easier time doing it then I would.</div>
<p><strong>I&#8217;ve only been using Sass, along with Compass for only a few months or so (and only on personal projects so far), even though I have read about it before that. It seems like a lot has been added recently though, like CSS3Pie and Lemonade. Are there any other things like those two that are in the works for Compass?</strong></p>
<div class="blueInterview"><strong>Chris:</strong> To be honest, I don&#8217;t plan the Compass features, I just react to the needs of the community and the ever changing technological landscape. I will continue to do what I always have done: listen to the users&#8217; needs and help them find solutions to their biggest pain points.</div>
<p><strong>Speaking of CSS3Pie, why was that added? Css3Pie really only effects IE, and a very limited amount of CSS3 properties (with some drawbacks I have personally seen already). Was it a trivial amount of work to add it to Compass, making it a no-brainer?</strong></p>
<div class="blueInterview"><strong>Chris:</strong> It was probably the #1 requested feature. I would have preferred it to be an extension, but it wasn&#8217;t really technologically feasible. I was at a conference with <a href="http://twitter.com/lojjic">Jason Johnston</a> so we got together and hashed out the integration. It was a couple days of work.</div>
<p><strong>Why is Compass still in Beta mode? Are we ever going to actually see 1.0?</strong></p>
<div class="blueInterview"><strong>Chris:</strong> The big remaining feature on my roadmap for compass is to make it easier to share, install, and find compass extensions and plugins. At that point, I will make compass 1.0. I&#8217;m actually quite eager for compass to hit 1.0. But just because it&#8217;s not 1.0 doesn&#8217;t mean it&#8217;s not ready for production use. It means that I might change some APIs still. But if you look at the <a href="http://beta.compass-style.org/CHANGELOG/">compass changelog</a> you will see that I&#8217;m very careful to maintain the APIs so that they continue to work across point releases &#8212; though there are deprecations in each release.</div>
<p><strong>I really like the look of the beta website, but why did you decide to get a more &#8220;hip and updated&#8221; look now, and why didn&#8217;t you design it?</strong></p>
<div class="blueInterview"><strong>Chris:</strong> I&#8217;m not a designer. The reason it wasn&#8217;t done sooner, is it&#8217;s a ton of work and I wasn&#8217;t exactly in a position to pay for a good design. I have a couple hundred hours invested in documentation and documentation infrastructure. It&#8217;s easily 2-3x more work to create the docs than it is to make the code. Eric Meyer (Creator of Susy) did a quick pass for the first design to make it bearable for the v0.10 release, Brandon Mathis did the <a href="http://beta.compass-style.org/">new version</a> over a couple weeks leading up to v0.11.</div>
<p><strong>Do the Sass vs. LESS posts and arguments bother you? And do you think LESS is any good?</strong></p>
<div class="blueInterview"><strong>Chris:</strong> No. I think competition and experimentation is good for an emerging technology segment. When Less was first announced, I was actually very excited and wanted to support it in Compass. But it lacked some key features that would enable Compass to integrate with it. I approached <a href="http://twitter.com/cloudhead">Alexis Sellier</a> and asked him to build them into Less, but he did not like some of those features and did not want them in the Less syntax. So that was that. Instead the popularity of Less showed us that users did really want a CSS-based syntax so we added a new parser to Sass allowing both syntaxes to be used interchangeably and importable by the other. This was clearly a better outcome for users, but a lot more work for Nathan.</p>
<p>My opinion of Less is that it is actually less CSS-like than SCSS is. Sass has far fewer defects, a testament to Nathan&#8217;s prowess as a developer, his attention to detail, commitment to quality, and the longevity of the project (4 years now). Alexis has quite a few active open source projects and a day job, and it&#8217;s pretty clear he&#8217;s spread too thin to do as good of a job on Less as it deserves. That saddens me, and I&#8217;ve often worried that it will reflect poorly on this class of technologies. The idea to implement Less in javascript is clearly an interesting one, I hope that Alexis will continue to work on Less.js &#8212; he has a lot of users.</p></div>
<p><strong>On Sass&#8217; website, it says that it is a meta-language, or what I call an abstracted language. Do you think this is going to become a popular trend? Where someone takes an existing language and abstracts it, like Sass does to CSS or CoffeeScript does Javascript?</strong></p>
<div class="blueInterview"><strong>Chris:</strong> I think these speak more to the entrenchment and importance of browsers as a fundamental vehicle of software delivery and how hard it is to change them in any sort of cohesive way because users have to install and upgrade them. A compiler is something that developers can install and control independent of that cycle.</div>
<p><strong>If someone like say&#8230;me&#8230;who can now use Sass, wanted to start learning Ruby, can you recommend any books, or where and how we should start? Take into account that this someone doesn&#8217;t know PHP.</strong></p>
<div class="blueInterview"><strong>Chris:</strong> I&#8217;ve been programming since I was 12 (I&#8217;m 36 now) and I&#8217;ve learned a dozen or more programming languages in my life. But I learn languages through analogy now, and not from scratch, so I don&#8217;t really know. I have some friends who want to learn, so maybe I&#8217;ll figure this out soon.</div>
<p><strong>And lastly &#8211; .sass or .scss &#8211; who wins in a fight?</strong></p>
<div class="blueInterview"><strong>Chris:</strong> I write a lot of SCSS lately for Compass. I find the flexibility it offers very useful for complex stylesheets. I use Sass when writing application stylesheets &#8212; I find the constraints it forces on us to be ideal for team-based development. If I had to pick one to the exclusion of the other, I would probably choose SCSS, but I don&#8217;t.</div>
<h3>And that is a wrap!</h3>
<p>I hope you enjoyed reading Chris&#8217; answers as much as I did. This was a real treat for me, because I got to ask him things I have been wanting to know for a while. I wanted to ask more, but I didn&#8217;t want to bombard him with a million questions and piss him off. Thank you Chris for doing this for me, and I look forward to what you do with <a href="http://beta.compass-style.org/">Compass</a> this year!</p>
<div class="gator">
<a  href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=jcDesigns-" rel="nofollow"><img src="http://tracking.hostgator.com/img/Shared/468x60.gif" border=0></a></p>
<p>Coupon Code: webmachine</p>
</div>
 <img src="http://jc-designs.net/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=768" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://jc-designs.net/blog/2011/01/informal-interview-chris-eppstein-creator-of-compass/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Create Sprites Using Lemonade In Compass</title>
		<link>http://jc-designs.net/blog/2010/12/create-sprites-using-lemonade-in-compass/</link>
		<comments>http://jc-designs.net/blog/2010/12/create-sprites-using-lemonade-in-compass/#comments</comments>
		<pubDate>Tue, 21 Dec 2010 00:07:13 +0000</pubDate>
		<dc:creator>jcDesigns</dc:creator>
				<category><![CDATA[Sass/Less/Compass]]></category>
		<category><![CDATA[Compass]]></category>
		<category><![CDATA[sass]]></category>

		<guid isPermaLink="false">http://jc-designs.net/blog/?p=692</guid>
		<description><![CDATA[I have a ton of images, now what? By now, I would think most of you know how to use sprites. They are extremely useful, and keep the number of http requests down to a minimum. You have this png file that you work on in Photoshop, and you keep adding to it, saving it [...]]]></description>
			<content:encoded><![CDATA[<h3>I have a ton of images, now what?</h3>
<p>By now, I would think most of you know how to use sprites. They are extremely useful, and keep the number of http requests down to a minimum. You have this png file that you work on in Photoshop, and you keep adding to it, saving it and whatever else. Get&#8217;s time consuming right? At least a little, so shut up you nay sayers. Wouldn&#8217;t it be great if there was an easier way? Damn straight!</p>
<h3>Thirsty? Drink some Lemonade!</h3>
<p><img src="http://jc-designs.net/newimages/blogImages/lemonade.jpg" alt="Lemonade for Compass - Sass Framework" class="left"/>Well <a href="http://beta.compass-style.org/">Compass</a> makes it easy now, and you don&#8217;t need to use Photoshop to do it! Compass has merged with <a href="http://www.hagenburger.net/BLOG/Lemonade-CSS-Sprites-for-Sass-Compass.html">Lemonade</a> to make doing this a cinch. With each new iteration of this framework, something awesome gets added, and this is just plain cool. Now you can take a bunch of images you have and make a sprite on the fly with them. Here is how you go about it.</p>
<p><span id="more-692"></span></p>
<h3>Let&#8217;s get Sassy</h3>
<p>Let&#8217;s say you have four icons in an icon folder, within your images folder (/images/icon/icon1.png), and they are all 32&#215;32 pixels. So you have icon1.png, icon2.png, icon3.png, and icon4.png. Personally I think the best way to accomplish creating the sprite is by using the &#8216;magic&#8217; icon-sprite mixin, which you would use like this:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #a1a100;color: #439AD0;">@import &quot;icon/*.png&quot;;</span>
&nbsp;
<span style="color: #6666ff;color: #439AD0;">.myClass</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
  <span style="color: #6666ff;color: #439AD0;">.icon1</span>    <span style="color: #00AA00;color: #439AD0;">&#123;</span> <span style="color: #a1a100;color: #439AD0;">@include icon-sprite(icon1);    }</span>
  <span style="color: #6666ff;color: #439AD0;">.icon2</span>   <span style="color: #00AA00;color: #439AD0;">&#123;</span> <span style="color: #a1a100;color: #439AD0;">@include icon-sprite(icon2);   }</span>
  <span style="color: #6666ff;color: #439AD0;">.icon3</span>   <span style="color: #00AA00;color: #439AD0;">&#123;</span> <span style="color: #a1a100;color: #439AD0;">@include icon-sprite(icon3);   }</span>
  <span style="color: #6666ff;color: #439AD0;">.icon4</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span> <span style="color: #a1a100;color: #439AD0;">@include icon-sprite(icon4); }</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>That crap compiles to this CSS:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;">.icon-sprite<span style="color: #00AA00;color: #439AD0;">,</span>
<span style="color: #6666ff;color: #439AD0;">.myClass</span> .icon1<span style="color: #00AA00;color: #439AD0;">,</span>
<span style="color: #6666ff;color: #439AD0;">.myClass</span> .icon2<span style="color: #00AA00;color: #439AD0;">,</span>
<span style="color: #6666ff;color: #439AD0;">.myClass</span> .icon3<span style="color: #00AA00;color: #439AD0;">,</span>
<span style="color: #6666ff;color: #439AD0;">.myClass</span> <span style="color: #6666ff;color: #439AD0;">.icon4</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">background</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">url</span><span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #ff0000;color: #439AD0;">'/images/icon-8b38262b80.png'</span><span style="color: #00AA00;color: #439AD0;">&#41;</span> <span style="color: #993333;color: #439AD0;">no-repeat</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #6666ff;color: #439AD0;">.myClass</span> <span style="color: #6666ff;color: #439AD0;">.icon1</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">background-position</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">-64px</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #6666ff;color: #439AD0;">.myClass</span> <span style="color: #6666ff;color: #439AD0;">.icon2</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">background-position</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">-32px</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #6666ff;color: #439AD0;">.myClass</span> <span style="color: #6666ff;color: #439AD0;">.icon3</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">background-position</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">-96px</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #6666ff;color: #439AD0;">.myClass</span> <span style="color: #6666ff;color: #439AD0;">.icon4</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">background-position</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span><span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>If you want to create space between each of those icons, put this above your import, where the 20px can be anything you want:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;">$icon-spacing<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">20px</span>.</pre></div></div>

<h3>The real magic!</h3>
<p>I did two tests. One with the images at the same size (32&#215;32 pixels), and then I added an icon that was 200px by 72px. The sprite gets its width from the image in the sprite that is the widest, and the CSS output shows the adjustments in the background position. It takes any guesswork or math that you have to do when you create sprites the normal way and write your own styles. This can save a lot of time if you have images that are going to be used as a block of its own (meaning not in something like an li where other images from the sprite can bleed through.</p>
<p>There are a few different methods of using Lemonade, or really the sprite function of Compass now that it is integrated. If you are interested, you can check them out at the <a href="http://beta.compass-style.org/help/tutorials/spriting/">Spriting with Compass</a> page. There are also a ton of ways to customize the sprite.</p>
<h3>Any issues?</h3>
<p>Two, one of which that you just have to be aware of when you are making the site live. If you change the sprite at all, if gives you a new png, so be aware of that and make sure you have the proper one uploaded. The second issue is, while you can customize the sprites you generate, all of those options look like they could get confusing, and I would rather just make the sprite myself. If you generated a bunch of different sprites you could also end up with a ton of CSS. If you just need a basic sprite though, this is the way to go. Thanks to Chris Eppstein for adding Lemonade to Compass.</p>
<div class="gator">
<a  href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=jcDesigns-" rel="nofollow"><img src="http://tracking.hostgator.com/img/Shared/468x60.gif" border=0></a></p>
<p>Coupon Code: webmachine</p>
</div>
 <img src="http://jc-designs.net/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=692" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://jc-designs.net/blog/2010/12/create-sprites-using-lemonade-in-compass/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update On Redesign Of JC-Designs.net And The Sass</title>
		<link>http://jc-designs.net/blog/2010/11/update-on-redesign-of-jc-designs-net-and-the-sass/</link>
		<comments>http://jc-designs.net/blog/2010/11/update-on-redesign-of-jc-designs-net-and-the-sass/#comments</comments>
		<pubDate>Thu, 04 Nov 2010 01:52:51 +0000</pubDate>
		<dc:creator>jcDesigns</dc:creator>
				<category><![CDATA[Sass/Less/Compass]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Compass]]></category>
		<category><![CDATA[sass]]></category>

		<guid isPermaLink="false">http://jc-designs.net/blog/?p=630</guid>
		<description><![CDATA[Home page is coming along It is slow going because I am doing a lot of new things. At least for me. I&#8217;m using Compass and Sass, the HTML5 boilerplate, HTML5 tags that I am still coming to grips with, and who knows what the hell else. But I wanted to show you my .scss [...]]]></description>
			<content:encoded><![CDATA[<h3>Home page is coming along</h3>
<p>It is slow going because I am doing a lot of new things. At least for me. I&#8217;m using Compass and Sass, the HTML5 boilerplate, HTML5 tags that I am still coming to grips with, and who knows what the hell else. But I wanted to show you my .scss sheet so far, so you can see what is involved. You can learn a lot just by looking at stuff like this, so if you find it helpful, let me know!</p>
<h3>What I&#8217;ve learned in the process</h3>
<p>Holy crap&#8230;there is a lot. What has helped me the most is learning a little more of Compass. I was and still am an idiot in that area, but I think I have read most of the <a href="http://compass-style.org/">site</a> now. There are a few things that evade my grasp, but for the most part, things are coming together.</p>
<p><span id="more-630"></span><br />
My Sass writing, SCSS syntax to be exact, has become faster. I don&#8217;t have to keep looking up how to write things now, and I feel like my development time will decrease now because of that. If I had to start a project that was already designed, I could probably chop off about a fourth of the time required if I just wrote the plain CSS out. That will only get better as I go.</p>
<p>Ruby. Yes, if you have kept up here, I have started learning Ruby. Won&#8217;t be easy, but I am looking forward to what is going to pop into my head. Once I have a basic knowledge of how to program in it, I&#8217;ll throw Rails in, and hopefully start using Haml. This might all be gibberish to you, but I&#8217;m more typing out future plans.</p>
<p>So to recap, in one project, I have learned the basics of Compass, Sass, and HTML5, and started learning Ruby, which I am actually not using on it. Pretty tall order for one project that started out as a simple redesign.</p>
<p>What are you learning at the moment? Comment and let me know!</p>
<h3>My Sass sheet so far</h3>
<p>Here are my Sass stylesheets so far. If anyone that has more experience in Sass than I, sees anything I can improve, please let me know &#8211; I would be very greatful.</p>
<p>Main:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;">$dkgray<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc00cc;">#2d2d2d</span><span style="color: #00AA00;color: #439AD0;">;</span>
$orange<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc00cc;">#f15c22</span><span style="color: #00AA00;color: #439AD0;">;</span>
$wht<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;color: #439AD0;">;</span>
$w<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">1020px</span><span style="color: #00AA00;color: #439AD0;">;</span>
$r<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">right</span><span style="color: #00AA00;color: #439AD0;">;</span>
$l<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span><span style="color: #00AA00;color: #439AD0;">;</span>
&nbsp;
<span style="color: #a1a100;color: #439AD0;">@mixin font ($size, $weight, $family: &quot;Arial,Helvetica,sans-serif&quot;){</span>
  <span style="color: #000000; font-weight: bold;color: #439AD0;">font</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
    family<span style="color: #00AA00;color: #439AD0;">:</span> #<span style="color: #00AA00;color: #439AD0;">&#123;</span>$family<span style="color: #00AA00;color: #439AD0;">&#125;</span><span style="color: #00AA00;color: #439AD0;">;</span>
    <span style="color: #000000; font-weight: bold;color: #439AD0;">size</span><span style="color: #00AA00;color: #439AD0;">:</span> $size<span style="color: #00AA00;color: #439AD0;">;</span>
    weight<span style="color: #00AA00;color: #439AD0;">:</span> #<span style="color: #00AA00;color: #439AD0;">&#123;</span>$weight<span style="color: #00AA00;color: #439AD0;">&#125;</span><span style="color: #00AA00;color: #439AD0;">;</span>
  <span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #a1a100;color: #439AD0;">@mixin sprite($left, $top) {</span>
    <span style="color: #000000; font-weight: bold;color: #439AD0;">background</span><span style="color: #00AA00;color: #439AD0;">:</span>  <span style="color: #993333;color: #439AD0;">url</span><span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #ff0000; font-style: italic;">../images/iconSprite.png</span><span style="color: #00AA00;color: #439AD0;">&#41;</span> <span style="color: #993333;color: #439AD0;">no-repeat</span> $left $top<span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
body <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">background</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">url</span><span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #ff0000; font-style: italic;">../images/background.jpg</span><span style="color: #00AA00;color: #439AD0;">&#41;</span> <span style="color: #993333;color: #439AD0;">repeat-x</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span> $dkgray<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $wht<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #a1a100;color: #439AD0;">@include font(16px , &quot;normal&quot;);</span>
	p <span style="color: #00AA00;color: #439AD0;">&#123;</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">line-height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">1.3</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
ul <span style="color: #00AA00;color: #439AD0;">,</span> ol <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
a  <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> lighten<span style="color: #00AA00;color: #439AD0;">&#40;</span>$orange<span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #933;">20%</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
	zoom<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">1</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">outline</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">none</span><span style="color: #00AA00;color: #439AD0;">;</span>
	&amp;<span style="color: #3333ff;">:active</span><span style="color: #00AA00;color: #439AD0;">,</span> &amp;<span style="color: #3333ff;">:visited </span><span style="color: #00AA00;color: #439AD0;">&#123;</span>
		<span style="color: #a1a100;color: #439AD0;">@extend a;</span>
	<span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
a<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $orange<span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
h1 <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #a1a100;color: #439AD0;">@include font(24px, &quot;bold&quot;);</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">text-shadow</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">2px</span> <span style="color: #933;">2px</span>  <span style="color: #933;">5px</span> $orange<span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
h2 <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #a1a100;color: #439AD0;">@include font(18px, &quot;bold&quot;);</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
.<span style="color: #000000; font-weight: bold;color: #439AD0;">clear</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">float</span><span style="color: #00AA00;color: #439AD0;">:</span> $l<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">clear</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">both</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
.<span style="color: #000000; font-weight: bold;color: #439AD0;">border</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">border-bottom</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">1px</span> $orange <span style="color: #993333;color: #439AD0;">dotted</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">padding</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">5px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">10px</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #6666ff;color: #439AD0;">.marginTop</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">margin-top</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">20px</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#container</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> $w<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #993333;color: #439AD0;">auto</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">overflow</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">hidden</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
header <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> $w<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">height</span><span style="color: #00AA00;color: #439AD0;">:</span>  <span style="color: #933;">337px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">position</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">relative</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">background</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">url</span><span style="color: #00AA00;color: #439AD0;">&#40;</span>../images/jcIndex_01.png<span style="color: #00AA00;color: #439AD0;">&#41;</span> <span style="color: #993333;color: #439AD0;">no-repeat</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">top</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#contentRepeat</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> $w<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">background</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">url</span><span style="color: #00AA00;color: #439AD0;">&#40;</span>../images/jcIndex_03.jpg<span style="color: #00AA00;color: #439AD0;">&#41;</span> <span style="color: #993333;color: #439AD0;">repeat-y</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">top</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#contentTop</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> $w<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">background</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">url</span><span style="color: #00AA00;color: #439AD0;">&#40;</span>../images/jcIndex_02.jpg<span style="color: #00AA00;color: #439AD0;">&#41;</span> <span style="color: #993333;color: #439AD0;">no-repeat</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">top</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">min-height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">500px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">auto</span> !important<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">500px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">overflow</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">hidden</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">padding</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">80px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #6666ff;color: #439AD0;">.ie6</span> <span style="color: #cc00cc;">#contentTop</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span><span style="color: #000000; font-weight: bold;color: #439AD0;">overflow</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">visible</span><span style="color: #00AA00;color: #439AD0;">;</span><span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#contentLeft</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">580px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">float</span><span style="color: #00AA00;color: #439AD0;">:</span> $l<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">70px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	h1 <span style="color: #00AA00;color: #439AD0;">&#123;</span>
		<span style="color: #a1a100;color: #439AD0;">@include font(32px, &quot;bold&quot;, &quot;Bebas, Arial,Helvetica,sans-serif&quot;);</span>
	<span style="color: #00AA00;color: #439AD0;">&#125;</span>
	ul <span style="color: #00AA00;color: #439AD0;">&#123;</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">20px</span> <span style="color: #cc66cc;color: #439AD0;">0</span>  <span style="color: #933;">20px</span> <span style="color: #933;">30px</span><span style="color: #00AA00;color: #439AD0;">;</span>
		li <span style="color: #00AA00;color: #439AD0;">&#123;</span>
			<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">10px</span><span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #00AA00;color: #439AD0;">&#125;</span>
	<span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#contentRight</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">260px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">float</span><span style="color: #00AA00;color: #439AD0;">:</span> $r<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">38px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">padding</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">20px</span> <span style="color: #933;">16px</span> <span style="color: #933;">10px</span> <span style="color: #933;">20px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #a1a100;color: #439AD0;">@include border-radius(10px 0px 0px 10px);</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">background</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">none</span> $dkgray<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">border</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">2px</span> $wht <span style="color: #993333;color: #439AD0;">solid</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">border-right</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">none</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #808080; font-style: italic;color: #439AD0;">/*
****************Call to Action in the right sidebar *********************/</span>
&nbsp;
<span style="color: #cc00cc;">#calltoAction</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">260px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">181px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">background</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">url</span><span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #ff0000; font-style: italic;">../images/calltoAction.png</span><span style="color: #00AA00;color: #439AD0;">&#41;</span> <span style="color: #993333;color: #439AD0;">no-repeat</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">top</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $dkgray<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">padding</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">25px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
	h1 <span style="color: #00AA00;color: #439AD0;">&#123;</span>
		<span style="color: #a1a100;color: #439AD0;">@include font(16px, &quot;bold&quot;);</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $dkgray<span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">text-align</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">center</span><span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">text-shadow</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">none</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #00AA00;color: #439AD0;">&#125;</span>
	h2 <span style="color: #00AA00;color: #439AD0;">&#123;</span>
		<span style="color: #a1a100;color: #439AD0;">@include font(42px, &quot;bold&quot;, &quot;Bebas, Arial,Helvetica,sans-serif&quot;);</span>
		<span style="color: #a1a100;color: #439AD0;">@include sprite(210px, 13px);</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $dkgray<span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">text-align</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">center</span><span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">padding</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">18px</span> <span style="color: #933;">4px</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">text-shadow</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">3px</span> <span style="color: #cc00cc;">#999</span><span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">border</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">none</span><span style="color: #00AA00;color: #439AD0;">;</span>
		a <span style="color: #00AA00;color: #439AD0;">&#123;</span>
			<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $dkgray<span style="color: #00AA00;color: #439AD0;">;</span>
			&amp;<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;color: #439AD0;">&#123;</span>
			<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $orange<span style="color: #00AA00;color: #439AD0;">;</span>
			<span style="color: #00AA00;color: #439AD0;">&#125;</span>
		<span style="color: #00AA00;color: #439AD0;">&#125;</span>
	<span style="color: #00AA00;color: #439AD0;">&#125;</span>
	h3 <span style="color: #00AA00;color: #439AD0;">&#123;</span>
		<span style="color: #a1a100;color: #439AD0;">@include font(16px, &quot;bold&quot;);</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $dkgray<span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">text-align</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">right</span><span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">20px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;color: #439AD0;">/*
****************Social Media in right sidebar***********************/</span>
&nbsp;
<span style="color: #cc00cc;">#social</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">20px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">30px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">overflow</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">hidden</span><span style="color: #00AA00;color: #439AD0;">;</span>
	ul <span style="color: #00AA00;color: #439AD0;">&#123;</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">20px</span><span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">padding</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
		li <span style="color: #00AA00;color: #439AD0;">&#123;</span>
			<span style="color: #000000; font-weight: bold;color: #439AD0;">list-style</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">none</span><span style="color: #00AA00;color: #439AD0;">;</span>
			<span style="color: #000000; font-weight: bold;color: #439AD0;">float</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span><span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #00AA00;color: #439AD0;">&#125;</span>
		<span style="color: #6666ff;color: #439AD0;">.twitter</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
			<span style="color: #a1a100;color: #439AD0;">@include sprite(0px , -58px);</span>
			<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">15px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #00AA00;color: #439AD0;">&#125;</span>
		.linked<span style="color: #00AA00;color: #439AD0;">&#123;</span>
			<span style="color: #a1a100;color: #439AD0;">@include sprite(-70px , -58px);</span>
			<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">15px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #00AA00;color: #439AD0;">&#125;</span>
		<span style="color: #6666ff;color: #439AD0;">.rss</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
			<span style="color: #a1a100;color: #439AD0;">@include sprite(-139px , -58px);</span>
		<span style="color: #00AA00;color: #439AD0;">&#125;</span>
		a <span style="color: #00AA00;color: #439AD0;">&#123;</span>
			<span style="color: #000000; font-weight: bold;color: #439AD0;">display</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">block</span><span style="color: #00AA00;color: #439AD0;">;</span>
			<span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">63px</span><span style="color: #00AA00;color: #439AD0;">;</span>
			<span style="color: #000000; font-weight: bold;color: #439AD0;">height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">65px</span><span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #00AA00;color: #439AD0;">&#125;</span>
	<span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;color: #439AD0;">/*
****************Recent Posts in right sidebar *********************/</span>
<span style="color: #cc00cc;">#recent</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">20px</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
	h3 <span style="color: #00AA00;color: #439AD0;">&#123;</span>
         <span style="color: #000000; font-weight: bold;color: #439AD0;">background</span><span style="color: #00AA00;color: #439AD0;">:</span> $orange<span style="color: #00AA00;color: #439AD0;">;</span>
		 <span style="color: #a1a100;color: #439AD0;">@include font(16px, &quot;bold&quot;);</span>
		 <span style="color: #000000; font-weight: bold;color: #439AD0;">text-transform</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">uppercase</span><span style="color: #00AA00;color: #439AD0;">;</span>
         <span style="color: #a1a100;color: #439AD0;">@include linear-gradient(color-stops($orange, darken($orange, 25%)), left); </span>
         <span style="color: #000000; font-weight: bold;color: #439AD0;">padding</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">10px</span> <span style="color: #933;">20px</span><span style="color: #00AA00;color: #439AD0;">;</span>
         <span style="color: #000000; font-weight: bold;color: #439AD0;">margin-top</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
         <span style="color: #000000; font-weight: bold;color: #439AD0;">position</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">relative</span><span style="color: #00AA00;color: #439AD0;">;</span>
        <span style="color: #a1a100;color: #439AD0;">@include box-shadow( darken($dkgray, 10%), 1px, 1px, 3px);</span>
        <span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $wht<span style="color: #00AA00;color: #439AD0;">;</span>
        <span style="color: #000000; font-weight: bold;color: #439AD0;">text-shadow</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> $dkgray<span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #a1a100;color: #439AD0;">@include font(24px, &quot;bold&quot;, &quot;Bebas, Arial,Helvetica,sans-serif&quot;);</span>
	<span style="color: #00AA00;color: #439AD0;">&#125;</span>
	<span style="color: #6666ff;color: #439AD0;">.arrow</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
         <span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
         <span style="color: #000000; font-weight: bold;color: #439AD0;">line-height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
         <span style="color: #000000; font-weight: bold;color: #439AD0;">border-left</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">20px</span> <span style="color: #993333;color: #439AD0;">solid</span> <span style="color: #993333;color: #439AD0;">transparent</span><span style="color: #00AA00;color: #439AD0;">;</span>
         <span style="color: #000000; font-weight: bold;color: #439AD0;">border-top</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">10px</span> <span style="color: #993333;color: #439AD0;">solid</span> darken<span style="color: #00AA00;color: #439AD0;">&#40;</span>$orange<span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #933;">20%</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
         <span style="color: #000000; font-weight: bold;color: #439AD0;">top</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">103%</span><span style="color: #00AA00;color: #439AD0;">;</span>
         <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
         <span style="color: #000000; font-weight: bold;color: #439AD0;">position</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">absolute</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #00AA00;color: #439AD0;">&#125;</span>
	ul <span style="color: #00AA00;color: #439AD0;">&#123;</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">20px</span><span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">list-style</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">none</span><span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">overflow</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">hidden</span><span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">padding</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">background</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">none</span> darken<span style="color: #00AA00;color: #439AD0;">&#40;</span>$dkgray<span style="color: #00AA00;color: #439AD0;">,</span> <span style="color: #933;">10%</span><span style="color: #00AA00;color: #439AD0;">&#41;</span><span style="color: #00AA00;color: #439AD0;">;</span>
		<span style="color: #a1a100;color: #439AD0;">@include font(14px, &quot;normal&quot;);</span>
		li <span style="color: #00AA00;color: #439AD0;">&#123;</span>
			<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">15px</span><span style="color: #00AA00;color: #439AD0;">;</span>
			<span style="color: #6666ff;color: #439AD0;">.date</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
				<span style="color: #000000; font-weight: bold;color: #439AD0;">font-weight</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">bold</span><span style="color: #00AA00;color: #439AD0;">;</span>
				<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $orange<span style="color: #00AA00;color: #439AD0;">;</span>
			<span style="color: #00AA00;color: #439AD0;">&#125;</span>
			a <span style="color: #00AA00;color: #439AD0;">&#123;</span>
				<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $wht<span style="color: #00AA00;color: #439AD0;">;</span>
				&amp;<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;color: #439AD0;">&#123;</span>
					<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $orange<span style="color: #00AA00;color: #439AD0;">;</span>
				<span style="color: #00AA00;color: #439AD0;">&#125;</span>
			<span style="color: #00AA00;color: #439AD0;">&#125;</span>
		<span style="color: #00AA00;color: #439AD0;">&#125;</span>
	<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>Nav:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;">nav <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">position</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">absolute</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">top</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">240px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">left</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">67px</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
nav li <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">float</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">border-right</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">1px</span> $orange <span style="color: #993333;color: #439AD0;">dotted</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">12px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">padding</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">12px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">line-height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">18px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	a <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $orange<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">text-decoration</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">none</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">display</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">block</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">float</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #a1a100;color: #439AD0;">@include font(18px, &quot;bold&quot;);</span>
	<span style="color: #6666ff;color: #439AD0;">.byline</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
		<span style="color: #a1a100;color: #439AD0;">@include font(12px, &quot;normal&quot;);</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">text-transform</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">uppercase</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #00AA00;color: #439AD0;">&#125;</span>
	&amp;<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $wht<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
nav li<span style="color: #3333ff;">:nth-</span>child<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #cc66cc;color: #439AD0;">6</span><span style="color: #00AA00;color: #439AD0;">&#41;</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">border</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">none</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>Footer:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;">footer <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> $w<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">min-height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">222px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">auto</span> !important<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">222px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">overflow</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">hidden</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">background</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">url</span><span style="color: #00AA00;color: #439AD0;">&#40;</span>../images/jcIndex_05.jpg<span style="color: #00AA00;color: #439AD0;">&#41;</span> <span style="color: #993333;color: #439AD0;">no-repeat</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">bottom</span><span style="color: #00AA00;color: #439AD0;">;</span>
	h3 <span style="color: #00AA00;color: #439AD0;">&#123;</span>
		<span style="color: #a1a100;color: #439AD0;">@extend .border;</span>
	<span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #6666ff;color: #439AD0;">.ie6</span> footer  <span style="color: #00AA00;color: #439AD0;">&#123;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">overflow</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">visible</span><span style="color: #00AA00;color: #439AD0;">;</span><span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#footerLeft</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> $w - <span style="color: #cc66cc;color: #439AD0;">760</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">float</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">50px</span> <span style="color: #933;">50px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">70px</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#footerMiddle</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #a1a100;color: #439AD0;">@extend #footerLeft;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">50px</span> <span style="color: #933;">50px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#footerRight</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #a1a100;color: #439AD0;">@extend #footerLeft;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">50px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#copyright</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> $w<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">clear</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">both</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">float</span><span style="color: #00AA00;color: #439AD0;">:</span> $l<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">30px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">text-align</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">center</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #a1a100;color: #439AD0;">@include font(12px, &quot;normal&quot;);</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>Let me know if you have any questions!</p>
<div class="gator">
<a  href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=jcDesigns-" rel="nofollow"><img src="http://tracking.hostgator.com/img/Shared/468x60.gif" border=0></a></p>
<p>Coupon Code: webmachine</p>
</div>
 <img src="http://jc-designs.net/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=630" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://jc-designs.net/blog/2010/11/update-on-redesign-of-jc-designs-net-and-the-sass/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Review Of Compass For Sass</title>
		<link>http://jc-designs.net/blog/2010/10/a-review-of-compass-for-sass/</link>
		<comments>http://jc-designs.net/blog/2010/10/a-review-of-compass-for-sass/#comments</comments>
		<pubDate>Tue, 26 Oct 2010 03:39:32 +0000</pubDate>
		<dc:creator>jcDesigns</dc:creator>
				<category><![CDATA[Sass/Less/Compass]]></category>
		<category><![CDATA[Compass]]></category>
		<category><![CDATA[sass]]></category>

		<guid isPermaLink="false">http://jc-designs.net/blog/?p=620</guid>
		<description><![CDATA[Front enders be warned, its hard, but worth it First, if Chris E., creator of Compass, wanders over and reads this, I apologize if I was harassing you with my questions. I&#8217;ll post them in the document support section from now on. Compass does not feel like it is written for non-programmers (which is probably [...]]]></description>
			<content:encoded><![CDATA[<h3>Front enders be warned, its hard, but worth it</h3>
<p>First, if Chris E., creator of Compass, wanders over and reads this, I apologize if I was harassing you with my questions. I&#8217;ll post them in the document support section from now on. </p>
<p>Compass does not feel like it is written for non-programmers (which is probably fine for most users and the creator). Why, you ask would that be ok? Because I don&#8217;t feel that was their intention. I&#8217;ve read that they want to make Sass/SCSS more accessible to people new to it, but if that is true, they is a lot of work. To use them, you need the command line. How many of you are familiar with that? If you are young and don&#8217;t remember DOS, it is intimidating. We are used to interfaces, right? I mean, look at the editors we use. The command line has NOTHING to look at. Literally. So besides trying to learn a cool&#8230;not sure what to actually call Compass or Sass&#8230;technology? You have to dive into using the command line. Forget Dreamweaver for editing your .scss file, won&#8217;t work (at least not the version I have CS4)&#8230;which doesn&#8217;t matter all that much to me since I am using NetBeans and Notepad++. My point is, actually USING these things is great. Getting there sucks.</p>
<p>The install process is a bitch. At least if you go the Ruby way, and I am not sure there is another way, considering it is a gem, but then you have to wrap your brains around that one, too. I know that this sounds discouraging, but I am here to tell you that ALL that crap&#8230;is worth it. Just be prepared for some serious learning and a lot of searching.</p>
<p><span id="more-620"></span></p>
<h3>Its the little things that make me happy</h3>
<p>Once you have everything set up and running Compass comes with some seriously awesome stuff. You know how annoying it is to type out all the vendor prefixes to the CSS3 properties we have come to love? Compass has mixins built in for that. You use the @import line at the top of your .scss file like so:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #a1a100;color: #439AD0;">@import &quot;compass/css3&quot;;</span></pre></div></div>

<p>This includes most of the mixins you will need. If you haven&#8217;t kept up with me, a mixin is basically a chunk of written out css that you plug values into so you don&#8217;t have to keep repeating your styles. For instance, if you write this:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #6666ff;color: #439AD0;">.myClass</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
<span style="color: #a1a100;color: #439AD0;">@include border-radius(10px);</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>The compiled CSS looks like this:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #6666ff;color: #439AD0;">.myClass</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
  -moz-border-radius<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;color: #439AD0;">;</span>
  -webkit-border-radius<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;color: #439AD0;">;</span>
  -o-border-radius<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;color: #439AD0;">;</span>
  -ms-border-radius<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;color: #439AD0;">;</span>
  -khtml-border-radius<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;color: #439AD0;">;</span>
  border-radius<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>Personally, I don&#8217;t write all of those out myself, but Compass makes sure your bases are covered. It also (<strong>one I learned that you need version 0.10.6.pre.1 for it to work</strong>) makes the @font-face easy to use. Here is what you would write (after the imports at the top of your file):</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #a1a100;color: #439AD0;">@include font-face(&quot;Miso&quot;, font-files(&quot;../fonts/miso-bold-webfont.ttf&quot;, truetype, &quot;fonts/miso-bold-webfont.otf&quot;, opentype));</span>
&nbsp;
<span style="color: #6666ff;color: #439AD0;">.myClass</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
<span style="color: #000000; font-weight: bold;color: #439AD0;">font-family</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #ff0000;color: #439AD0;">&quot;Miso&quot;</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>Of course that looks easy, but it took a while for me to get everything working. I couldn&#8217;t find it written anywhere that @font-face needs the 0.10.6.pre.1 version to work properly. I couldn&#8217;t find it in the document support either, which maybe because I am one of the few non-real coders looking for answers. Now that I have it all in place, this crap is awesome.</p>
<h3>I am using Sass, why do I want to use Compass?</h3>
<p>Compass does a bunch of things that were not so obvious until I thought about why I was bothering with it. Then it all became clear. Compass isn&#8217;t just a compiler. Here is some of what it can do for you:</p>
<ul>
<li>Set up a project with all the correct folders and starting files you need</li>
<li>Can use Blueprint if you are into using a CSS grid system (which I have found that I am not!)</li>
<li>Yes, it will compile your Sass/SCSS into CSS &#8211; in different formats: nested, expanded, compact or compressed (meaning you like all 1 line, block or whatever&#8230;it will do it)</li>
<li>Modules for Mixins that will help with all the CSS3 crap you can imagine</li>
<li>A dedicated creator who will not call you an asshole and to stop bothering him</li>
</ul>
<h3>Do I have anything really bad to say about it?</h3>
<p>No. Well&#8230;no. Bear with me while I explain. Web Designers and Front End Developers will struggle with it. If you are a designer with limited knowledge of how to build a site, or just the basics, you will either take a look at Sass and run away screaming mad like you failed at the Southern Oracle, or you will say why bother because CSS is so damn awesome. If you are a front end guy/woman, you might be intimidated by all that is involved just to get things going, much less using it, and talk yourself out of it because&#8230;well CSS is so damn awesome.</p>
<p>Sass and Compass are NOT fun to install, like I have said. It requires using the command line. You can get around it, trust me. Once you do a few things with it you will find yourself feeling like a bad ass, even though you aren&#8217;t doing anything all that impressive. The real issue is once you have Compass installed. Which of course is where I ran into some serious &#8220;WtF!&#8221;</p>
<p>The documentation seems to have everything you need, only&#8230;it doesn&#8217;t. And honestly, I don&#8217;t think that is the fault of the creator, because as I said above, I don&#8217;t believe this project was made for you&#8230;or me. It was written for them. By them I mean Ruby coders. They already know what the hell they are doing, and the documentation/support is probably quite awesome. But what if you are a complete newb to something like this, and you need to know how to upgrade to the next version, when you ALREADY did a gem update to make sure you have everything? It didn&#8217;t give you the latest version (guessing because it is not the latest stable release?). Now what? What do you type? Or you figured out that there is crap on github or whatever it&#8217;s called, that you can download, but you don&#8217;t know where to put it once you extract it. Where exactly do you put the @import lines for partials (think of partials as additional css files that you import into your main one)? I had to put two of mine after the mixins I created myself, otherwise the additional css in them wouldn&#8217;t include the partials. That isn&#8217;t written anywhere I could find.</p>
<p>I think you get what I am trying to point out. There is a higher learning curve than what I think the creator and Ruby people would say there is. I don&#8217;t feel the documentation is written for the person new to Sass and Compass, and the kinds of questions we would ask are not the kind you are going to find answered in the support docs. I believe if there was some discussion with new users and their troubles using it, the support would be improved a hundred fold. It really freakin&#8217; needs a &#8220;for idiots&#8221; section.</p>
<p>With all of that said, I am telling you to take off your lazy mental cap, stop thinking CSS is the end all be all, and use Compass. Of course if you are using Compass, you are using Sass. But you should. It won&#8217;t take web development by storm and have everyone using it simply because it is a different way of thinking about your CSS. What I am saying though, is YOU should. Most of us developers are simply happy to do what we are doing. Stop that crap! </p>
<p>I wrote an article last month for <a href="http://www.onextrapixel.com/2010/09/10/web-development-dont-just-keep-up-with-everyone-else/">OXP</a> about getting ahead and NOT just keeping up with everyone else. If you agree with that, you need to take your CSS development to the next step. Sass and Compass will take you there. Sass takes a lot of repetitive writing out of CSS, and puts the real kick ass back into it. Compass makes Sass better by extension. If you are thinking of using Sass, you need to be using Compass. Both are 150% worth the frustration and hair pulling and a loudly screamed &#8220;F*#%!&#8221; at your monitor. Both will make you better at what you do.</p>
<div class="gator">
<a  href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=jcDesigns-" rel="nofollow"><img src="http://tracking.hostgator.com/img/Shared/468x60.gif" border=0></a></p>
<p>Coupon Code: webmachine</p>
</div>
 <img src="http://jc-designs.net/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=620" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://jc-designs.net/blog/2010/10/a-review-of-compass-for-sass/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sass (SCSS) and Compass Cheat Sheet</title>
		<link>http://jc-designs.net/blog/2010/10/sass-scss-and-compass-cheat-sheet/</link>
		<comments>http://jc-designs.net/blog/2010/10/sass-scss-and-compass-cheat-sheet/#comments</comments>
		<pubDate>Thu, 21 Oct 2010 03:32:10 +0000</pubDate>
		<dc:creator>jcDesigns</dc:creator>
				<category><![CDATA[Sass/Less/Compass]]></category>
		<category><![CDATA[Compass]]></category>
		<category><![CDATA[sass]]></category>

		<guid isPermaLink="false">http://jc-designs.net/blog/?p=607</guid>
		<description><![CDATA[Because there isn&#8217;t one First, a huge thank you to Hampton Catlin and Nathan Weizenbaum for giving us Sass. As far as I know, there isn&#8217;t a Sass (SCSS) Cheat Sheet out there, and there should be. I am fairly certain that most people new to Sass and just getting into it have done plenty [...]]]></description>
			<content:encoded><![CDATA[<h3>Because there isn&#8217;t one</h3>
<p>First, a huge thank you to <a href="http://hamptoncatlin.com/">Hampton Catlin</a> and <a href="http://nex-3.com/">Nathan Weizenbau</a>m for giving us Sass.</p>
<p>As far as I know, there isn&#8217;t a Sass (SCSS) Cheat Sheet out there, and there should be. I am fairly certain that most people new to Sass and just getting into it have done plenty of searching for what they are trying to do, but find the actual help available lacking. There are very knowledgeable people out there that are willing to help,like Chris Eppstein and Derek Perez, but outside of those two, there are very few places to turn too. The <a href="http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html">documentation</a> is ok, but I hate weeding through that thing. I want a cheat sheet that shows me how to do specific things. The problem I keep thinking about though is that you don&#8217;t just need the syntax, or a list of methods like jQuery, but actual small examples of how to write something. And just to make things interesting, let&#8217;s include Compass!</p>
<h3>The real problem &#8211; I need help</h3>
<p>I can&#8217;t do it alone, because I am a newbie. I can start it and add to it as I go, but someone more knowledgeable will have to provide the trickier stuff or just things that I may have missed. So, I am asking you to help me and leave a comment on what should be added. I&#8217;ll post it in code form below, and provide a pdf file that you can download below. The Compass part I will include in the pdf version.</p>
<p><a href="http://www.jc-designs.net/pdf/sassCheat.pdf" target="_blank" class="download">Download File</a></p>
<p><span id="more-607"></span></p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #808080; font-style: italic;color: #439AD0;">/* Variable: */</span>
$red<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc00cc;">#ff0000</span><span style="color: #00AA00;color: #439AD0;">;</span>
&nbsp;
<span style="color: #6666ff;color: #439AD0;">.myClass</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $red<span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;color: #439AD0;">/* !default: If a variable isn't given a value, it uses the one set for default */</span>
$color<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;color: #439AD0;">;</span>
$color<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc00cc;">#ff0000</span> !<span style="color: #993333;color: #439AD0;">default</span><span style="color: #00AA00;color: #439AD0;">;</span>
&nbsp;
<span style="color: #6666ff;color: #439AD0;">.myClass</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $color<span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;color: #439AD0;">/* compiles to black - if color isn't defined, then it gets red */</span>
<span style="color: #6666ff;color: #439AD0;">.myClass</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;color: #439AD0;">/* Mixin: Re-use whole chunks of CSS, properties or selectors */</span>
<span style="color: #a1a100;color: #439AD0;">@mixin myfont ($size, $weight, $family){</span>
  <span style="color: #000000; font-weight: bold;color: #439AD0;">font</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
    <span style="color: #000000; font-weight: bold;color: #439AD0;">size</span><span style="color: #00AA00;color: #439AD0;">:</span> $size<span style="color: #00AA00;color: #439AD0;">;</span>
    weight<span style="color: #00AA00;color: #439AD0;">:</span> $weight<span style="color: #00AA00;color: #439AD0;">;</span>
    family<span style="color: #00AA00;color: #439AD0;">:</span> $family<span style="color: #00AA00;color: #439AD0;">;</span>
  <span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #6666ff;color: #439AD0;">.myClass</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
<span style="color: #a1a100;color: #439AD0;">@include font(18px, &quot;bold&quot;, &quot;Arial,Helvetica,sans-serif&quot;);</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;color: #439AD0;">/* Nesting: Avoids repetition by nesting selectors within one another */</span>
nav ul <span style="color: #00AA00;color: #439AD0;">&#123;</span>
  <span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
  <span style="color: #000000; font-weight: bold;color: #439AD0;">padding</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
  li <span style="color: #00AA00;color: #439AD0;">&#123;</span>
    <span style="color: #000000; font-weight: bold;color: #439AD0;">list-style</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">none</span><span style="color: #00AA00;color: #439AD0;">;</span>
    <span style="color: #000000; font-weight: bold;color: #439AD0;">display</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">inline</span><span style="color: #00AA00;color: #439AD0;">;</span>
    a <span style="color: #00AA00;color: #439AD0;">&#123;</span>
       <span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $red<span style="color: #00AA00;color: #439AD0;">;</span>
    <span style="color: #00AA00;color: #439AD0;">&#125;</span>  
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;color: #439AD0;">/* Nested Properties */</span>
<span style="color: #6666ff;color: #439AD0;">.myFont</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
  <span style="color: #000000; font-weight: bold;color: #439AD0;">font</span><span style="color: #00AA00;color: #439AD0;">:</span><span style="color: #00AA00;color: #439AD0;">&#123;</span>
    family<span style="color: #00AA00;color: #439AD0;">:</span> Arial<span style="color: #00AA00;color: #439AD0;">;</span>
    <span style="color: #000000; font-weight: bold;color: #439AD0;">size</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">14px</span><span style="color: #00AA00;color: #439AD0;">;</span>
    weight<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">bold</span><span style="color: #00AA00;color: #439AD0;">;</span>
  <span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;color: #439AD0;">/* Selector Inheritance (Using @extend): Give a selector the styles of one,
PLUS any additional. This way you don't repeat classes. */</span>
<span style="color: #6666ff;color: #439AD0;">.myClass</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc00cc;">#ff0000</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #6666ff;color: #439AD0;">.anotherClass</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
<span style="color: #a1a100;color: #439AD0;">@extend .myClass;</span>
<span style="color: #000000; font-weight: bold;color: #439AD0;">border</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#000</span> <span style="color: #993333;color: #439AD0;">solid</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;color: #439AD0;">/* '&amp;': Referencing Parent Selectors */</span>
a <span style="color: #00AA00;color: #439AD0;">&#123;</span>
  <span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc00cc;">#ff0000</span><span style="color: #00AA00;color: #439AD0;">;</span>
  &amp;<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;color: #439AD0;">&#123;</span>
    <span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc00cc;">#666666</span><span style="color: #00AA00;color: #439AD0;">;</span>
  <span style="color: #00AA00;color: #439AD0;">&#125;</span> 
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;color: #439AD0;">/* Operations: +, -, *, /, %*/</span>
$width<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">1000px</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #6666ff;color: #439AD0;">.myClass</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
  <span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> $width - <span style="color: #933;">400px</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;color: #439AD0;">/* Interpolation: #{} */</span>
$className<span style="color: #00AA00;color: #439AD0;">:</span> samcro<span style="color: #00AA00;color: #439AD0;">;</span>
$attr<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">background</span><span style="color: #00AA00;color: #439AD0;">;</span>
a.#<span style="color: #00AA00;color: #439AD0;">&#123;</span>$className<span style="color: #00AA00;color: #439AD0;">&#125;</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span> #<span style="color: #00AA00;color: #439AD0;">&#123;</span>$attr<span style="color: #00AA00;color: #439AD0;">&#125;</span>-<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc00cc;">#000000</span> <span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;color: #439AD0;">/* compiles to */</span>
a<span style="color: #6666ff;color: #439AD0;">.samcro</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
<span style="color: #000000; font-weight: bold;color: #439AD0;">background-color</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;color: #439AD0;">/* Partials: Additional Sass/SCSS files you want to import but don't want
to compile into additional CSS files (meaning styles are imported into the
main .scss file) */</span>
<span style="color: #808080; font-style: italic;color: #439AD0;">/* Just save the new file with an underscore in front of it: _nav.scss,
then in the main sass/scss file type - (NOTE - just found out you will get an error if you do not have it AFTER your declared variables and stuff) */</span>
<span style="color: #a1a100;color: #439AD0;">@import &quot;nav&quot;;</span>
&nbsp;
<span style="color: #808080; font-style: italic;color: #439AD0;">/* @if, @elseif, @else */</span>
$type<span style="color: #00AA00;color: #439AD0;">:</span> monster<span style="color: #00AA00;color: #439AD0;">;</span>
p <span style="color: #00AA00;color: #439AD0;">&#123;</span>
  <span style="color: #a1a100;color: #439AD0;">@if $type == ocean {</span>
    <span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">blue</span><span style="color: #00AA00;color: #439AD0;">;</span>
  <span style="color: #00AA00;color: #439AD0;">&#125;</span> <span style="color: #a1a100;color: #439AD0;">@else if $type == matador {</span>
    <span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">red</span><span style="color: #00AA00;color: #439AD0;">;</span>
  <span style="color: #00AA00;color: #439AD0;">&#125;</span> <span style="color: #a1a100;color: #439AD0;">@else if $type == monster {</span>
    <span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">green</span><span style="color: #00AA00;color: #439AD0;">;</span>
  <span style="color: #00AA00;color: #439AD0;">&#125;</span> <span style="color: #a1a100;color: #439AD0;">@else {</span>
    <span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">black</span><span style="color: #00AA00;color: #439AD0;">;</span>
  <span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;color: #439AD0;">/* @for - could really badass on lists if you needed them each to have
unique styles (@while works similar) */</span>
<span style="color: #a1a100;color: #439AD0;">@for $i from 1 through 3 {</span>
  .myClass-#<span style="color: #00AA00;color: #439AD0;">&#123;</span>$i<span style="color: #00AA00;color: #439AD0;">&#125;</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">2px</span> <span style="color: #00AA00;color: #439AD0;">*</span> $i<span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;color: #439AD0;">/* compiles to */</span>
<span style="color: #6666ff;color: #439AD0;">.myClass-1</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
  <span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">2px</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #6666ff;color: #439AD0;">.myClass-2</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
  <span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">4px</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #6666ff;color: #439AD0;">.myCass-3</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
  <span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">6px</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<h3>Sass Resources you should check out</h3>
<p>That is the extent of what I know, a lot gathered from the Sass Reference page, some I knew, and some gathered from questions I&#8217;ve learned from asking around. Here is a list of places for you to go to, to learn more:</p>
<ul>
<li><a href="http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html">Sass Reference</a></li>
<li><a href="http://blog.derekperez.com/">Derek Perez&#8217;s blog</a> &#8211; he posts some cool stuff on Sass</li>
<li><a href="http://chriseppstein.github.com/blog/">Chris Eppstein&#8217;s blog</a> &#8211; same as above</li>
<li><a href="http://twitter.com/SassWatch">Sass Watch</a> twitter feed</li>
</ul>
<p>If you know more, let me know!</p>
<h3>Help me help them</h3>
<p>I would like some help with syntax changes as well (I&#8217;ve seen &#8216;+&#8217; and &#8216;=&#8217; for mixins and calls, but unsure if that works with SCSS). Let me know what you think, and PLEASE let me know what I can add so newbies can get all the basics in one place and have an easier time getting started using Sass. If you don&#8217;t, my house will be turned into a golf course and the Fratellis will get me.</p>
<div class="gator">
<a  href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=jcDesigns-" rel="nofollow"><img src="http://tracking.hostgator.com/img/Shared/468x60.gif" border=0></a></p>
<p>Coupon Code: webmachine</p>
</div>
 <img src="http://jc-designs.net/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=607" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://jc-designs.net/blog/2010/10/sass-scss-and-compass-cheat-sheet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using Sass(SCSS) On My Website Redesign</title>
		<link>http://jc-designs.net/blog/2010/10/using-sassscss-on-my-website-redesign/</link>
		<comments>http://jc-designs.net/blog/2010/10/using-sassscss-on-my-website-redesign/#comments</comments>
		<pubDate>Thu, 14 Oct 2010 04:11:45 +0000</pubDate>
		<dc:creator>jcDesigns</dc:creator>
				<category><![CDATA[Sass/Less/Compass]]></category>
		<category><![CDATA[Compass]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[sass]]></category>

		<guid isPermaLink="false">http://jc-designs.net/blog/?p=594</guid>
		<description><![CDATA[Out with 960gs, in with Sass Note: I have included at the bottom of this article, the actual Sass/CSS I have written for my redesign. When I am completely finished with the build, I will post the whole thing for you to view. If you see anything I am doing wrong, poorly, or stupid, PLEASE [...]]]></description>
			<content:encoded><![CDATA[<h3>Out with 960gs, in with Sass</h3>
<p><em><strong>Note: I have included at the bottom of this article, the actual Sass/CSS I have written for my redesign. When I am completely finished with the build, I will post the whole thing for you to view. If you see anything I am doing wrong, poorly, or stupid, PLEASE inform me. I am learning too!</strong></em><br />
If you read my post yesterday, you will know that I will not be using the 960gs on my main site redesign. Not because it is bad, but because it isn&#8217;t going to fit with the project. What I WILL be using though, is <a href="http://sass-lang.com/">Sass</a>. I&#8217;ve done a couple of articles already on it, which you can read below if you wish:</p>
<ul>
<li><a href="http://jc-designs.net/blog/2010/06/test-driving-sass-3-a-second-look-at-sass/" target="_blank">Test driving Sass 3…a second look at Sass</a></li>
<li><a href="http://jc-designs.net/blog/2010/07/taking-less-js-for-a-spin-and-how-does-it-compare-to-sass-3/" target="_blank">Taking LESS.js for a spin, and how does it compare to Sass 3</a></li>
</ul>
<p>My goal in using Sass for my redesign is to 1) get more familiar with it and learn the syntax better, and 2) well, to say that I did. Always good to learn, and if anyone happened to care, I can always stick it in the resume. One thing I have noticed is that there is no really good reference to using it. An e-book would be great, as it doesn&#8217;t need to be very long. Hell I would even settle for an article that posts the Sass styles for a complete site that uses all the CSS3 styles.</p>
<p>Take a look at what I have built so far:</p>
<p><a href="http://www.jc-designs.net/index2010.php" class="viewDemo" target="_blank">View Demo</a></p>
<p><span id="more-594"></span></p>
<h3>Speaking of CSS3 styles in SCSS</h3>
<p>If you read my other articles, you will know that SCSS is the new syntax for Sass, and reads/writes pretty close to how you would write your normal CSS. Except for the fact that it has all the extra goodies. Anyway, I using <a href="http://compass-style.org/">Compass</a> (which includes the blueprint framework &#8211; which I ditched) to compile the Sass into CSS, and while looking through its support and reference I read about CSS3 mixins. If you wanted to do a border-radius on something, you would write this in Sass:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #6666ff;color: #439AD0;">.myClass</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
<span style="color: #a1a100;color: #439AD0;">@include border-radius(5px);</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>And the output into CSS would look like this:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #6666ff;color: #439AD0;">.myClass</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
-moz-border-radius<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;color: #439AD0;">;</span>
-webkit-border-radius<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;color: #439AD0;">;</span>
-o-border-radius<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;color: #439AD0;">;</span>
-ms-border-radius<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;color: #439AD0;">;</span>
-khtml-border-radius<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;color: #439AD0;">;</span>
border-radius<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>Even if you only write 3 or 4 of those lines of CSS normally, you did it in 1 line of Sass. This is where I think the brilliance and power of Sass comes into play. Now, you can&#8217;t just get that to work by itself, the solution to actually get it to do that is by including this at the top of your .scss file and you are good to go:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #a1a100;color: #439AD0;">@import 'compass/css3';</span></pre></div></div>

<h3>Nested styles</h3>
<p>There is so much I still don&#8217;t know about the syntax and what it can do, what I do know is enough for me to want to use the hell out of it. Nested styles is one of those. Personally, I hate having to write styles for stuff like unordered lists, because you have to write out several styles (ie &#8211; nav ul, nav li, nav a, nav a:hover). In Sass, you can do it with one. Here is an example of what I have done with my redesign:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;">nav li <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">float</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">border-right</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">1px</span> $orange <span style="color: #993333;color: #439AD0;">dotted</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">12px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">padding</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">12px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">line-height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">18px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	a <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $orange<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">text-decoration</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">none</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">display</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">block</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">float</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #a1a100;color: #439AD0;">@include font(18px);</span>
	<span style="color: #6666ff;color: #439AD0;">.byline</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
		<span style="color: #a1a100;color: #439AD0;">@include font(14px);</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">font-weight</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">normal</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #00AA00;color: #439AD0;">&#125;</span>
	<span style="color: #00AA00;color: #439AD0;">&#125;</span>
	a<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $wht<span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>Here is the output in CSS:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;">nav <span style="color: #00AA00;color: #439AD0;">&#123;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">position</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">absolute</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">top</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">225px</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">35px</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #00AA00;color: #439AD0;">&#125;</span>
nav li <span style="color: #00AA00;color: #439AD0;">&#123;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">float</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">border-right</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#f15c22</span> <span style="color: #993333;color: #439AD0;">dotted</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">12px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">padding</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">12px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">line-height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">18px</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #00AA00;color: #439AD0;">&#125;</span>
nav li a <span style="color: #00AA00;color: #439AD0;">&#123;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc00cc;">#f15c22</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">text-decoration</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">none</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">display</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">block</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">float</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">font-family</span><span style="color: #00AA00;color: #439AD0;">:</span> Arial<span style="color: #00AA00;color: #439AD0;">,</span>Helvetica<span style="color: #00AA00;color: #439AD0;">,</span><span style="color: #993333;color: #439AD0;">sans-serif</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">font-size</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">18px</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">font-weight</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">bold</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #00AA00;color: #439AD0;">&#125;</span>
nav li a <span style="color: #6666ff;color: #439AD0;">.byline</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">font-family</span><span style="color: #00AA00;color: #439AD0;">:</span> Arial<span style="color: #00AA00;color: #439AD0;">,</span>Helvetica<span style="color: #00AA00;color: #439AD0;">,</span><span style="color: #993333;color: #439AD0;">sans-serif</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">font-size</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">14px</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">font-weight</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">bold</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">font-weight</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">normal</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #00AA00;color: #439AD0;">&#125;</span>
nav li a<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;color: #439AD0;">&#123;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">white</span><span style="color: #00AA00;color: #439AD0;">;</span> <span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>If you don&#8217;t know Sass at all, the above is going to be somewhat confusing, but I actually had to write less for the Sass styles AND some of what I did write (because it includes a mixin) is reusable for other styles. Nesting lets you put element styles within the parent elements. To quote the Sass site, &#8220;avoids repetition by nesting selectors within one another.</p>
<h3>Mixins are awesome</h3>
<p>So far, I am only using one mixin, and that is for declaring the font style. Here is what that looks like:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #a1a100;color: #439AD0;">@mixin font ($size){</span>
  <span style="color: #000000; font-weight: bold;color: #439AD0;">font</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
    family<span style="color: #00AA00;color: #439AD0;">:</span> Arial<span style="color: #00AA00;color: #439AD0;">,</span>Helvetica<span style="color: #00AA00;color: #439AD0;">,</span><span style="color: #993333;color: #439AD0;">sans-serif</span><span style="color: #00AA00;color: #439AD0;">;</span>
    <span style="color: #000000; font-weight: bold;color: #439AD0;">size</span><span style="color: #00AA00;color: #439AD0;">:</span> $size<span style="color: #00AA00;color: #439AD0;">;</span>
    weight<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">bold</span><span style="color: #00AA00;color: #439AD0;">;</span>
  <span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>If any of you reading this knows Sass, I have a question for YOU. While this is working for me at the moment, I would like to pass the family into the mixin as a variable, so when I call it later I can do something like this, but where I can change the family in the call:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #a1a100;color: #439AD0;">@include font(18px Arial,Helvetica,sans-serif;);</span></pre></div></div>

<p>When I tried doing it, it was not putting a comma between each, and therefore not recognizing it at all. If you know how to do this, PLEASE LEAVE A COMMENT!</p>
<h3>Final Thoughts</h3>
<p>I am really falling in love with Sass, which sounds weird to me because at the moment it is actually slowing me down. I can see though that once I master it, my development time will greatly improve. A few things on my wish list if anyone out there knows the answers to these questions:</p>
<ul>
<li>How do I toggle the line comments on and off in the compiled CSS?</li>
<li>Can you change the format of the compiled CSS? Meaning from single line to block?</li>
<li>I&#8217;m using Compass for the compiling, but developing in PHP. The config file doesn&#8217;t seem to be doing a damn thing. Why? Its in my root directory, but even if I change the lines about the locations, nothing breaks like I thought it would.</li>
</ul>
<p>Here is the Sass file I have so far, in case you are interested (please leave pointers if you have any!)</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #a1a100;color: #439AD0;">@import &quot;compass/css3.scss&quot;;</span>
&nbsp;
<span style="color: #808080; font-style: italic;color: #439AD0;">/*Variables*/</span>
$dkgray<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc00cc;">#2d2d2d</span><span style="color: #00AA00;color: #439AD0;">;</span>
$orange<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc00cc;">#f15c22</span><span style="color: #00AA00;color: #439AD0;">;</span>
$wht<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;color: #439AD0;">;</span>
$w<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">1020px</span><span style="color: #00AA00;color: #439AD0;">;</span>
$r<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">right</span><span style="color: #00AA00;color: #439AD0;">;</span>
$l<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span><span style="color: #00AA00;color: #439AD0;">;</span>
&nbsp;
<span style="color: #a1a100;color: #439AD0;">@mixin font ($size){</span>
  <span style="color: #000000; font-weight: bold;color: #439AD0;">font</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
    family<span style="color: #00AA00;color: #439AD0;">:</span> Arial<span style="color: #00AA00;color: #439AD0;">,</span>Helvetica<span style="color: #00AA00;color: #439AD0;">,</span><span style="color: #993333;color: #439AD0;">sans-serif</span><span style="color: #00AA00;color: #439AD0;">;</span>
    <span style="color: #000000; font-weight: bold;color: #439AD0;">size</span><span style="color: #00AA00;color: #439AD0;">:</span> $size<span style="color: #00AA00;color: #439AD0;">;</span>
    weight<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">bold</span><span style="color: #00AA00;color: #439AD0;">;</span>
  <span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
&nbsp;
body <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">background</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">url</span><span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #ff0000; font-style: italic;">../images/background.jpg</span><span style="color: #00AA00;color: #439AD0;">&#41;</span> <span style="color: #993333;color: #439AD0;">repeat-x</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">top</span> $dkgray<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $wht<span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
a <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $orange<span style="color: #00AA00;color: #439AD0;">;</span>
	zoom<span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">1</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">outline</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">none</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
a<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $wht<span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
h1 <span style="color: #00AA00;color: #439AD0;">&#123;</span>
<span style="color: #000000; font-weight: bold;color: #439AD0;">font</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">bold</span> <span style="color: #933;">24px</span> Arial<span style="color: #00AA00;color: #439AD0;">,</span>Helvetica<span style="color: #00AA00;color: #439AD0;">,</span><span style="color: #993333;color: #439AD0;">sans-serif</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #000000; font-weight: bold;color: #439AD0;">text-shadow</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">2px</span> <span style="color: #933;">2px</span>  <span style="color: #933;">5px</span> $orange<span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#container</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> $w<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #993333;color: #439AD0;">auto</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">overflow</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">hidden</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
header <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> $w<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">height</span><span style="color: #00AA00;color: #439AD0;">:</span>  <span style="color: #933;">337px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">position</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">relative</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">background</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">url</span><span style="color: #00AA00;color: #439AD0;">&#40;</span>../images/jcIndex_01.png<span style="color: #00AA00;color: #439AD0;">&#41;</span> <span style="color: #993333;color: #439AD0;">no-repeat</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">top</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#contentRepeat</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> $w<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">background</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">url</span><span style="color: #00AA00;color: #439AD0;">&#40;</span>../images/jcIndex_03.jpg<span style="color: #00AA00;color: #439AD0;">&#41;</span> <span style="color: #993333;color: #439AD0;">repeat-y</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">top</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#contentTop</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> $w<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">background</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">url</span><span style="color: #00AA00;color: #439AD0;">&#40;</span>../images/jcIndex_02.jpg<span style="color: #00AA00;color: #439AD0;">&#41;</span> <span style="color: #993333;color: #439AD0;">no-repeat</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">top</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">min-height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">500px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">auto</span> !important<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">500px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">overflow</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">hidden</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">padding</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">80px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #6666ff;color: #439AD0;">.ie6</span> <span style="color: #cc00cc;">#contentTop</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span><span style="color: #000000; font-weight: bold;color: #439AD0;">overflow</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">visible</span><span style="color: #00AA00;color: #439AD0;">;</span><span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#contentLeft</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">580px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">float</span><span style="color: #00AA00;color: #439AD0;">:</span> $l<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">60px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">padding</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#contentRight</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">260px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">float</span><span style="color: #00AA00;color: #439AD0;">:</span> $r<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">60px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
footer <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> $w<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">background</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">url</span><span style="color: #00AA00;color: #439AD0;">&#40;</span>../images/jcIndex_03.jpg<span style="color: #00AA00;color: #439AD0;">&#41;</span> <span style="color: #993333;color: #439AD0;">repeat-y</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">top</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#footerContent</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> $w<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">min-height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">222px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">auto</span> !important<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">222px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">overflow</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">hidden</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">background</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">url</span><span style="color: #00AA00;color: #439AD0;">&#40;</span>../images/jcIndex_05.jpg<span style="color: #00AA00;color: #439AD0;">&#41;</span> <span style="color: #993333;color: #439AD0;">no-repeat</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">bottom</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #6666ff;color: #439AD0;">.ie6</span> <span style="color: #cc00cc;">#footerContent</span>  <span style="color: #00AA00;color: #439AD0;">&#123;</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">overflow</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">visible</span><span style="color: #00AA00;color: #439AD0;">;</span><span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;color: #439AD0;">/*************** Navigation Styles *****************/</span>
&nbsp;
nav <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">position</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">absolute</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">top</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">225px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">left</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">35px</span><span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
&nbsp;
nav li <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">float</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">border-right</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">1px</span> $orange <span style="color: #993333;color: #439AD0;">dotted</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">12px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">padding</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">12px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">line-height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">18px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	a <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $orange<span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">text-decoration</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">none</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">display</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">block</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">float</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #a1a100;color: #439AD0;">@include font(18px);</span>
	<span style="color: #6666ff;color: #439AD0;">.byline</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
		<span style="color: #a1a100;color: #439AD0;">@include font(14px);</span>
		<span style="color: #000000; font-weight: bold;color: #439AD0;">font-weight</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #993333;color: #439AD0;">normal</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #00AA00;color: #439AD0;">&#125;</span>
	<span style="color: #00AA00;color: #439AD0;">&#125;</span>
	a<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">color</span><span style="color: #00AA00;color: #439AD0;">:</span> $wht<span style="color: #00AA00;color: #439AD0;">;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span>
<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<div class="gator">
<a  href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=jcDesigns-"><img src="http://tracking.hostgator.com/img/Shared/468x60.gif" border=0></a></p>
<p>Coupon Code: webmachine</p>
</div>
 <img src="http://jc-designs.net/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=594" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://jc-designs.net/blog/2010/10/using-sassscss-on-my-website-redesign/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Custom Fields, plus Compass/Sass tip: CSS inline images</title>
		<link>http://jc-designs.net/blog/2010/07/wordpress-custom-fields-plus-compasssass-tip-css-inline-images/</link>
		<comments>http://jc-designs.net/blog/2010/07/wordpress-custom-fields-plus-compasssass-tip-css-inline-images/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 03:56:43 +0000</pubDate>
		<dc:creator>jcDesigns</dc:creator>
				<category><![CDATA[Sass/Less/Compass]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Compass]]></category>
		<category><![CDATA[sass]]></category>

		<guid isPermaLink="false">http://jc-designs.net/blog/?p=435</guid>
		<description><![CDATA[Set out to learn something&#8230;and I did. Now its your turn I wanted to create images that I could use for each post showing that it belonged to a certain type of category. You look at the image, and without reading the title, you would say &#8220;Oh, this post relates to WordPress.&#8221; Same with jQuery, [...]]]></description>
			<content:encoded><![CDATA[<h3>Set out to learn something&#8230;and I did. Now its your turn</h3>
<p>I wanted to create images that I could use for each post showing that it belonged to a certain type of category. You look at the image, and without reading the title, you would say &#8220;Oh, this post relates to WordPress.&#8221; Same with jQuery, Blogging in general, or whatever category I come up with. Something my readers would come to recognize over time. I also wanted to be able to do it without having to stick it in manually in the post like I do with the other images I stick in articles. If you are on the home page you will already see this. That is the one I came up with for articles relating to WordPress.</p>
<p>Now, I can&#8217;t take credit for what I am about to show you. I learned how to do this from<a href="http://justintadlock.com/archives/2007/10/27/wordpress-custom-fields-adding-images-to-posts">Justin Tadlock&#8217;s blog</a>, but I wanted to spread the love. This was the best tutorial I found on the subject.</p>
<h3>Just 10 Easy Steps!</h3>
<p>Here is my quick and dirty paraphrasing of it. Meaning, do EXACTLY AS IT SAYS BELOW.</p>
<p><span id="more-435"></span><br />
1) Create awesome post.<br />
2) Scroll down in post editor, under Custom Fields,  create a Key named “Thumbnail.”<br />
3) The Value should be the url to the image: (Example: wp-content/themes/yourThemeName/images/imageName.jpg)</p>
<p>NOTE: It took me a while to understand where it was pulling the images from &#8211; images folder in your theme. I was trying to get it to load from somewhere outside the theme. I&#8217;m sure you can, but this was easier.</p>
<p>4) Click Add Custom Field. Ya! Part 1 is done.<br />
5) Add another, by clicking Enter New. This time make the Key be Thumbnail Class<br />
6) Make the Value thumbnail-class<br />
7) Open the template you want the image to show on (index.php, single.php, category.php, archive.php, etc.)<br />
8- Find this code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #b1b100;color: #439AD0;">if</span><span style="color: #009900;color: #439AD0;">&#40;</span>have_posts<span style="color: #009900;color: #439AD0;">&#40;</span><span style="color: #009900;color: #439AD0;">&#41;</span><span style="color: #009900;color: #439AD0;">&#41;</span> <span style="color: #339933;color: #439AD0;">:</span> <span style="color: #b1b100;color: #439AD0;">while</span><span style="color: #009900;color: #439AD0;">&#40;</span>have_posts<span style="color: #009900;color: #439AD0;">&#40;</span><span style="color: #009900;color: #439AD0;">&#41;</span><span style="color: #009900;color: #439AD0;">&#41;</span> <span style="color: #339933;color: #439AD0;">:</span> the_post<span style="color: #009900;color: #439AD0;">&#40;</span><span style="color: #009900;color: #439AD0;">&#41;</span><span style="color: #339933;color: #439AD0;">;</span></pre></div></div>

<p>Post the following code directly AFTER it:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #000088;">$thumb</span> <span style="color: #339933;color: #439AD0;">=</span> get_post_meta<span style="color: #009900;color: #439AD0;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;color: #439AD0;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;color: #439AD0;">,</span> <span style="color: #0000ff;">'Thumbnail'</span><span style="color: #339933;color: #439AD0;">,</span> <span style="color: #000088;">$single</span> <span style="color: #339933;color: #439AD0;">=</span> <span style="color: #009900; font-weight: bold;color: #439AD0;">true</span><span style="color: #009900;color: #439AD0;">&#41;</span><span style="color: #339933;color: #439AD0;">;</span>
<span style="color: #000088;">$thumb_class</span> <span style="color: #339933;color: #439AD0;">=</span> get_post_meta<span style="color: #009900;color: #439AD0;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;color: #439AD0;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;color: #439AD0;">,</span> <span style="color: #0000ff;">'Thumbnail Class'</span><span style="color: #339933;color: #439AD0;">,</span> <span style="color: #000088;">$single</span> <span style="color: #339933;color: #439AD0;">=</span> <span style="color: #009900; font-weight: bold;color: #439AD0;">true</span><span style="color: #009900;color: #439AD0;">&#41;</span><span style="color: #339933;color: #439AD0;">;</span>
<span style="color: #000088;">$thumb_alt</span> <span style="color: #339933;color: #439AD0;">=</span> get_post_meta<span style="color: #009900;color: #439AD0;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;color: #439AD0;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;color: #439AD0;">,</span> <span style="color: #0000ff;">'Thumbnail Alt'</span><span style="color: #339933;color: #439AD0;">,</span> <span style="color: #000088;">$single</span> <span style="color: #339933;color: #439AD0;">=</span> <span style="color: #009900; font-weight: bold;color: #439AD0;">true</span><span style="color: #009900;color: #439AD0;">&#41;</span><span style="color: #339933;color: #439AD0;">;</span></pre></div></div>

<p>9) Find this code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #000000; font-weight: bold;color: #439AD0;">&lt;?php</span> the_content<span style="color: #009900;color: #439AD0;">&#40;</span><span style="color: #009900;color: #439AD0;">&#41;</span><span style="color: #339933;color: #439AD0;">;</span>  <span style="color: #000000; font-weight: bold;">?&gt;</span>
//OR THIS CODE, EITHER ONE
<span style="color: #000000; font-weight: bold;color: #439AD0;">&lt;?php</span> the_excerpt<span style="color: #009900;color: #439AD0;">&#40;</span><span style="color: #009900;color: #439AD0;">&#41;</span><span style="color: #339933;color: #439AD0;">;</span>  <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>And add this code BEFORE it:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #000000; font-weight: bold;color: #439AD0;">&lt;?php</span> <span style="color: #666666; font-style: italic;color: #439AD0;">// if there's a thumbnail</span>
<span style="color: #b1b100;color: #439AD0;">if</span><span style="color: #009900;color: #439AD0;">&#40;</span><span style="color: #000088;">$thumb</span> <span style="color: #339933;color: #439AD0;">!==</span> <span style="color: #0000ff;">''</span><span style="color: #009900;color: #439AD0;">&#41;</span> <span style="color: #009900;color: #439AD0;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;img src=&quot;<span style="color: #000000; font-weight: bold;color: #439AD0;">&lt;?php</span> <span style="color: #b1b100;color: #439AD0;">echo</span> <span style="color: #000088;">$thumb</span><span style="color: #339933;color: #439AD0;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;
	class=&quot;<span style="color: #000000; font-weight: bold;color: #439AD0;">&lt;?php</span> <span style="color: #b1b100;color: #439AD0;">if</span><span style="color: #009900;color: #439AD0;">&#40;</span><span style="color: #000088;">$thumb_class</span> <span style="color: #339933;color: #439AD0;">!==</span> <span style="color: #0000ff;">''</span><span style="color: #009900;color: #439AD0;">&#41;</span> <span style="color: #009900;color: #439AD0;">&#123;</span> <span style="color: #b1b100;color: #439AD0;">echo</span> <span style="color: #000088;">$thumb_class</span><span style="color: #339933;color: #439AD0;">;</span> <span style="color: #009900;color: #439AD0;">&#125;</span> <span style="color: #b1b100;color: #439AD0;">else</span> <span style="color: #009900;color: #439AD0;">&#123;</span> <span style="color: #b1b100;color: #439AD0;">echo</span> <span style="color: #0000ff;color: #439AD0;">&quot;left&quot;</span><span style="color: #339933;color: #439AD0;">;</span> <span style="color: #009900;color: #439AD0;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;
	alt=&quot;<span style="color: #000000; font-weight: bold;color: #439AD0;">&lt;?php</span> <span style="color: #b1b100;color: #439AD0;">if</span><span style="color: #009900;color: #439AD0;">&#40;</span><span style="color: #000088;">$thumb_alt</span> <span style="color: #339933;color: #439AD0;">!==</span> <span style="color: #0000ff;">''</span><span style="color: #009900;color: #439AD0;">&#41;</span> <span style="color: #009900;color: #439AD0;">&#123;</span> <span style="color: #b1b100;color: #439AD0;">echo</span> <span style="color: #000088;">$thumb_alt</span><span style="color: #339933;color: #439AD0;">;</span> <span style="color: #009900;color: #439AD0;">&#125;</span> <span style="color: #b1b100;color: #439AD0;">else</span> <span style="color: #009900;color: #439AD0;">&#123;</span> <span style="color: #b1b100;color: #439AD0;">echo</span> the_title<span style="color: #009900;color: #439AD0;">&#40;</span><span style="color: #009900;color: #439AD0;">&#41;</span><span style="color: #339933;color: #439AD0;">;</span> <span style="color: #009900;color: #439AD0;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;
	/&gt;
<span style="color: #000000; font-weight: bold;color: #439AD0;">&lt;?php</span> <span style="color: #009900;color: #439AD0;">&#125;</span> <span style="color: #666666; font-style: italic;color: #439AD0;">// end if statement</span>
<span style="color: #666666; font-style: italic;color: #439AD0;">// if there's not a thumbnail</span>
<span style="color: #b1b100;color: #439AD0;">else</span> <span style="color: #009900;color: #439AD0;">&#123;</span> <span style="color: #b1b100;color: #439AD0;">echo</span> <span style="color: #0000ff;">''</span><span style="color: #339933;color: #439AD0;">;</span> <span style="color: #009900;color: #439AD0;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p><strong>NOTE ADDED 7/30/10: If you read this post previously, I wrote a note here originally that was pretty much me being stupid.</strong></p>
<p>10) Open your CSS file and add this class:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #6666ff;color: #439AD0;">.thumbnail-class</span> <span style="color: #00AA00;color: #439AD0;">&#123;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">float</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #000000; font-weight: bold;color: #439AD0;">left</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">100px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">100px</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #000000; font-weight: bold;color: #439AD0;">margin</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #933;">15px</span> <span style="color: #cc66cc;color: #439AD0;">0</span> <span style="color: #cc66cc;color: #439AD0;">0</span><span style="color: #00AA00;color: #439AD0;">;</span>
	<span style="color: #00AA00;color: #439AD0;">&#125;</span></pre></div></div>

<p>Done. Of course, you still have to create the images though. Note the size of the image is actually controlled through the CSS. Meaning, even if the image you created is 300 by 300, whatever you put in the css is what it will display at. You can also call the class, and Key names whatever you wish, just be sure to change them in the php code as well.</p>
<p>For a more detailed explanation, you will want to read the article I linked to above. I searched for quite a while before I found his tutorial and it rocks. I just had to read more to accomplish it. He also gives hints on what else you can do with it. Very good read though.</p>
<h3>Compass&#8217; inline image function</h3>
<p>I am not recommending you do this, I am just showing you how. Let&#8217;s say you have a bunch of sprites, they are all small, and you don&#8217;t want the extra http requests on your website. Pretty understandable, which is why I use minify on my main site for the css and javascript files. Compass has a built in function that lets you actually embed an image into the CSS file. &#8220;Holy HELL! That&#8217;s insane!&#8221; That is what your head is screaming at the screen, right? That is what I said too when I saw it. I wish I could remember where, but I forgot to paste the url in my Evernote&#8230;just the code.</p>
<p>In your .sass file (yes Sass&#8230;I highly recommend it),you make a style like so:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;color: #439AD0; font-weight: bold;"><span style="color: #6666ff;color: #439AD0;">.mySprite</span>
  <span style="color: #000000; font-weight: bold;color: #439AD0;">background-image</span><span style="color: #00AA00;color: #439AD0;">:</span> inline-image<span style="color: #00AA00;color: #439AD0;">&#40;</span><span style="color: #ff0000;color: #439AD0;">&quot;images/mySprite.png&quot;</span><span style="color: #00AA00;color: #439AD0;">&#41;</span> <span style="color: #808080; font-style: italic;color: #439AD0;">/* ! */</span>
  <span style="color: #000000; font-weight: bold;color: #439AD0;">height</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">35px</span>
  <span style="color: #000000; font-weight: bold;color: #439AD0;">width</span><span style="color: #00AA00;color: #439AD0;">:</span> <span style="color: #933;">35px</span></pre></div></div>

<p>Compass then embeds the image into the CSS file. You can obviously think ahead on why this could be bad if you do this a lot. You are adding weight to the actual CSS file. Which of course this is why you would only do it with some small file size sprites. I can see this being good for small sites, but probably not anything of substantial size. Just use your head before you actually use this.</p>
<p><strong>NOTE ABOUT THIS TRICK:</strong> IE6 and 7 do NOT support this. You will have to include the style the normal way for those browsers, if you are supporting them.</p>
<h3>Last thoughts</h3>
<p>Hope you learned something! I know I did today, which is what I strive for every day. If you are using Custom Fields for WordPress, I would love to know about how you are using them, and the code for doing it! Share the love people!</p>
<div class="gator">
<a  href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=jcDesigns-"><img src="http://tracking.hostgator.com/img/Shared/468x60.gif" border=0></a></p>
<p>Coupon Code: webmachine</p>
</div>
<div class="jBox">
<h2 class="jq">jQuery junkBox</h2>
<p><strong>.after();</strong><br />
This method inserts the specified content after each matched element. Below adds a paragraph tag with text after any element with the class &#8216;myClass&#8217; on it.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;color: #439AD0; font-weight: bold;">$<span style="color: #009900;color: #439AD0;">&#40;</span><span style="color: #3366CC;color: #439AD0;">'.myClass'</span><span style="color: #009900;color: #439AD0;">&#41;</span>.<span style="color: #660066;">after</span><span style="color: #009900;color: #439AD0;">&#40;</span><span style="color: #3366CC;color: #439AD0;">'&lt;p&gt;Even more content to read!&lt;/p&gt;'</span><span style="color: #009900;color: #439AD0;">&#41;</span><span style="color: #339933;color: #439AD0;">;</span></pre></div></div>

</div>
 <img src="http://jc-designs.net/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=435" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://jc-designs.net/blog/2010/07/wordpress-custom-fields-plus-compasssass-tip-css-inline-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

