summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--book/theme/css/chrome.css3
-rw-r--r--book/theme/css/general.css21
2 files changed, 22 insertions, 2 deletions
diff --git a/book/theme/css/chrome.css b/book/theme/css/chrome.css
index 3056e16d..72b7f188 100644
--- a/book/theme/css/chrome.css
+++ b/book/theme/css/chrome.css
@@ -381,7 +381,6 @@ ul#searchresults span.teaser em {
.chapter {
list-style: none outside none;
padding-left: 0;
- line-height: 2.2em;
margin: .25rem 0;
}
@@ -426,7 +425,7 @@ ul#searchresults span.teaser em {
}
.chapter li.chapter-item {
- padding: .875rem 1.5rem .125rem;
+ padding: 1rem 1.5rem;
}
.chapter .section li.chapter-item {
diff --git a/book/theme/css/general.css b/book/theme/css/general.css
index 979c98f1..1eebef0f 100644
--- a/book/theme/css/general.css
+++ b/book/theme/css/general.css
@@ -93,6 +93,27 @@ h6:target::before {
margin-right: auto;
max-width: var(--content-max-width);
}
+
+
+/* 2 1.75 1.5 1.25 1 .875 */
+
+.content h1 { font-size: 2em }
+.content h2 { font-size: 1.75em }
+.content h3 { font-size: 1.5em }
+.content h4 { font-size: 1.25em }
+.content h5 { font-size: 1em }
+.content h6 { font-size: .875em }
+
+.content h1, .content h2, .content h3, .content h4 {
+ font-weight: 500;
+ margin-top: 1.275em;
+ margin-bottom: .875em;
+}
+.content p, .content ol, .content ul, .content table, .content blockquote {
+ margin-top: 0;
+ margin-bottom: .875em;
+}
+
.content p { line-height: 1.45em; }
.content ol { line-height: 1.45em; }
.content ul { line-height: 1.45em; }