constance

Scripts for generating (an earlier obsolete version of) my personal web site
git clone https://code.djc.id.au/git/constance/
commit 70629b7b9f7c7b8db774aae82bab94ae9fbeade6
parent 5ac1afdce224c63fbd291669c713a998ac4e6362
Author: Dan Callaghan <djc@djc.id.au>
Date:   Wed,  3 Dec 2008 17:50:22 +1000

updated css for class name changes

Diffstat:
Mstatic/css/common.css | 73++++++++++++++++++++++++++++++++++++++-----------------------------------
Mtemplates/ReadingLogEntry.xml | 2+-
2 files changed, 39 insertions(+), 36 deletions(-)
diff --git a/static/css/common.css b/static/css/common.css
@@ -55,20 +55,17 @@ div.blocksep {
     text-align: center;
 }
 
-.entry {
+/* Styles which are common to all item types */
+.item {
     padding: 2em 0;
     clear: both;
     border-top: 1px solid #ddd;
 }
-.entry h3.entrytitle {
+.item h3 {
     display: inline;
-    font-size: 1.5em;
-    text-transform: uppercase;
-    letter-spacing: 0.1ex;
-    word-spacing: 0.2em;
     margin-right: 0.5em;
 }
-.entry .entrydate {
+.item .date {
     font-family: "Corbel", "Liberation Sans", sans-serif;
     display: inline;
     font-size: 1.2em;
@@ -78,27 +75,56 @@ div.blocksep {
     white-space: nowrap;
     margin-right: 0.25em;
 }
-.entry .entrydate a {
+.item .date a {
     color: #888;
 }
-.entry .entrytags {
+
+/* Blog entries */
+.BlogEntry h3 {
+    font-size: 1.5em;
+    text-transform: uppercase;
+    letter-spacing: 0.1ex;
+    word-spacing: 0.2em;
+}
+.BlogEntry .tags {
     display: inline;
     font-style: italic;
     color: #888;
 }
-.entry .entrytags a {
+.BlogEntry .tags a {
     color: black;
     white-space: nowrap;
 }
-.entry .entrycommentslink {
+.BlogEntry .commentslink {
     text-align: right;
     font-style: italic;
 }
-.entry .entrycommentslink a {
+.BlogEntry .commentslink a {
     color: #888;
     white-space: nowrap;
 }
 
+/* Reading log entries */
+.ReadingLogEntry h3 {
+    font-size: 1.2em;
+    word-spacing: 0.1em;
+}
+.ReadingLogEntry h3 a {
+    font-style: italic;
+    margin-right: 0.2em;
+}
+.ReadingLogEntry .author {
+    white-space: nowrap;
+}
+.ReadingLogEntry img.cover {
+    float: right;
+    margin: 0 0 1em 1em;
+}
+.ReadingLogEntry .rating {
+    display: inline;
+    white-space: nowrap;
+}
+
 /* Comments */
 .entry .commentblock {
     margin: 2em 4em 0 4em;
@@ -131,29 +157,6 @@ div.blocksep {
     font-size: 1em;
 }
 
-/* Reading log entries */
-.readinglog h3.entrytitle {
-    font-size: 1.2em;
-    word-spacing: 0.1em;
-    letter-spacing: 0;
-    text-transform: none;
-}
-.readinglog h3.entrytitle a {
-    font-style: italic;
-    margin-right: 0.2em;
-}
-.readinglog .author {
-    white-space: nowrap;
-}
-.readinglog img.cover {
-    float: right;
-    margin: 0 0 1em 1em;
-}
-.readinglog .rating {
-    display: inline;
-    white-space: nowrap;
-}
-
 /* Previous/next links, if enabled */
 #prevnextlinks {
     padding: 2em 0;
diff --git a/templates/ReadingLogEntry.xml b/templates/ReadingLogEntry.xml
@@ -19,7 +19,7 @@ from recaptcha.client import captcha
      src="http://covers.librarything.com/devkey/${config.get('readinglog', 'librarything_devkey')}/small/isbn/${entry.isbn}" 
      alt="Cover image for ${entry.title}" /-->
 
-<h3 class="title" id="ReadingLogEntry-${idify(item.title)}">
+<h3 id="ReadingLogEntry-${idify(item.title)}">
     <a py:strip="not item.url" href="${item.url}">${mini_markdown(item.title)}</a>
     <span py:if="item.author" class="author">by ${item.author}</span>
 </h3>