]> 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 4c202f718171aa08af51203c04922cdb7dd2b2ed..c64d2c45d8d56a13b5fb62536eb29833c5e3fdbb 100644 (file)
@@ -588,12 +588,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[]