summaryrefslogtreecommitdiffstats
path: root/docs/generator/custom
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2019-09-03 10:23:48 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2019-09-03 10:23:48 +0000
commitcd7ed12292aef11d9062b64f61215174e8cc1860 (patch)
tree9998ab03d153956743d9319cf3a0279b9593ce36 /docs/generator/custom
parentReleasing debian version 1.16.1-6. (diff)
downloadnetdata-cd7ed12292aef11d9062b64f61215174e8cc1860.tar.xz
netdata-cd7ed12292aef11d9062b64f61215174e8cc1860.zip
Merging upstream version 1.17.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'docs/generator/custom')
-rw-r--r--docs/generator/custom/css/netdata.css25
1 files changed, 23 insertions, 2 deletions
diff --git a/docs/generator/custom/css/netdata.css b/docs/generator/custom/css/netdata.css
index 27f1b08cc..7b1934db4 100644
--- a/docs/generator/custom/css/netdata.css
+++ b/docs/generator/custom/css/netdata.css
@@ -14,7 +14,6 @@
/* Custom styling for the new documentation homepage.
In particular, the three buttons for install/getting started/configuration. */
-
.homepage-nav {
display: flex;
margin-top: 1.4rem;
@@ -64,11 +63,33 @@
margin-bottom: 6rem;
}
-/* Make sure inline code in tables doesn't break. */
+/* Make sure inline code in tables don't break. */
.md-typeset__table code {
word-break: normal;
}
+/* Give code blocks a little more line height */
+.md-typeset pre {
+ line-height: 1.6;
+}
+
+/* Show line numbers. */
+[data-linenos]:before {
+ border-right: .0625rem solid #ddd;
+ color: #999;
+ content: attr(data-linenos);
+ display: inline-block;
+ margin-left: -1.2rem;
+ margin-right: .7rem;
+ padding-left: 1.2rem;
+}
+
+.md-typeset .highlight .hll {
+ display: inline;
+ margin: 0;
+ padding: 0;
+}
+
/* Bold the first item on the docs sidebar: Netdata Documentation */
.md-nav--primary > .md-nav__list > .md-nav__item:first-of-type {
font-weight: 700;