]> git.proxmox.com Git - pve-docs.git/blobdiff - asciidoc/pve-html.conf
html: avoid horizontal overflows, break-word and limit image width
[pve-docs.git] / asciidoc / pve-html.conf
index 5aaf7aaba040895b29c24f0ea1dff5beced43aa4..c64d2c45d8d56a13b5fb62536eb29833c5e3fdbb 100644 (file)
@@ -584,6 +584,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>