<?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>mouse pi-lot &#187; HTML, CSS, Less</title>
	<atom:link href="http://mousepilot.co.uk/topics/code/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://mousepilot.co.uk</link>
	<description>–noun: A computer user lacking in any recognisable skills&#34;</description>
	<lastBuildDate>Thu, 26 Apr 2012 15:42:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>.columns Less Mixin</title>
		<link>http://mousepilot.co.uk/2012/04/columns-less-mixin/</link>
		<comments>http://mousepilot.co.uk/2012/04/columns-less-mixin/#comments</comments>
		<pubDate>Thu, 26 Apr 2012 09:42:59 +0000</pubDate>
		<dc:creator>Simon Stevens</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[HTML, CSS, Less]]></category>

		<guid isPermaLink="false">http://mousepilot.co.uk/?p=132</guid>
		<description><![CDATA[Like most frontend developers, I work with columns on an hourly basis.  I don&#8217;t really buy in to using frameworks, I don&#8217;t have time to learn their intricacies and limitations and frankly, I like knowing how my own code works. So I &#8230; <a href="http://mousepilot.co.uk/2012/04/columns-less-mixin/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Like most frontend developers, I work with columns on an hourly basis.  I don&#8217;t really buy in to using frameworks, I don&#8217;t have time to learn their intricacies and limitations and frankly, I like knowing how my own code works.</p>
<p>So I wrote my own very simple Less Mixin:</p>
<p><p>
								<pre class="Plum_Code_Box"><code class="php">.columns(@cols, @hspace, @padding, @fitinto){
  margin-left: @hspace * -1;
  width: @fitinto + @hspace;
  float: left;
  div.column{
    width: floor(((@fitinto - (@hspace * (@cols - 1))) / @cols)) - (@padding*2);
    padding-left: @padding;
    padding-right: @padding;
    margin-left: @hspace;
    float: left;
  }
}</code>
									</pre>
							</p></p>
<p>Usage example:</p>
<p><p>
								<pre class="Plum_Code_Box"><code class="php">#page{
  .columns(3, 20px, 10px, 500px);
}</code>
									</pre>
							</p></p>
]]></content:encoded>
			<wfw:commentRss>http://mousepilot.co.uk/2012/04/columns-less-mixin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Rounded Corners</title>
		<link>http://mousepilot.co.uk/2009/06/css-rounded-corners/</link>
		<comments>http://mousepilot.co.uk/2009/06/css-rounded-corners/#comments</comments>
		<pubDate>Sun, 14 Jun 2009 16:26:10 +0000</pubDate>
		<dc:creator>Simon Stevens</dc:creator>
				<category><![CDATA[HTML, CSS, Less]]></category>

		<guid isPermaLink="false">http://mousepilot.co.uk/?p=3</guid>
		<description><![CDATA[My first post on my shiny new blog is being written whilst I&#8217;m actually coding the template. The CSS3 spec gives us access to rounded corners without the need for images and loads of xhtml.  Just add the following to &#8230; <a href="http://mousepilot.co.uk/2009/06/css-rounded-corners/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>My first post on my shiny new blog is being written whilst I&#8217;m actually coding the template.</p>
<p>The CSS3 spec gives us access to rounded corners without the need for images and loads of xhtml.  Just add the following to the appropriate &lt;div&gt;.  I&#8217;ve absolutely no idea whether this works in IE7+ but I suspect it doesn&#8217;t and as it&#8217;s for my personal blog, I don&#8217;t care.  Internet Explorer users deserve to look at shitty looking pages tbh :p</p>
<p><code>-moz-border-radius: 5px;<br />
		-webkit-border-radius: 5px;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://mousepilot.co.uk/2009/06/css-rounded-corners/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

