<?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>dom111.co.uk &#187; stylesheet</title>
	<atom:link href="http://www.dom111.co.uk/blog/tag/stylesheet/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dom111.co.uk/blog</link>
	<description>Move along. Nothing to see here.</description>
	<lastBuildDate>Wed, 26 Oct 2011 16:37:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>JSS &#8211; Nested CSS using Javascript</title>
		<link>http://www.dom111.co.uk/blog/coding/jss-nested-css-using-javascript/94</link>
		<comments>http://www.dom111.co.uk/blog/coding/jss-nested-css-using-javascript/94#comments</comments>
		<pubDate>Fri, 01 May 2009 13:37:46 +0000</pubDate>
		<dc:creator>dom111</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jss]]></category>
		<category><![CDATA[nested css]]></category>
		<category><![CDATA[stylesheet]]></category>

		<guid isPermaLink="false">http://www.dom111.co.uk/blog/?p=94</guid>
		<description><![CDATA[Update: I have worked on a newer version with more features and a PHP conversion, here. Ever wanted nested stylesheets? I have! Now you can have them! If you code your stylesheets as JSON and parse them using JSS 0.1. You could have the following: JSS&#40;&#123; 'html': &#123; 'body': &#123; background: '#fff', &#160; 'div#header': &#123; [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update</strong>: <a href="http://www.dom111.co.uk/blog/coding/jss-0-2-nested-css-update/118">I have worked on a newer version with more features and a PHP conversion, here</a>.</p>
<p>Ever wanted nested stylesheets?</p>
<p>I have!</p>
<p>Now you can have them! If you code your stylesheets as JSON and parse them using JSS 0.1. You could have the following:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">      JSS<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
        <span style="color: #3366CC;">'html'</span><span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>
          <span style="color: #3366CC;">'body'</span><span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>
            background<span style="color: #339933;">:</span> <span style="color: #3366CC;">'#fff'</span><span style="color: #339933;">,</span>
&nbsp;
            <span style="color: #3366CC;">'div#header'</span><span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>
              height<span style="color: #339933;">:</span> <span style="color: #3366CC;">'100px'</span><span style="color: #339933;">,</span>
              background<span style="color: #339933;">:</span> <span style="color: #3366CC;">'#00f'</span>
            <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
&nbsp;
            <span style="color: #3366CC;">'div#footer'</span><span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>
              height<span style="color: #339933;">:</span> <span style="color: #3366CC;">'40px'</span><span style="color: #339933;">,</span>
&nbsp;
              <span style="color: #3366CC;">'span#copyright'</span><span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>
                color<span style="color: #339933;">:</span> <span style="color: #3366CC;">'#0f0'</span>
              <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
              <span style="color: #3366CC;">'span#testing'</span><span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>
                color<span style="color: #339933;">:</span> <span style="color: #3366CC;">'black'</span><span style="color: #339933;">,</span>
                background<span style="color: #339933;">:</span> <span style="color: #3366CC;">'#eeccff'</span>
              <span style="color: #009900;">&#125;</span>
            <span style="color: #009900;">&#125;</span>
          <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
          width<span style="color: #339933;">:</span> <span style="color: #3366CC;">'800px'</span>
        <span style="color: #009900;">&#125;</span>
      <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Turned into:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">      html <span style="color: #00AA00;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">800px</span><span style="color: #00AA00;">;</span>
      <span style="color: #00AA00;">&#125;</span>
&nbsp;
      html body <span style="color: #00AA00;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
      <span style="color: #00AA00;">&#125;</span>
&nbsp;
      html body div<span style="color: #cc00cc;">#header</span> <span style="color: #00AA00;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100px</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#00f</span><span style="color: #00AA00;">;</span>
      <span style="color: #00AA00;">&#125;</span>
&nbsp;
      html body div<span style="color: #cc00cc;">#footer</span> <span style="color: #00AA00;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">40px</span><span style="color: #00AA00;">;</span>
      <span style="color: #00AA00;">&#125;</span>
&nbsp;
      html body div<span style="color: #cc00cc;">#footer</span> span<span style="color: #cc00cc;">#copyright</span> <span style="color: #00AA00;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#0f0</span><span style="color: #00AA00;">;</span>
      <span style="color: #00AA00;">&#125;</span>
&nbsp;
      html body div<span style="color: #cc00cc;">#footer</span> span<span style="color: #cc00cc;">#testing</span> <span style="color: #00AA00;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">black</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#eeccff</span><span style="color: #00AA00;">;</span>
      <span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>You can <a href="/files/jss/jss-0.1.zip">get it here</a> or <a href="/files/jss/">view the test page here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dom111.co.uk/blog/coding/jss-nested-css-using-javascript/94/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

