From db0cdb6c8a10b0f192ebf5d984f823f7f57123a7 Mon Sep 17 00:00:00 2001 From: Wesley Moore Date: Tue, 26 Jan 2010 16:21:57 +1100 Subject: [PATCH] Little date blocks --- layouts/listing.html | 4 ++-- output/css/style.css | 27 +++++++++++++++++++++++++-- 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/layouts/listing.html b/layouts/listing.html index dfef5fb..c93ecb1 100644 --- a/layouts/listing.html +++ b/layouts/listing.html @@ -4,8 +4,8 @@ <%= @item[:title] %> - - + + diff --git a/output/css/style.css b/output/css/style.css index e035a66..945e545 100644 --- a/output/css/style.css +++ b/output/css/style.css @@ -182,9 +182,32 @@ ul#menu li { border-top: none; padding-top: 1em; } -.column abbr { +abbr.date { display: block; - font-size: 0.8em; + width: 30px; + height: 60px; + float: left; + padding-right: 0.5em; +} +abbr.date span { + display: block; + text-align: center; +} +abbr.date .day { + font-size: 14px; + font-weight: bold; +} +abbr.date .month { + text-transform: uppercase; + font-family: "Helvetica Neue", Helvetica, "Liberation Sans", "Bitstream Vera Sans", Tahoma, Geneva, Arial, sans-serif; + font-size: 10px; +} +abbr.date .year { +/* border: 1px solid red;*/ +/* -webkit-transform-origin: bottom right; + -webkit-transform: rotate(-90deg);*/ + font-size: 9px; + font-family: "Helvetica Neue", Helvetica, "Liberation Sans", "Bitstream Vera Sans", Tahoma, Geneva, Arial, sans-serif; } /* Flickr thumbnails */