hackdoc: render TOC inline
Change-Id: Ib91e4d3b73354e7e19095ea62eed70a23ef96512
diff --git a/devtools/hackdoc/tpl/default.html b/devtools/hackdoc/tpl/default.html
index e6280db..6211e38 100644
--- a/devtools/hackdoc/tpl/default.html
+++ b/devtools/hackdoc/tpl/default.html
@@ -169,7 +169,7 @@
line-height: 1.5em;
}
-.content ul {
+.content :not(li) > ul {
padding-top: 0.5em;
line-height: 1.5em;
}
@@ -178,12 +178,20 @@
padding-left: 1em;
}
-.content ul li::before {
+.content :not(li) > ul > li::before {
content: "•";
color: #333;;
display: inline-block;
width: 1em;
- margin-left: -1em;
+ margin-left: -0.5em;
+}
+
+.content li > ul > li::before {
+ content: "◦";
+ color: #333;;
+ display: inline-block;
+ width: 1em;
+ margin-left: -0.5em;
}
.content img {
@@ -193,37 +201,19 @@
}
.toc {
- float: right;
- padding: 1em 1em 1em 1em;
+ padding: .5em;
border: 1px solid #ddd;
background-color: #f8f8f8;
margin: 2em;
max-width: 30%;
-}
-
-.toc h1 {
- font-size: 1.2em;
- padding-bottom: 0.5em;
+ font-size: 1em;
+ font-family: sans-serif;
}
.toc a {
text-decoration: none;
}
-.toc li {
- padding-left: 0.5em;
-}
-
-.toc ul {
- list-style-type: disc;
- padding-left: 1em;
-}
-
-.toc ul ul {
- list-style-type: circle;
-}
-
-
</style>
{{ end }}
{{ define "body" }}