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