]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
css: some markdown heading and paragraph font-size & padding tuning
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 30 Jun 2021 12:21:50 +0000 (14:21 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 30 Jun 2021 12:21:50 +0000 (14:21 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/css/ext6-pmx.css

index 8e1980c41248ea3e3b9c4d1759edc7c5cf17cf82..850dbb04c6180149e22f71fde5baaea17746bb66 100644 (file)
@@ -146,28 +146,43 @@ div.right-aligned {
 }
 
 /* rules for the markdown content, prefix with the .pmx-md class */
+.pmx-md {
+    font-size: 1.0em;
+    line-height: 1.25em;
+}
+.pmx-md p {
+    margin-top: 0.75em;
+    margin-bottom: 0.75em;
+}
+.pmx-md :is(h1, h2, h3, h4, h5, h6) {
+    margin-top: 0.9em;
+    margin-bottom: 0.75em;
+}
+.pmx-md h1 { font-size: 175%; }
+.pmx-md h2 { font-size: 150%; }
+.pmx-md h3 { font-size: 125%; }
+.pmx-md h4 { font-size: 110%; }
+.pmx-md h5 { font-size: 100%; }
+.pmx-md h6 { font-size: 100%; }
+
 .pmx-md code {
     white-space: pre;
     background-color: #f5f5f5;
     padding: 1px;
 }
-
 .pmx-md pre code {
     display: inline-block;
     padding: 5px;
     border-left: 3px solid #e0e0e0;
 }
-
 .pmx-md strong {
     font-weight: bold;
 }
-
 .pmx-md blockquote {
     border-left: 1px solid #666666;
     padding-left: 4px;
     margin: 10px 2ch;
 }
-
 /* markdown tables */
 .pmx-md table {
     border-spacing: 0;
@@ -194,3 +209,6 @@ div.right-aligned {
 .pmx-md tbody tr:hover td {
     background-color: #e0e0e0;
 }
+/* markdown tables end */
+
+/* markdown content end */