aboutsummaryrefslogtreecommitdiff
path: root/doc/todo/ease_archivepage_styling.mdwn
blob: 67415c17611ca5600e1bff06e1b81562aa4ef7af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Hi! Please apply the following [[patch]] to make the
`archivepage.tmpl` template more semantic and easier to style with
a local CSS:

	From 4e5cc0d9e5582f20df9f26dd5b1937ead0b46827 Mon Sep 17 00:00:00 2001
	From: intrigeri <intrigeri@boum.org>
	Date: Sat, 18 Aug 2012 10:34:36 +0200
	Subject: [PATCH] Ease archivepage styling by using named classes, move
	 styling to the CSS.
	
	---
	 doc/style.css              |    4 ++++
	 templates/archivepage.tmpl |    8 ++++----
	 2 files changed, 8 insertions(+), 4 deletions(-)
	
	diff --git a/doc/style.css b/doc/style.css
	index 6e2afce..5fb4100 100644
	--- a/doc/style.css
	+++ b/doc/style.css
	@@ -202,6 +202,10 @@ div.recentchanges {
	 	margin-top: 1em;
	 }
	 
	+.archivepagedate {
	+	font-style: italic;
	+}
	+
	 .error {
	 	color: #C00;
	 }
	diff --git a/templates/archivepage.tmpl b/templates/archivepage.tmpl
	index 93bdd9c..3e0bd9b 100644
	--- a/templates/archivepage.tmpl
	+++ b/templates/archivepage.tmpl
	@@ -1,10 +1,10 @@
	-<p>
	+<div class="archivepage">
	 <TMPL_IF PERMALINK>
	 <a href="<TMPL_VAR PERMALINK>"><TMPL_VAR TITLE></a><br />
	 <TMPL_ELSE>
	 <a href="<TMPL_VAR PAGEURL>"><TMPL_VAR TITLE></a><br />
	 </TMPL_IF>
	-<i>
	+<span class="archivepagedate">
	 Posted <TMPL_VAR CTIME>
	 <TMPL_IF AUTHOR>
	 by <span class="author">
	@@ -15,5 +15,5 @@ by <span class="author">
	 </TMPL_IF>
	 </span>
	 </TMPL_IF>
	-</i>
	-</p>
	+</span>
	+</div>
	-- 
	1.7.10.4

> [[done]] --[[Joey]]