From 70290a14b1a9f44af9322b8d1b92c9be958cda47 Mon Sep 17 00:00:00 2001 From: manetta Date: Wed, 22 Sep 2021 17:35:29 +0200 Subject: [PATCH] back up of the print css --- command-line/css/print.css | 93 ++++++++++++++++++++++++++++++++------ 1 file changed, 80 insertions(+), 13 deletions(-) diff --git a/command-line/css/print.css b/command-line/css/print.css index 6526052..38a5656 100644 --- a/command-line/css/print.css +++ b/command-line/css/print.css @@ -40,11 +40,12 @@ } html, body{ - hyphens: auto; font-family: "bitter"; font-size: var(--font-size); line-height: var(--line-height); letter-spacing: 0.01em; + hyphens: auto; + /*-webkit-hyphenate-limit-chars: 8 2 4;*/ /* word length, minimum number of characters before and after the hyphen -- does not work in chrome */ /*orphans: 2;*/ /*widows: 2;*/ } @@ -85,7 +86,7 @@ html, body{ } } @page section{ - background-color: lightyellow; + background-color: lightgray; @top-center{ content: none; @@ -135,6 +136,17 @@ html, body{ content: none; } } +/* for fullpage image contributions */ +@page fullpage{ + margin: 0 !important; + + @top-center{ + content: none; + } + @bottom-center{ + content: none; + } +} /* sections */ @@ -177,7 +189,7 @@ div.appendix{ page-break-before: always; } div.backcover{ - page-break-before: always; + page-break-before: left; page: backcover; } @@ -224,17 +236,19 @@ div.series{ line-height: var(--small-line-height); } div.series.about{ - width: 55%; + width: 50%; } div.series.colophon{ columns: 2 auto; column-gap: 5mm; column-fill: auto; + height: 207mm; } /* Table of Contents */ div.toc *{ font-size: var(--font-size); + hyphens: none; } div.toc p:first-of-type{ font-size: 17pt !important; @@ -246,19 +260,40 @@ div.toc *{ div.toc a::before{ content: target-counter(attr(href url), page); float: left; - margin-left: -3em; + margin-left: -22mm; + font-weight: normal; + text-align: right; + width: 15mm; } div.toc p{ margin-top: 1em; } div.toc ul{ - margin: 1em 0 0 3em; - /*page-break-inside: avoid;*/ - /*page-break-before: avoid;*/ + margin: 1em 0 0 4em; } div.toc ul li{ margin-bottom: 0.5em; } + + /* forcing "Signs of clandestine" in toc to next page */ + div.toc ul:nth-of-type(5) { + page-break-before: avoid; + } + + /* disabling wiki-only entries */ + + div.toc ul:nth-of-type(2) li:last-of-type { + /* The Extended Trans*feminist Rendering Program */ + display: none; + } + div.toc ul:nth-of-type(3) li:last-of-type { + /* Comprehensive Features */ + display: none; + } + div.toc ul:nth-of-type(4) li:nth-of-type(3) { + /* somatopologies: a guided tour II */ + display: none; + } div.introduction, div.contribution{ @@ -293,10 +328,22 @@ ul /* This is tricky as it has no class, so these styles are applied to ALL ul e text-indent: 0; } div.item_index{ + hyphens: none; } - div.item_index a::after{ + div.item_index ul{ + column-gap: 10mm; + } + div.item_index li{ + text-indent: -6mm; + } + div.item_index li a::after{ + /* This counter stops the pagination of the last pages of the book..... */ content: target-counter(attr(href), page); - float: right; + font-weight: bold; + } + div.item_index li span.item_nr{ + width: 10mm; + text-align: right; } /* general elements*/ @@ -309,7 +356,7 @@ h1{ word-break: normal; hyphens: none; } - /* h1's are preceded by a */ + /* h1's are followed by a */ .running-header{ position: running(sectiontitle); } @@ -365,10 +412,14 @@ p{ h3 + p, div.series p, div.cover p, + div.biographies p, + div.previously_published p, div.backcover p, blockquote p{ text-indent: unset !important; } + div.previously_published p, + div.biographies p, div.series p{ margin-bottom: 1em; } @@ -380,7 +431,7 @@ img{ max-height: 200mm; margin: 1em 0 1em 0; } - .thumb{ + div.thumb{ /* sometimes wrapper of img + image caption */ font-size: var(--small-font-size); line-height: var(--small-line-height); @@ -388,9 +439,24 @@ img{ page-break-inside: avoid; hyphens: none; } - .thumb img{ + div.thumb img{ margin-left: -7mm !important; /* same as first-indent but inverted */ } + div.fullpage{ + page: fullpage !important; + } + div.fullpage div.thumb img{ + width: 164mm; + height: 237mm; + max-height: 237mm; + margin: -3mm 0 0mm -7mm !important; + } + /* exception for the "circluding" contribution */ + div.fullpage.circluding div.thumb img{ + height: auto !important; + width: 155mm !important; + margin: 3mm 0 5mm -2mm !important; + } pre{ font-size: 8pt; line-height: 1.8; @@ -440,3 +506,4 @@ a.external{ } +