on master help sign in
Update book css styling.
b1290eeBlaž Hrastnik
book/theme/css/chrome.css+1−2
@@ -381,7 +381,6 @@ ul#searchresults span.teaser em {
381.chapter {
381.chapter {
382 list-style: none outside none;
382 list-style: none outside none;
383 padding-left: 0;
383 padding-left: 0;
384− line-height: 2.2em;
385 margin: .25rem 0;
384 margin: .25rem 0;
386}
385}
387
386
@@ -426,7 +425,7 @@ ul#searchresults span.teaser em {
426}
425}
427
426
428.chapter li.chapter-item {
427.chapter li.chapter-item {
429− padding: .875rem 1.5rem .125rem;
428+ padding: 1rem 1.5rem;
430}
429}
431
430
432.chapter .section li.chapter-item {
431.chapter .section li.chapter-item {
book/theme/css/general.css+21
@@ -93,6 +93,27 @@ h6:target::before {
93 margin-right: auto;
93 margin-right: auto;
94 max-width: var(--content-max-width);
94 max-width: var(--content-max-width);
95}
95}
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+
96.content p { line-height: 1.45em; }
117.content p { line-height: 1.45em; }
97.content ol { line-height: 1.45em; }
118.content ol { line-height: 1.45em; }
98.content ul { line-height: 1.45em; }
119.content ul { line-height: 1.45em; }