Browse Source

backing up the print.css

master
manetta 3 years ago
parent
commit
faba69f372
  1. 78
      command-line/css/print.css

78
command-line/css/print.css

@ -1,8 +1,10 @@
:root{
--font-size: 9pt;
--line-height: 14pt;
--small-font-size: 7.5pt;
--small-line-height: 1.55;
--font-size: 12px;
--line-height: 18px;
--small-font-size: 10px;
--small-line-height: 15px;
--h2-font-size: 21px;
--h2-line-height: 27px;
--first-indent: 7mm;
--second-indent: 20mm;
}
@ -67,13 +69,13 @@ div.no-indent p{
div.contribution.bugged-report div.no-indent p{
width: 100%;
/*width: calc(100% - var(--first-indent));*/
margin-bottom: 1em;
margin-bottom: var(--line-height);
}
div.contribution.bugged-report div.right-align{
text-align: right;
/*margin-left: var(--first-indent);*/
margin-left: 0;
margin-bottom: 1em;
margin-bottom: var(--line-height);
}
@ -96,8 +98,10 @@ html, body{
/*size: 164mm 237mm;*/ /* Size of the physical printed DB06 book */
size: 152.4mm 228.6mm;
bleed: 3mm; /* required bleed by lightningsource */
marks: crop cross;
/*bleed: 3mm;*/ /* required bleed by lightningsource */
bleed: 12px; /* about 3mm in pixels */
marks: crop;
@bottom-center{
content: counter(page);
@ -173,6 +177,8 @@ html, body{
}
@page contribution:first{
/* exception for running-header on the first page of a contribution */
margin-top: 128px;
@top-center{
content: none;
}
@ -315,10 +321,10 @@ div.backcover{
div.backcover{
}
div.backcover h2{
margin-left: 0;
margin-left: 0;
}
div.backcover p{
margin-bottom: 1em;
margin-bottom: var(--line-height);
}
div.series{
@ -347,19 +353,12 @@ div.toc *{
font-family: "bitter_semi";
line-height: 22pt;
letter-spacing: 0.025em;
margin: -1em 0 1em var(--second-indent) !important;
margin: -26px 0 33px var(--second-indent) !important;
}
div.toc a::before{
content: target-counter(attr(href url), page);
float: left;
font-weight: normal;
/* right aligned */
/* margin-left: -22mm;
text-align: right;
width: 15mm;*/
/* right aligned */
margin-left: -13.5mm;
}
div.toc p{
@ -367,7 +366,7 @@ div.toc *{
margin-left: 7mm;
}
div.toc ul{
margin: 1em 0 0 10mm;
margin: var(--line-height) 0 0 10mm;
}
div.toc ul li{
margin-bottom: 0.5em;
@ -431,7 +430,6 @@ div.two-columns{
columns: 2 auto;
column-fill: auto;
column-gap: 14mm;
/*margin-bottom: 1em;*/
}
div.two-columns img,
div.two-columns div.thumb{
@ -454,8 +452,8 @@ span.star{
h1{
/* section titles */
font-size: 34pt;
line-height: 1.15;
font-size: 42px;
line-height: 48px;
margin: 0;
word-break: normal;
hyphens: manual !important;
@ -466,12 +464,13 @@ h1{
}
h2{
/* Contribution titles */
position: absolute;
string-set: contributiontitle content(text) !important;
font-family: "bitter_semi";
font-size: 16pt;
line-height: 22pt;
font-size: var(--h2-font-size);
line-height: var(--h2-line-height);
letter-spacing: 0.025em;
margin: -1em 0 1em var(--second-indent);
margin: -97px 0 var(--h2-font-size) var(--second-indent);
hyphens: none;
}
/* author names */
@ -493,29 +492,30 @@ h2{
}
h3{
/* Sub-headers + Notes/References sections + TOC headers*/
font-size: 100%;
font-size: var(--font-size);
line-height: var(--line-height);
page-break-after: avoid;
margin: 1em 0 0 var(--second-indent);
margin: var(--line-height) 0 0 var(--second-indent);
letter-spacing: 0.05em;
hyphens: none;
}
div.contribution.information-for-users h3{
margin-bottom: 1em !important;
margin-bottom: var(--line-height) !important;
}
div.contribution.bugged-report h3{
margin-bottom: 1em !important;
margin-bottom: var(--line-height) !important;
}
h4{
/* Sub-sub-headers */
font-size: 100%;
page-break-after: avoid;
margin: 1em 0 0 var(--second-indent);
margin: var(--line-height) 0 0 var(--second-indent);
hyphens: none;
font-style: italic;
font-weight: normal;
}
h5, h6{
margin: 0 0 1em 0;
margin: 0 0 var(--line-height) 0;
page-break-after: avoid;
hyphens: none;
}
@ -556,7 +556,7 @@ p{
div.previously_published p,
div.biographies p,
div.series p{
margin-bottom: 1em;
margin-bottom: var(--line-height);
}
div.contribution.interview-phil h3 + p {
text-indent: var(--first-indent) !important;
@ -568,7 +568,7 @@ p{
ul > li {
list-style: none;
text-indent: 0;
margin-bottom: 1em;
margin-bottom: var(--line-height);
}
div.contribution ul > li::before{
content: "- ";
@ -639,7 +639,7 @@ img{
width: 105mm; /* full text width */
height: auto;
max-height: 200mm;
margin: 1em 0 1em 0;
margin: var(--line-height) 0;
/* PRINT PDF - GRAYSCALE */
/*filter: grayscale(100%);*/
@ -648,7 +648,7 @@ img{
/* sometimes wrapper of img + image caption */
font-size: var(--small-font-size);
line-height: var(--small-line-height);
margin: 1em 0 1em var(--first-indent);
margin: var(--line-height) 0 var(--line-height) var(--first-indent);
page-break-inside: avoid;
break-inside: avoid;
hyphens: none;
@ -744,9 +744,9 @@ pre{
line-height: var(--line-height);
hyphens: none;
white-space: pre-line;
margin: 1em 0 1em var(--second-indent);
margin: calc(var(--line-height) - 2px) 0 calc(var(--line-height) - 2px) var(--second-indent);
border: 1px solid rgba(0,0,0,0.2);
padding: 1em;
padding: calc(var(--line-height) / 2) var(--line-height);
page-break-inside: avoid;
}
div.quote > pre{
@ -762,7 +762,7 @@ blockquote{
font-style: italic;
}
blockquote.pull{
margin: 1em 0 1em var(--second-indent) !important;
margin: var(--line-height) 0 var(--line-height) var(--second-indent) !important;
}
table{
width: 125mm !important;
@ -773,7 +773,7 @@ table{
page-break-after: always;
}
table p{
margin-bottom: 1em !important;
margin-bottom: var(--line-height) !important;
}
td {
vertical-align: top;

Loading…
Cancel
Save