[kupu-checkins] r45707 - in kupu/trunk/kupu/plone: . kupu_plone_layer

duncan at codespeak.net duncan at codespeak.net
Thu Aug 16 13:02:19 CEST 2007


Author: duncan
Date: Thu Aug 16 13:02:17 2007
New Revision: 45707

Modified:
   kupu/trunk/kupu/plone/kupu_plone_layer/kupuplone.css.dtml
   kupu/trunk/kupu/plone/zmi_docs.pt
Log:
Documentation page: fixed toc styling, and broken internal jumps

Modified: kupu/trunk/kupu/plone/kupu_plone_layer/kupuplone.css.dtml
==============================================================================
--- kupu/trunk/kupu/plone/kupu_plone_layer/kupuplone.css.dtml	(original)
+++ kupu/trunk/kupu/plone/kupu_plone_layer/kupuplone.css.dtml	Thu Aug 16 13:02:17 2007
@@ -327,5 +327,30 @@
 dl.captioned {
    padding: 10px;
 }
+
+/* Styling for documentation tab */
+.template-zmi_docs .contents {
+    float: right;
+    width: 30%;
+    font-size: 90%;
+    margin: 0 0 0.5em 0.5em; padding-top:0;
+    border: &dtml-borderWidth; &dtml-borderStyle; &dtml-globalBorderColor;;
+}
+.template-zmi_docs ul.auto-toc, .template-zmi_docs ul.simple {
+  list-style: none;
+}
+.template-zmi_docs .topic-title {
+    background-color: &dtml-globalBackgroundColor;;
+    margin-top: 0;
+    padding: 0em 1em;
+    text-transform: &dtml-textTransform;;
+    font-weight: normal;
+    line-height: 1.6em;
+    border-bottom: &dtml-borderWidth; &dtml-borderStyle; &dtml-globalBorderColor;;
+}
+.template-zmi_docs .topic-title a {
+    color: &dtml-fontColor;;
+    border-bottom: none;
+}
 /* </dtml-let></dtml-with> */
 

Modified: kupu/trunk/kupu/plone/zmi_docs.pt
==============================================================================
--- kupu/trunk/kupu/plone/zmi_docs.pt	(original)
+++ kupu/trunk/kupu/plone/zmi_docs.pt	Thu Aug 16 13:02:17 2007
@@ -2,13 +2,30 @@
     lang="en"
     metal:use-macro="here/kupu_config/macros/master"
     i18n:domain="kupuconfig">
+<style metal:fill-slot="style_slot">
+div.system-messages {
+  margin: 5em }
 
+div.system-messages h1 {
+  color: red }
+
+div.system-message {
+  border: medium outset ;
+  padding: 1em }
+
+div.system-message p.system-message-title {
+  color: red ;
+  font-weight: bold }
+</style>
 <body>
 
     <div class="documentContent" metal:fill-slot="kupu_content"
  tal:define="convertTo nocall:here/portal_transforms/convertTo|nothing">
 <div tal:condition="nocall:convertTo"
-     tal:content="structure python:convertTo('text/html', here.docs(), mimetype='text/x-rst')"
+     tal:define="tpath template/absolute_url_path;
+        stream python:convertTo('text/html', here.docs(), mimetype='text/x-rst');
+        formatted python:str(stream).replace('href=\x22#','href=\x22'+tpath+'#');"
+     tal:content="structure formatted"
      tal:on-error="structure string:Documentation formatting failed: ${error/value}&lt;pre&gt;${here/docs}&lt;/pre;&gt;">
 </div>
 <pre tal:condition="not:nocall:convertTo"


More information about the kupu-checkins mailing list