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>
${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:
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;