From 79bbf399ff5d6a9ae966f0a9b2795fb029c0b79b Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Tue, 11 Nov 2008 01:57:49 +0100 Subject: CSS magic for news items. Thanks to Arne Babenhauserheide for a hint. --- .templates/newsitem.tmpl | 32 ++++++++++++++++++++------------ local.css | 31 +++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 12 deletions(-) diff --git a/.templates/newsitem.tmpl b/.templates/newsitem.tmpl index 97098ca5..1c8f2ae8 100644 --- a/.templates/newsitem.tmpl +++ b/.templates/newsitem.tmpl @@ -18,6 +18,18 @@ + +
+ +
+
@@ -27,10 +39,14 @@
+ + Tags: @@ -40,6 +56,9 @@ Tags: + - +-->
diff --git a/local.css b/local.css index 4b631f8e..032d7de5 100644 --- a/local.css +++ b/local.css @@ -129,6 +129,37 @@ pre margin-right: auto; } +/* News items on the front page. */ +.newsitem +{ + border: 1px solid black; +} +.newsitem + .newsitem +{ + /* TODO: Why doesn't this work as I want it to work? */ +// border-top-style: none; +} +.newsitemheader +{ + max-width: 30%; + float: left; + margin-right: 10px; +} +.newsitem .header, +.newsitem .author +{ + font-size: medium; +} +.newsitem .actions ul +{ + padding: 0; + border-bottom: 0; +} +.newsitem .actions li +{ + display: block; +} + .table_style_1 { text-align: left; -- cgit v1.3.1