adapt toc2 and more responsive style changes from PVE

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-02-13 16:42:03 +01:00
parent fd3c20c24b
commit 509eaa9290
3 changed files with 46 additions and 1 deletions

View 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)) {

View 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>

View 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: