on master help sign in
Update book css styling.
commitb1290ee60933434574fe491b08e3f57a69422bff authorBlaž Hrastnik <blaz@mxxn.io> dateWed 7 Apr 2021, 23:56 (6 years ago) parentbc4e54c
2 files changed+22−2
book/theme/css/chrome.css+1−2 book/theme/css/general.css+21
book/theme/css/chrome.css+1−2
@@ -381,7 +381,6 @@ ul#searchresults span.teaser em {
381381.chapter {
382382 list-style: none outside none;
383383 padding-left: 0;
384− line-height: 2.2em;
385384 margin: .25rem 0;
386385}
387386
@@ -426,7 +425,7 @@ ul#searchresults span.teaser em {
426425}
427426
428427.chapter li.chapter-item {
429− padding: .875rem 1.5rem .125rem;
428+ padding: 1rem 1.5rem;
430429}
431430
432431.chapter .section li.chapter-item {
book/theme/css/general.css+21
@@ -93,6 +93,27 @@ h6:target::before {
9393 margin-right: auto;
9494 max-width: var(--content-max-width);
9595}
96+
97+
98+/* 2 1.75 1.5 1.25 1 .875 */
99+
100+.content h1 { font-size: 2em }
101+.content h2 { font-size: 1.75em }
102+.content h3 { font-size: 1.5em }
103+.content h4 { font-size: 1.25em }
104+.content h5 { font-size: 1em }
105+.content h6 { font-size: .875em }
106+
107+.content h1, .content h2, .content h3, .content h4 {
108+ font-weight: 500;
109+ margin-top: 1.275em;
110+ margin-bottom: .875em;
111+}
112+.content p, .content ol, .content ul, .content table, .content blockquote {
113+ margin-top: 0;
114+ margin-bottom: .875em;
115+}
116+
96117.content p { line-height: 1.45em; }
97118.content ol { line-height: 1.45em; }
98119.content ul { line-height: 1.45em; }