git.ucc.asn.au
/
planet-ucc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
357acec
)
Update for XHTML validity
author
davyd
<davyd>
Sat, 7 Feb 2004 14:40:24 +0000
(14:40 +0000)
committer
davyd
<davyd>
Sat, 7 Feb 2004 14:40:24 +0000
(14:40 +0000)
XMLWriter.py
patch
|
blob
|
history
planet.css
patch
|
blob
|
history
diff --git
a/XMLWriter.py
b/XMLWriter.py
index
8b0118b
..
80270b2
100644
(file)
--- a/
XMLWriter.py
+++ b/
XMLWriter.py
@@
-91,7
+91,7
@@
class XHTMLWriter:
def __write_item__(self, item):
output = ''
def __write_item__(self, item):
output = ''
- output += '<div
id
="item">\n'
+ output += '<div
class
="item">\n'
output += '<h2>%s: %s</h2>\n' % (item.blogTitle, item.itemTitle)
output += '<p class="time">\n'
if item.imageURL:
output += '<h2>%s: %s</h2>\n' % (item.blogTitle, item.itemTitle)
output += '<p class="time">\n'
if item.imageURL:
@@
-116,13
+116,13
@@
class XHTMLWriter:
output += '<link rel="icon" type="image/png" href="icon.png" />\n'
output += '</head>\n'
output += '<body>\n'
output += '<link rel="icon" type="image/png" href="icon.png" />\n'
output += '</head>\n'
output += '<body>\n'
- output += '<div
id
="header">\n'
+ output += '<div
class
="header">\n'
try:
output += open('header.html').read()
except:
pass
output += '</div>\n'
try:
output += open('header.html').read()
except:
pass
output += '</div>\n'
- output += '<div
id
="sidebar">\n'
+ output += '<div
class
="sidebar">\n'
try:
output += open('sidebar.html').read()
except:
try:
output += open('sidebar.html').read()
except:
@@
-138,7
+138,7
@@
class XHTMLWriter:
output += '<a href="%s">%s</a><br />\n' % (blog.blogURL, blog.blogTitle)
output += '</p>\n'
output += '</div>\n'
output += '<a href="%s">%s</a><br />\n' % (blog.blogURL, blog.blogTitle)
output += '</p>\n'
output += '</div>\n'
- output += '<div
id
="items">\n'
+ output += '<div
class
="items">\n'
for date in self.planet:
output += '<h1>%s</h1>\n' % time.strftime('%A %B %d, %Y', time.localtime(date.planetDate))
for item in date.items:
for date in self.planet:
output += '<h1>%s</h1>\n' % time.strftime('%A %B %d, %Y', time.localtime(date.planetDate))
for item in date.items:
@@
-151,7
+151,7
@@
class XHTMLWriter:
if itemcount >= self.maxitems:
break
output += '</div>\n'
if itemcount >= self.maxitems:
break
output += '</div>\n'
- output += '<div
id
="footer">\n'
+ output += '<div
class
="footer">\n'
try:
output += open('footer.html').read()
except:
try:
output += open('footer.html').read()
except:
diff --git
a/planet.css
b/planet.css
index
817a661
..
e567ee3
100644
(file)
--- a/
planet.css
+++ b/
planet.css
@@
-1,4
+1,4
@@
-
DIV#
header {
+
.
header {
position: absolute;
top: 0;
left: 0;
position: absolute;
top: 0;
left: 0;
@@
-7,26
+7,26
@@
DIV#header {
background-color: black;
}
background-color: black;
}
-
DIV#
header img.title {
+
.
header img.title {
position: absolute;
top: 0;
left: 2em;
}
position: absolute;
top: 0;
left: 2em;
}
-
DIV#
header img.logo {
+
.
header img.logo {
position: absolute;
top: 0;
right: 0;
}
position: absolute;
top: 0;
right: 0;
}
-
DIV#
sidebar {
+
.
sidebar {
position: absolute;
right: 0.5em;
width: 195px;
top: 130px;
}
position: absolute;
right: 0.5em;
width: 195px;
top: 130px;
}
-
DIV#
sidebar h2 {
+
.
sidebar h2 {
background-color: black;
color: white;
font-size: 1em;
background-color: black;
color: white;
font-size: 1em;
@@
-36,7
+36,7
@@
DIV#sidebar h2 {
padding: 0.5ex;
}
padding: 0.5ex;
}
-
DIV#
sidebar p {
+
.
sidebar p {
border-color: black;
border-style: solid;
border-width: 1pt;
border-color: black;
border-style: solid;
border-width: 1pt;
@@
-44,21
+44,21
@@
DIV#sidebar p {
padding: 0.5ex;
}
padding: 0.5ex;
}
-
DIV#
sidebar a {
+
.
sidebar a {
color: blue;
text-decoration: underline;
}
color: blue;
text-decoration: underline;
}
-
DIV#
sidebar a:visited {
+
.
sidebar a:visited {
color: blue;
text-decoration: underline;
}
color: blue;
text-decoration: underline;
}
-
DIV#
items {
+
.
items {
padding-right: 200px;
padding-top: 5em;
}
padding-right: 200px;
padding-top: 5em;
}
-
DIV#
items h1 {
+
.
items h1 {
background-color: black;
color: white;
font-size: 1.5em;
background-color: black;
color: white;
font-size: 1.5em;
@@
-67,11
+67,11
@@
DIV#items h1 {
margin-bottom: 0;
}
margin-bottom: 0;
}
-
DIV#
item {
+
.
item {
padding: 0.5em;
}
padding: 0.5em;
}
-
DIV#
item h2 {
+
.
item h2 {
background-color: #dddddd;
color: black;
font-size: 1em;
background-color: #dddddd;
color: black;
font-size: 1em;
@@
-79,53
+79,53
@@
DIV#item h2 {
padding: 0.5ex;
}
padding: 0.5ex;
}
-
DIV#
item img {
+
.
item img {
border-style: none;
padding-left: 1ex;
padding-right: 0.5ex;
}
border-style: none;
padding-left: 1ex;
padding-right: 0.5ex;
}
-
DIV#
item img.image {
+
.
item img.image {
float: right;
margin: 10pt;
padding: 0em;
}
float: right;
margin: 10pt;
padding: 0em;
}
-
DIV#
item p.body {
+
.
item p.body {
padding: 0.5em;
text-align: justify;
}
padding: 0.5em;
text-align: justify;
}
-
DIV#
item p.time {
+
.
item p.time {
color: #999999;
}
color: #999999;
}
-
DIV#
item p.body a {
+
.
item p.body a {
color: blue;
text-decoration: underline;
}
color: blue;
text-decoration: underline;
}
-
DIV#
item p.body a:visited {
+
.
item p.body a:visited {
color: blue;
text-decoration: underline;
}
color: blue;
text-decoration: underline;
}
-
DIV#
item p.time a {
+
.
item p.time a {
color: #999999;
text-decoration: none;
}
color: #999999;
text-decoration: none;
}
-
DIV#
item p.time a:visited {
+
.
item p.time a:visited {
color: #999999;
text-decoration: none;
}
color: #999999;
text-decoration: none;
}
-
DIV#
footer {
+
.
footer {
color: #999999;
text-align: center;
}
color: #999999;
text-align: center;
}
-
DIV#
footer a {
+
.
footer a {
color: #5555AA;
text-decoration: underline;
}
color: #5555AA;
text-decoration: underline;
}
-
DIV#
footer a:visited {
+
.
footer a:visited {
color: #5555AA;
text-decoration: underline;
}
color: #5555AA;
text-decoration: underline;
}
UCC
git Repository :: git.ucc.asn.au