Commits

Steve Losh  committed 53047b4

TOC changes.

  • Participants
  • Parent commits 6425f81

Comments (0)

Files changed (2)

File bookmarkdown/static/styles/style.less

 }
 
 body.splash {
-    .toc {
+    section.toc {
         margin-top: 30px;
+
+        ol {
+            margin-left: 26px;
+
+            &.pre-toc {
+                margin-bottom: 0px;
+
+                li {
+                    list-style-type: lower-roman;
+                }
+            }
+            &.toc {
+                li {
+                    list-style-type: decimal;
+                }
+            }
+        }
     }
 }

File bookmarkdown/templates/splash.html

         <section class="toc">
             <h2>Table of Contents</h2>
 
-            <ol>
+            <ol class="pre-toc">
                 <li><a href="/preface.html">Preface</a></li>
                 <li><a href="/acknowledgements.html">Acknowledgements</a></li>
+            </ol>
+            <ol class="toc" start="0">
                 {% for chapter in chapters %}
                     <li><a href="/{{ chapter['filename'] }}.html">{{ chapter['name'] }}</a></li>
                 {% endfor %}