<?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; CSS</title>
	<atom:link href="http://www.dom111.co.uk/blog/tag/css/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>TextMate: Minify CSS Regular Expression</title>
		<link>http://www.dom111.co.uk/blog/coding/textmate-minify-css-regular-expression/258</link>
		<comments>http://www.dom111.co.uk/blog/coding/textmate-minify-css-regular-expression/258#comments</comments>
		<pubDate>Fri, 08 Oct 2010 09:36:29 +0000</pubDate>
		<dc:creator>dom111</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Regular Expressions]]></category>
		<category><![CDATA[TextMate]]></category>
		<category><![CDATA[minify css]]></category>
		<category><![CDATA[regular expression]]></category>
		<category><![CDATA[textmate]]></category>
		<category><![CDATA[textmate minify css]]></category>

		<guid isPermaLink="false">http://www.dom111.co.uk/blog/?p=258</guid>
		<description><![CDATA[I love TextMate. It&#8217;s saved me so much time since I&#8217;ve started using, I think I&#8217;d find it impossible to use another editor. However, the format CSS compressed snippet, doesn&#8217;t quite do what I&#8217;d expect. Luckily the Find and Replace regular expression engine is pretty cool! I&#8217;ve got this small (!) regular expression that should [...]]]></description>
			<content:encoded><![CDATA[<p>I love <a href="http://www.macromates.com/">TextMate</a>. It&#8217;s saved me so much time since I&#8217;ve started using, I think I&#8217;d find it impossible to use another editor. However, the format CSS compressed snippet, doesn&#8217;t quite do what I&#8217;d expect.</p>
<p>Luckily the Find and Replace regular expression engine is pretty cool!</p>
<p>I&#8217;ve got this small (!) regular expression that should minify your CSS, by putting:</p>
<p><code>;?\s*([:;,{}])\s*|\s*/\*()[\S\s]+?\*/\s*|(\s)\s+</code></p>
<p>in the Find box and:</p>
<p><code>$1</code></p>
<p>in the replace box, and by ensuring that Regular expression is ticked, you should be able to minify CSS with the Replace All button!</p>
<p><strong><span style="font-weight: normal;"><img class="alignnone size-full wp-image-262" title="TextMate Find and Replace: Minify CSS" src="http://www.dom111.co.uk/blog/wp-content/2010/10/Screen-shot-2010-10-08-at-10.41.24.png" alt="TextMate Find and Replace: Minify CSS" width="497" height="186" /></span></strong></p>
<p><strong><span style="font-weight: normal;"> </span>Note</strong>: I haven&#8217;t test this particularly extensively, or with the IE <code>expression()</code>. This may produce undesired results! It certainly seems to be fine on all the standard CSS I&#8217;ve tested it with.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dom111.co.uk/blog/coding/textmate-minify-css-regular-expression/258/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Minify CSS &#8211; Shrink your CSS down to size</title>
		<link>http://www.dom111.co.uk/blog/coding/minify-css-shrink-your-css-down-to-size/238</link>
		<comments>http://www.dom111.co.uk/blog/coding/minify-css-shrink-your-css-down-to-size/238#comments</comments>
		<pubDate>Fri, 16 Apr 2010 18:07:11 +0000</pubDate>
		<dc:creator>dom111</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[minified css]]></category>
		<category><![CDATA[minify css]]></category>

		<guid isPermaLink="false">http://www.dom111.co.uk/blog/?p=238</guid>
		<description><![CDATA[I know there are probably many services offering it already out there, and it&#8217;s not too hard to run right in TextMate, but I haven&#8217;t been able to find it in 30 seconds of Googling (well, I couldn&#8217;t at work, but I&#8217;ve since found this&#8230; Oh well!), so I set up a quick script to [...]]]></description>
			<content:encoded><![CDATA[<p>I know there are probably many services offering it already out there, and it&#8217;s not too hard to run right in TextMate, but I haven&#8217;t been able to find it in 30 seconds of Googling (well, I couldn&#8217;t at work, but I&#8217;ve since found <a href="http://www.cssdrive.com/index.php/main/csscompressor/">this</a>&#8230; Oh well!), so I set up a quick script to do it for me:</p>
<p><a href="http://www.dom111.co.uk/files/minifycss/">http://www.dom111.co.uk/files/minifycss/</a></p>
<p>If it&#8217;s useful, I might set up a memorable URL, let me know in the comments <img src='http://www.dom111.co.uk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I did set up <a href="http://marijn.haverbeke.nl/codemirror/">syntax highlighting, using codemirror</a>, which looked pretty nice, but made the minification (on large-ish files) take far too long. I haven&#8217;t really tested on any huge files, so try this at your own risk, but it seems faster that TextMate was.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dom111.co.uk/blog/coding/minify-css-shrink-your-css-down-to-size/238/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JSS 0.2 &#8211; Nested CSS update</title>
		<link>http://www.dom111.co.uk/blog/coding/jss-0-2-nested-css-update/118</link>
		<comments>http://www.dom111.co.uk/blog/coding/jss-0-2-nested-css-update/118#comments</comments>
		<pubDate>Tue, 28 Jul 2009 22:33:08 +0000</pubDate>
		<dc:creator>dom111</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[jss]]></category>
		<category><![CDATA[nested css]]></category>

		<guid isPermaLink="false">http://www.dom111.co.uk/blog/?p=118</guid>
		<description><![CDATA[So I thought I&#8217;d update the JSS script I wrote previously with a few changes I&#8217;ve been thinking about for a while. The primary reason for the update is to add a new &#8216;non-CSS&#8217; property of &#8216;include&#8217;. This property allows you to include styles that have already been defined in the current class. For example, [...]]]></description>
			<content:encoded><![CDATA[<p>So I thought I&#8217;d update the JSS script I wrote previously with a few changes I&#8217;ve been thinking about for a while.</p>
<p>The primary reason for the update is to add a new &#8216;non-CSS&#8217; property of &#8216;include&#8217;. This property allows you to include styles that have already been defined in the current class.<span id="more-118"></span></p>
<p>For example, if you had a stylesheet that looked like this:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">.<span style="color: #993333;">bold</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.important</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>You could rewrite this using:</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;">&quot;.bold&quot;</span><span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #3366CC;">&quot;font-weight&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;bold&quot;</span>
  <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
  <span style="color: #3366CC;">&quot;.important&quot;</span><span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #3366CC;">&quot;include&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;.bold&quot;</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>Which I know you shouldn&#8217;t really do, and yes, it probably does go against the whole point of CSS, but I&#8217;m sure it&#8217;ll be useful in some situation at some point&#8230; No? Well it was interesting making it anyway.</p>
<p>Other minor updates are a PHP version so you can write nested stylesheets and output minified CSS all server-side and a bunch of HTML colour names that are actually shorter than the 6 digit hex codes.</p>
<p>I might work on doing other languages if I fancy the practice&#8230; Probably make a CSS to JSS conversion script first though&#8230;</p>
<p>You can see the <a href="/files/jss/0.2/"> updated demo page here</a>, or just <a href="/files/jss/jss-0.2.tar.gz">download the files here and have a look for yourself</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dom111.co.uk/blog/coding/jss-0-2-nested-css-update/118/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<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>

