mirror of
https://git.proxmox.com/git/pmg-docs
synced 2025-10-04 15:25:08 +00:00
adapt toc2 and more responsive style changes from PVE
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
fd3c20c24b
commit
509eaa9290
@ -319,6 +319,7 @@ sub compile_asciidoc {
|
|||||||
} elsif ($env eq 'default') {
|
} elsif ($env eq 'default') {
|
||||||
die "$infile: wrong doctype\n" if $doctype != 0;
|
die "$infile: wrong doctype\n" if $doctype != 0;
|
||||||
$attributes->{toc} = undef;
|
$attributes->{toc} = undef;
|
||||||
|
$attributes->{toc2} = undef;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!defined($outfile)) {
|
if (!defined($outfile)) {
|
||||||
|
@ -587,6 +587,50 @@ endif::toc2[]
|
|||||||
include1::{stylesheet}[]
|
include1::{stylesheet}[]
|
||||||
</style>
|
</style>
|
||||||
endif::linkcss[]
|
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[]
|
ifndef::disable-javascript[]
|
||||||
ifdef::linkcss[]
|
ifdef::linkcss[]
|
||||||
<script type="text/javascript" src="{scriptsdir=.}/asciidoc.js"></script>
|
<script type="text/javascript" src="{scriptsdir=.}/asciidoc.js"></script>
|
||||||
|
@ -8,7 +8,7 @@ Proxmox Mail Gateway Administration Guide
|
|||||||
endif::pmglogo[]
|
endif::pmglogo[]
|
||||||
:doctype: book
|
:doctype: book
|
||||||
:title: Proxmox Mail Gateway Administration Guide
|
:title: Proxmox Mail Gateway Administration Guide
|
||||||
:toc:
|
:toc2:
|
||||||
:numbered:
|
:numbered:
|
||||||
:data-uri:
|
:data-uri:
|
||||||
:icons:
|
:icons:
|
||||||
|
Loading…
Reference in New Issue
Block a user