Browse code

Add H3 menu entries for leftnav:

- Add H3 formatting and entries to leftnav, to docs css.

Docker-DCO-1.1-Signed-off-by: Jason Giedymin <jasong@apache.org> (github: JasonGiedymin)

Jason Giedymin authored on 2014/06/20 20:39:28
Showing 3 changed files
... ...
@@ -24,6 +24,18 @@
24 24
   height: 100%;
25 25
 }
26 26
 
27
+#leftnav h3 {
28
+  font-size: 10px;
29
+  font-weight: 700;
30
+  color: #394d54;
31
+  line-height: 1;
32
+  margin: 0px 0 10px 0;
33
+  padding-left: 20px;
34
+  white-space: nowrap;
35
+  overflow: hidden;
36
+  text-overflow: ellipsis;
37
+}
38
+
27 39
 .content-body {
28 40
   padding: 0px 0px 0px 20px;
29 41
 }
... ...
@@ -902,7 +902,7 @@ div + .form-inline {
902 902
   margin-bottom: 22px;
903 903
 }
904 904
 #leftnav .nav {
905
-  margin: 0;
905
+  margin: 0, 0, 20px, 0;
906 906
 }
907 907
 #leftnav .nav > li > a {
908 908
   line-height: 22px;
... ...
@@ -1,5 +1,8 @@
1
-  {% for toc_item in toc %}
2
-    {% for toc_item in toc_item.children %}
3
-      <li class=""><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
1
+{% for toc_item in toc %}
2
+  {% for toc_h2_item in toc_item.children %}
3
+    <li class=""><a href="{{ toc_h2_item.url }}">{{ toc_h2_item.title }}</a></li>
4
+    {% for toc_h3_item in toc_h2_item.children %}
5
+      <h3><a href="{{ toc_h3_item.url }}">{{ toc_h3_item.title }}</a></h3>
6
+    {% endfor %}
4 7
   {% endfor %}
5 8
 {% endfor %}