summaryrefslogtreecommitdiffstats
path: root/docs/generator/custom/css/netdata.css
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2019-09-03 10:23:38 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2019-09-03 10:23:38 +0000
commit574098461cd45be12a497afbdac6f93c58978387 (patch)
tree9eb60a5930b7c20d42f7fde1e234cae3968ed3d9 /docs/generator/custom/css/netdata.css
parentAdding upstream version 1.16.1. (diff)
downloadnetdata-574098461cd45be12a497afbdac6f93c58978387.tar.xz
netdata-574098461cd45be12a497afbdac6f93c58978387.zip
Adding upstream version 1.17.0.upstream/1.17.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'docs/generator/custom/css/netdata.css')
-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;