- Add H3 formatting and entries to leftnav, to docs css.
Docker-DCO-1.1-Signed-off-by: Jason Giedymin <jasong@apache.org> (github: JasonGiedymin)
| ... | ... |
@@ -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 |
} |
| ... | ... |
@@ -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 %}
|