]> git.proxmox.com Git - pmg-docs.git/commitdiff
adapt toc2 and more responsive style changes from PVE
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 13 Feb 2020 15:42:03 +0000 (16:42 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 13 Feb 2020 15:42:03 +0000 (16:42 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
asciidoc-pmg.in
asciidoc/pmg-html.conf
pmg-admin-guide.adoc

index 443afe622bf75a0f013feeb38c97b9031399dde9..ec4bb2a781096e7a045f57dcf6157e3f55794e1f 100644 (file)
@@ -319,6 +319,7 @@ sub compile_asciidoc {
     } elsif ($env eq 'default') {
        die "$infile: wrong doctype\n" if $doctype != 0;
        $attributes->{toc} = undef;
+       $attributes->{toc2} = undef;
     }
 
     if (!defined($outfile)) {
index 75cc9a49d0c685e7933d693ca8d95f54abdfa96d..b801096c99afeba6571035363668b865ed8cb93c 100644 (file)
@@ -587,6 +587,50 @@ endif::toc2[]
 include1::{stylesheet}[]
 </style>
 endif::linkcss[]
+
+ifdef::toc2[]
+<style type="text/css">
+div #toc {
+    width: 19em;
+    font-family: sans;
+    border-right: 3px solid gainsboro;
+}
+.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[]
+
 ifndef::disable-javascript[]
 ifdef::linkcss[]
 <script type="text/javascript" src="{scriptsdir=.}/asciidoc.js"></script>
index aee7cf6291e4a9ef49c65107859b92eddc59ae71..15ca793ba9ce6805cab13ffb72b3f34af8d89816 100644 (file)
@@ -8,7 +8,7 @@ Proxmox Mail Gateway Administration Guide
 endif::pmglogo[]
 :doctype:   book
 :title: Proxmox Mail Gateway Administration Guide
-:toc:
+:toc2:
 :numbered:
 :data-uri:
 :icons: