aboutsummaryrefslogtreecommitdiff
path: root/book/theme/css/general.css
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-04-07 14:56:56 +0000
committerBlaž Hrastnik2021-04-07 14:56:56 +0000
commitb1290ee60933434574fe491b08e3f57a69422bff (patch)
tree2b722ee2fd9f90e073b5cd3accdbb876da0b13be /book/theme/css/general.css
parentbc4e54c0c45abbbb5fe9ac3278361d0b4e5774ba (diff)
Update book css styling.
Diffstat (limited to 'book/theme/css/general.css')
-rw-r--r--book/theme/css/general.css21
1 files changed, 21 insertions, 0 deletions
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; }