]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
some formatting/indentation stuff
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 25 Apr 2007 13:45:31 +0000 (13:45 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 25 Apr 2007 13:45:31 +0000 (13:45 +0000)
doc/build/templates/formatting.html
doc/docs.css

index e0983983e3e9db5ed5c4e76af45a406d7cb37abc..563732d8edb99e185006c699fea9047d4536f480 100644 (file)
 
         item = toc.get_by_path(path)
         subsection = item.depth > 1
+        level = min(item.depth, 4)
     %>
     <A name="${item.path}"></a>
     
-    <div class="${subsection and 'subsection' or 'section'}">
+    <div class="${'sectionL%d' % level}">
 
     % if (subsection):
     <h3>${description or item.description}</h3>
@@ -33,7 +34,7 @@
     
     ${content}
 
-    % if (subsection and item.next and item.next.depth >= item.depth) or not subsection:
+    % if len(item.children) == 0:
         % if paged:
             <a href="#top">back to section top</a>
         % else:
index 59f0ef4d7b606cba758c45a604b8700625f3b0c8..497c52f8b2b9d94d53dc5faa3b5ff52f05c34bd3 100644 (file)
@@ -65,17 +65,27 @@ h3 {
     margin:26px 4px 0px 5px;
 }
 
-.section {
+.sectionL1 {
     line-height: 1.5em;
     padding:8px 10px 20px 10px;
     margin:10px 0px 0px;
 }
 
-.subsection {
+.sectionL2 {
     margin:0px 0px 0px 20px;
     line-height: 1.5em;
 }
 
+.sectionL3 {
+    margin:0px 0px 0px 40px;
+    line-height: 1.5em;
+}
+
+.sectionL4 {
+    margin:0px 0px 0px 40px;
+    line-height: 1.5em;
+}
+
 
 .topnav li {
    font-size:12px;