]> git.proxmox.com Git - pve-docs.git/blobdiff - asciidoc/pve-html.conf
html TOC: add "back to index" link
[pve-docs.git] / asciidoc / pve-html.conf
index 4c202f718171aa08af51203c04922cdb7dd2b2ed..5ab506f87f7a52c161784e2ad9719165acd97246 100644 (file)
@@ -539,6 +539,7 @@ bodydata=<td class="tableblock halign-{colalign=left}">|</td>
 
 [toc]
 <div id="toc">
+  <a href="index.html" style="font-size: 0.8em;">↩Index</a>
   <div id="toctitle">{toc-title}</div>
   <noscript><p><b>JavaScript must be enabled in your browser to display the table of contents.</b></p></noscript>
 </div>
@@ -588,12 +589,43 @@ endif::linkcss[]
 ifdef::toc2[]
 <style type="text/css">
 div #toc {
-    width: 19em
+    width: 19em;
+    font-family: sans;
+    border-right: 3px solid gainsboro;
 }
-
-.book {
+.book, .article {
     margin-left: 22em
 }
+div #toc a:link, div #toc a:visited {
+    color: black;
+    text-decoration: none;
+}
+div #toc a:hover {
+    text-decoration: underline;
+}
+div .toclevel1 {
+    font-size: 1.1em;
+    margin-bottom: 0.3em;
+}
+
+.monospaced, code, pre {
+    overflow-wrap: break-word;
+}
+img {
+    max-width: 100%;
+}
+
+@media only screen and (min-width: 85em) {
+div #toc {
+    width: 22em
+}
+.book, .article {
+    margin-left: 25em
+}
+div .toclevel1 {
+    font-size: 1.2em;
+}
+}
 </style>
 endif::toc2[]