888888.888888.88""Yb..dP"Yb..8888b..Yb..dP.88b.88....db....8b....d8.88..dP""b8..dP"Y8
88__...88__...88__dP.dP...Yb..8I..Yb.YbdP..88Yb88...dPYb...88b..d88.88.dP...`".`Ybo."
88""...88""...88"Yb..Yb...dP..8I..dY..8P...88.Y88..dP__Yb..88YbdP88.88.Yb......o.`Y8b
88.....888888.88..Yb..YbodP..8888Y"..dP....88..Y8.dP""""Yb.88.YY.88.88..YboodP.8bodP'


88b.88.888888.888888.Yb........dP.dP"Yb..88""Yb.88..dP
88Yb88.88__.....88....Yb..db..dP.dP...Yb.88__dP.88odP.
88.Y88.88"".....88.....YbdPYbdP..Yb...dP.88"Yb..88"Yb.
88..Y8.888888...88......YP..YP....YbodP..88..Yb.88..Yb

February 28, 2010

Themery Blogged Title

This is the seventh post in my series, Themery : Blogged, where I blog about each step of a WordPress theme design.

Although I already explained how the layout would work, in the initial design process that I wrote about last week, I didn’t do any calculations at that time; it was purely visual. This post will explain the process behind creating the major structures, and the basics of the type that the theme will use.

As this theme doesn’t really include any graphics there isn’t really any excuse for restricting the users’ ability to resize the text. I want to keep the structure intact, but allow resizing, and so I have opted for an elastic layout.

Normally I would set the body font-size to the final size I wanted (equivalent to 12px) but to make the layout simpler I have set the body size to the equivalent of 10px: 62.5%; the background colour is used to illustrate the layout and will be removed.

body
{
font-size:62.5%;
background-color:#fff;
font-family:verdana, arial, helvertical, sans-serif;
}

With a font-size of 10px the rest of the layout should be relatively straightforward. The basic HTML looks like this (I have omitted the actual content for simplicity:

<div id=”container”>
<ul id=”sitewide_navigation”>

</ul>
<div id=”content”>
<h1>Page Title</h1>
<ul id=”post-navigation”>

</ul>
<p>Content</p>
<div id=”comments>

</div>
<p>Content</p>
<blockquote>

</blockquote>
<p>Content</p>
</div>
</div>

The important point to note about this layout is that, with the exception of the site wide navigation, all of the content is contained within the content div and then moved out using negative margins. This means that for elements such as blockquotes and the comments that I can wrap the text around it while having it appear mostly as a separate column.

Theme Layout Dimensions

The width of the content and the width of the columns, placed side-by-side are roughly the dimensions of the golden ratio: 55em (550px) X 0.618 = 34em (340px). The comments are then indented, also using the golden ratio: 34em (340px) X 0.618 = 21em (210px).

The same dimensions are used for the blockquote on the left hand side, and will be used for other items such as figures.

The key CSS that achieves these is set out below:

#container
{
width:97em;
margin:0 auto;
background-color:#ccc;
}

#content
{
width:55em;
margin:4.2em 21em 0 21em;
background-color:#efefef;
}

#comments
{
width:30em;
padding:0 1em;
margin:0 1em;
float:right;
margin-right:-21em;
background-color:#ccccff;
}

#content blockquote
{
width:30em;
padding:0 1em;
margin:0 1em;
float:left;
margin-left:-21em;
clear:left;
background-color:#ffefef;
}

As I have sized everything using EMs the whole layout will scale as the font-size is increased

Theme Content Lined

The type I have used follows a fairly standard baseline rhythm. The font is 1.2em (12px) Grey Verdana with a line height of 1.75em (21px) and margins the same height. The comment text is 1.1em (11px) but follows the same line height to ensure that the text remains consistent throughout.

The header is 2.8em (28px) Ameretto with a line height of 1.5em (42px), and the text beneath it, which will become the post navigation is 1em (10px) with the standard 2.1em (21px) line height and a bottom margin of 0.75em (21px).

The image on the right shows how the comment text, despite being a different font size is perfectly lined up with the content text. This helps to create a uniformity on the page that reinforces the minimalist concept.

When seen without the lines the text is very easy to read, uniform, and resizeable.

Content Screenshot

This isn’t absolutely final. I am still tweaking things as I go; for example, I am not sure I like the line space between the name of each commenter and their comment, but in general this is how it will appear.

Charcoal Theme Available For Wordpress
Charcoal theme?
2 comments
page 959
Html 5 Gallery
Html5 wordpress?
6 comments
page 1305
Using Your Own Url Shortener
Htaccess short url wordpress?
4 comments
page 1190
Dont Mess With My Toot Toot
Dont mess with my toot toot dates?
15 comments
page 599
Dont Mess With My Toot Toot
Dont mess with my toot toot?
15 comments
page 599
Should Wordpress Produce A Php 5 Only Version
Compare php5 versions?
11 comments
page 35
Quick N Dirty Comment Stats
Dirty comments?
no comment
page 130
Why I Ditched Disqus
Better than disqus?
5 comments
page 1175
Html 5 Gallery
Html5 photo gallery?
6 comments
page 1305
Html 5 Gallery
Making a photo album in html 5?
6 comments
page 1305
Post Image The Easy Peasy Way
Getpost image in wordpress?
26 comments
page 1065
Ithemes Essence Review
Review of changing the essence?
4 comments
page 238
Quick N Dirty Admin Login Screen
Login screen css?
no comment
page 128
Adding Settings To Admin Pages
Writing wordpress admin pages?
3 comments
page 793
Using Your Own Url Shortener
Use your own url from link?
4 comments
page 1190
Custom Hooks For Admin Pages
Wordpress post form admin pages?
one comment
page 430
How To Add Sidebars To A Theme
Div above footer wordpress?
10 comments
page 1053
Html 5 Gallery
Html5 photo gallery?
6 comments
page 1305
Post Image The Easy Peasy Way
Image loop for wordpress?
26 comments
page 1065
Using Wordpress As A Php Framework
Wordpress framework?
2 comments
page 335
Html 5 Gallery
Html 5 photo?
6 comments
page 1305
Using Wordpress As A Php Framework
Using wordpress as a framework?
2 comments
page 335
Fun With Sidebar Tabs Styling
How to alter sidebar css?
2 comments
page 336
Should Wordpress Produce A Php 5 Only Version
Wordpress 3 php version?
11 comments
page 35
Using Your Own Url Shortener
How to make own url short site?
4 comments
page 1190
Html 5 Gallery
Html5 wordpress theme?
6 comments
page 1305
Post Image The Easy Peasy Way
Wordpress function to call images with urls?
26 comments
page 1065
Dont Mess With My Toot Toot
Wpinsertpost?
15 comments
page 599
3 Ways To Speed Up Your Blog Without A Cache Plugin
Ways to speed up wordpress blog?
one comment
page 1321
Using Your Own Url Shortener
Create htaccess for shorten url?
4 comments
page 1190
Using Your Own Url Shortener
Wordpress using bookmark for url?
4 comments
page 1190
Theming Habari Vs Wordpress
Habari admin for wordpress?
13 comments
page 440
Theming Habari Vs Wordpress
Habari post variable author name?
13 comments
page 440
  1 query every 1226 seconds, updated 1 seconds ago.
Post a comment?