<?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>The Sheep &#187; Projects</title>
	<atom:link href="http://www.thesheep.co.uk/category/blog/projects/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thesheep.co.uk</link>
	<description>Ovine Perspectives On The Digital Age</description>
	<lastBuildDate>Wed, 03 Feb 2010 00:57:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CSS typography: setting a vertical rhythm</title>
		<link>http://www.thesheep.co.uk/2009/01/14/css-typography-setting-a-vertical-rhythm/</link>
		<comments>http://www.thesheep.co.uk/2009/01/14/css-typography-setting-a-vertical-rhythm/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 12:31:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[typography]]></category>

		<guid isPermaLink="false">http://www.thesheep.co.uk/?p=80</guid>
		<description><![CDATA[<p>An <a href="http://www.webtypography.net/Rhythm_and_Proportion/Vertical_Motion/2.2.2/">increasing</a> <a href="http://24ways.org/2006/compose-to-a-vertical-rhythm">number</a> <a href="http://www.alistapart.com/articles/settingtypeontheweb">of</a> <a href="http://www.markboulton.co.uk/journal/comments/incremental_leading/">people</a> are starting to think about vertical rhythm in their web typography, so I thought I&#8217;d share my CSS implementation, which uses <em>ems</em> (to allow for text resizing), a global <em>line-height</em> and&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>An <a href="http://www.webtypography.net/Rhythm_and_Proportion/Vertical_Motion/2.2.2/">increasing</a> <a href="http://24ways.org/2006/compose-to-a-vertical-rhythm">number</a> <a href="http://www.alistapart.com/articles/settingtypeontheweb">of</a> <a href="http://www.markboulton.co.uk/journal/comments/incremental_leading/">people</a> are starting to think about vertical rhythm in their web typography, so I thought I&#8217;d share my CSS implementation, which uses <em>ems</em> (to allow for text resizing), a global <em>line-height</em> and negative margins for headings.</p>
<p>The basic idea behind composing to a vertical rhythm is to keep text lined up on an imaginary grid of evenly spaced horizontal lines all the way down the page. The effect is unconscious to the average reader but helps to make the layout of the page feel harmonious and restful.</p>
<p>Handily, the CSS property <em>line-height</em> can be set globally on the BODY element and inherited down through every other element to form the basis of our invisible grid (which I&#8217;ve made visible on <a title="View example in a new window" href="http://www.thesheep.co.uk/examples/vertical-rhythm/" target="_blank">my example</a>). We also set a default font size in a similar way:</p>
<blockquote><p><code>body {<br />
font-family: Verdana, sans-serif;<br />
font-size: 0.875em; /* set default font size to 14px */<br />
line-height: 1.42857em; /* set global line height to 20px */<br />
}</code></p></blockquote>
<p>In order to maintain our grid, it is important that the margins relate to the line height rather than the font size. So we set margins on individual element types like this:</p>
<blockquote><p><code>p { margin: 1.42857em 0; /* Set margins on paragraphs to 1 x line-height */ }</code></p></blockquote>
<p>Of course, not all text on a page will be the same size, so we can vary this on individual element types (note that this doesn&#8217;t affect the line height, which retains its value as inherited from the body element). The important thing is to adjust the margins accordingly:</p>
<blockquote><p><code>#sidebar p {<br />
font-size: 0.85714em; /* reduce font-size to 12px for #sidebar */<br />
margin: 1.6667em 0; /* adjust margins accordingly */<br />
}</code></p></blockquote>
<p>You&#8217;ll see there&#8217;s a bit of maths going on here. To work out a new font size in ems, simply divide the target pixel size by the default pixel size. So if the default font size is 14px and we want a pixel size of 12px, we set it to 12/14 = 0.8571. Then, remembering that margins relate to the font size, we scale them so they match the global line height. In this case we want a margin of 20px (to match our line height) so the calculation is 20/12 = 1.6667.</p>
<p>So far so good. The only other tricky bit comes if we want to set the margins on our headings so that they are closer to the text below them, and have a bigger margin above. This helps re-inforce the relationship between a section of text and its heading, and helps create more appropriate spacing between sections.</p>
<p>One way to achive this is to double the top margin for headings, but that can make the spacing pretty large. So often I prefer to move the headings down by a fraction of the global line height. The important thing here is to keep the overall rhythm going, even though the rhythm is broken for a particular heading (maybe we should call this &#8217;syncopated headings&#8217;). To do this, just make sure that when you take something off the bottom margin, you add the same amount onto the top margin. That way the overall grid is maintained. We can use negative bottom margins to help with the interaction with the top margin on a following P element:</p>
<blockquote><p><code>h2 {<br />
font-size: 1.2857em; /* 18px */<br />
margin: 1.6666em 0 -0.5556em; /* top margin: 30px, bottom margin: 10px */<br />
}</code></p></blockquote>
<p>And that&#8217;s basically it. You can see a live demo of this technique <a title="View example in a new window" href="http://www.thesheep.co.uk/examples/vertical-rhythm/" target="_blank">here</a>. I&#8217;ve added the horizontal grid lines on with a background image, to help see how the spacing works.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesheep.co.uk/2009/01/14/css-typography-setting-a-vertical-rhythm/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Importing del.icio.us bookmarks into Firefox 3</title>
		<link>http://www.thesheep.co.uk/2008/06/27/importing-delicious-bookmarks-into-firefox-3/</link>
		<comments>http://www.thesheep.co.uk/2008/06/27/importing-delicious-bookmarks-into-firefox-3/#comments</comments>
		<pubDate>Fri, 27 Jun 2008 15:51:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[bookmarks]]></category>
		<category><![CDATA[delicious]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://www.thesheep.co.uk/?p=60</guid>
		<description><![CDATA[<p>I&#8217;ve been pretty impressed with <a href="http://www.mozilla.com/en-US/firefox/">Firefox 3</a>, the new version of the browser launched by Mozilla on June 17. It feels a lot snappier on OSX (it no longer lags behind Safari) and the new implementation of the address&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been pretty impressed with <a href="http://www.mozilla.com/en-US/firefox/">Firefox 3</a>, the new version of the browser launched by Mozilla on June 17. It feels a lot snappier on OSX (it no longer lags behind Safari) and the new implementation of the address bar is very usable. My favourite plugins were also immediately available (despite a few teething problems with the update system). So I finally took the plunge and switched my default browser to Firefox instead of Safari.</p>
<p>One of the new features I was glad to see was the ability to add tags to bookmarks. This is a much better way to organise bookmarks than a folder structure and it made me wonder about importing all my <a href="http://del.icio.us/">del.icio.us</a> bookmarks into Firefox. Although the <a href="https://addons.mozilla.org/en-US/firefox/addon/3615">del.icio.us plugin for Firefox 3</a> is actually very good, I thought it might be nice to be able to use the native browser system for adding new ones. (Sadly you can&#8217;t use both at the same time at the moment, because installing the del.icio.us extension seems to cripple the Firefox &#8216;add bookmark&#8217; function).</p>
<p>Annoyingly it turns out that, although you can export your bookmarks from del.icio.us with tags, importing them into Firefox strips off all the tag information. After some <a href="http://forums.mozillazine.org/viewtopic.php?f=23&amp;t=659182">discussion on the Mozilla forum</a>, someone came up with a ruby script for converting del.icio.us bookmarks into the required Firefox compatible format (including tags). And now my friend Zhang Xue from <a href="http://www.e-accent.com">e-accent</a> has helped me create a little online tool for doing the conversion, based on that original ruby script. Check it out at:</p>
<p><strong><a href="http://delicious.e-accent.com/">http://delicious.e-accent.com</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesheep.co.uk/2008/06/27/importing-delicious-bookmarks-into-firefox-3/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>The Sheep redesign</title>
		<link>http://www.thesheep.co.uk/2008/05/27/the-sheep-redesign/</link>
		<comments>http://www.thesheep.co.uk/2008/05/27/the-sheep-redesign/#comments</comments>
		<pubDate>Mon, 26 May 2008 23:08:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Cartoons]]></category>
		<category><![CDATA[the sheep]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.thesheep.co.uk/?p=50</guid>
		<description><![CDATA[<p>So at last I&#8217;m finally launching this redesign, which has been on the back-burner for many months now. It always surprises me how many hours it actually takes to get a site through from conception, design, HTML and finally WordPress&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>So at last I&#8217;m finally launching this redesign, which has been on the back-burner for many months now. It always surprises me how many hours it actually takes to get a site through from conception, design, HTML and finally WordPress build stages, even when you&#8217;re trying to keep things fairly simple.</p>
<p>On the plus side I&#8217;m learning more and more about building templates for WordPress. Verstion 2.5.1 seems very solid. And I was really impressed by <a href="http://urbangiraffe.com/plugins/search-unleashed/">John Godley&#8217;s advanced search plugin</a>, which provides search term highlighting in the results (just give the search on the right a try to see what I mean). It seems to be really well constructed &#8212; I&#8217;m definitely going to investigate John&#8217;s other plugins.</p>
<p>In this version I&#8217;ve decided to take the Sheep character a bit further and include some little cartoon sketches along with the blog posts. I draw these with pen and paper, which gets me away from the computer, and then later on scan in and re-draw with Illustrator. There&#8217;s just one in here so far: I&#8217;ve got a few more to come, just need to find the time to re-draw them.</p>
<p>This new site features a semi-flexible page width, which adapts to the size of the browser window. Also I concentrated on developing a consistent vertical rhythm for the typography, which should also maintain its structure pretty well as the text is resized.</p>
<p>Hope you like it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesheep.co.uk/2008/05/27/the-sheep-redesign/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Gfaster: faster iPhone searching over EDGE</title>
		<link>http://www.thesheep.co.uk/2008/03/11/gfaster-faster-iphone-searching-over-edge/</link>
		<comments>http://www.thesheep.co.uk/2008/03/11/gfaster-faster-iphone-searching-over-edge/#comments</comments>
		<pubDate>Tue, 11 Mar 2008 11:50:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[edge]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[iphone]]></category>

		<guid isPermaLink="false">http://www.thesheep.co.uk/?p=46</guid>
		<description><![CDATA[<p>After an idea I had <a href="http://www.thesheep.co.uk/2008/02/27/iphone-browsing-over-edge-with-images-turned-off">a couple of weeks ago</a>, I cobbled together <a href="http://gfaster.com">a little web app</a> for the iPhone that lets you search Google’s cached search results with images stripped out. <strong><a href="http://gfaster.com">Gfaster</a></strong> gives you a standard Google&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>After an idea I had <a href="http://www.thesheep.co.uk/2008/02/27/iphone-browsing-over-edge-with-images-turned-off">a couple of weeks ago</a>, I cobbled together <a href="http://gfaster.com">a little web app</a> for the iPhone that lets you search Google’s cached search results with images stripped out. <strong><a href="http://gfaster.com">Gfaster</a></strong> gives you a standard Google search, but adds ‘text-only’ links, allowing you to view a result quickly over <span class="caps">EDGE</span>. This can be useful if you’re stranded miles from a Wifi hotspot and wanting to some more serious reading or research over the 2G network. The page will load in a second or two and, although it won’t be very pretty, you get all the text in articles, reviews, forum posts, etc.</p>
<p><a title="Visit the app (works best on an iPhone)" href="http://gfaster.com"><img src="http://www.thesheep.co.uk/wp-content/uploads/gfaster-logo.gif" alt="GFaster - get Google search results faster over 2.5G network" /></a></p>
<p>The Gfaster search actually works well in practice. The only slight downside I’ve found is that many of the text-only pages are a little wide, resulting in quite small font-sizes on the iPhone, even in landscape orientation.</p>
<p>The app was built using <a href="http://code.google.com/apis/ajaxsearch/">Google’s Ajax Search API</a>, and I had some invaluable help from a couple of the guys at the <a href="http://groups.google.com/group/Google-AJAX-Search-API"><span class="caps">API</span> Google Group</a>. As usual, I was impressed by the community spirit of people willing to spend time to help each other out.</p>
<p>You can also find Gfaster listed on <a href="http://www.apple.com/webapps/searchtools/gfaster.html">Apple’s Web App Directory</a>.</p>
<p>For anyone giving this a try on their iPhone, let me know how you find it, and if you have any ideas for improving it. I should probably add pagination at the bottom, so when I get a moment I’ll do that.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesheep.co.uk/2008/03/11/gfaster-faster-iphone-searching-over-edge/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>JWTHF: My first big WordPress project</title>
		<link>http://www.thesheep.co.uk/2006/11/11/jwthf-my-first-big-wordpress-project/</link>
		<comments>http://www.thesheep.co.uk/2006/11/11/jwthf-my-first-big-wordpress-project/#comments</comments>
		<pubDate>Sat, 11 Nov 2006 13:07:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[blogs]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[core]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.thesheep.co.uk/2006/11/11/jwthf-my-first-big-wordpress-project/</guid>
		<description><![CDATA[<p><a href="http://www.jwthf.ch">JWT+H+F</a> is my first full-scale customisation of <a href="http://www.wordpress.org">WordPress</a> for a commercial website.  The site launched earlier this week as a ‘Conversation Website’ for the Swiss advertising agency JWT+H+F, the idea being a sort of a cross between a traditional&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.jwthf.ch">JWT+H+F</a> is my first full-scale customisation of <a href="http://www.wordpress.org">WordPress</a> for a commercial website.  The site launched earlier this week as a ‘Conversation Website’ for the Swiss advertising agency JWT+H+F, the idea being a sort of a cross between a traditional agency portfolio and a blog.  We&#8217;ve got a <a href="http://www.werbewoche.ch/newsmail061107_jwthf.werbewoche?ActiveID=2007">couple of</a> <a href="http://www.persoenlich.com/news/show_news.cfm?newsid=63646">writeups</a> already and it’s good to see we have a growing number of comments, although I’m not exactly sure what’s being said as it’s all in German.</p>
<p><img title="Screenshot from jwthf.ch" src="http://www.thesheep.co.uk/wp-content/uploads/jwthf-screenshot.gif" alt="Screenshot from jwthf.ch" width="360" height="264" /></p>
<p>The site is ground-breaking for a commercial agency portfolio in that it allows readers to leave comments on the work, as well as pulling in other related advertising content from the blogosphere.</p>
<p>The visual design and most of the initial HTML/CSS for this site was done by Henning von Vogelsang, otherwise known as <a href="http://www.corebasis.com">Core</a>, while my job was to create the WordPress template and change bits of the PHP until it did what we wanted.  The WordPress backend provides a full content management system where the client can write new articles, upload images and approve comments.</p>
<p>My experience with WordPress in this case was that it is generally well thought-out and constructed, and very stable.  However, things are a bit ragged around the edges, especially in areas like image uploading which are maybe not considered core to the blogging functionality (looking forward to improvements in WP version 2.1 though!).</p>
<p>As is typical of these sorts of Content Management Systems, the more you try to deviate from the pre-packaged functionality, the more you need to resort to ugly hacks.  If you need to build a blog with a fairly standard structure, then WordPress is an excellent choice.  If you need to make something a little more complex, particularly if it involves different sized images on different views, then be prepared for a lot of work.  In fact, you might want to consider a fast prototyping framework like <a href="http://www.rubyonrails.org/">Ruby on Rails</a> or <a href="http://www.cakephp.org/">CakePHP</a> instead.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesheep.co.uk/2006/11/11/jwthf-my-first-big-wordpress-project/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
