SpectreOfReflections' own print.css following its changes..
This commit is contained in:
parent
5a361dcc16
commit
3c20212a42
1 changed files with 253 additions and 0 deletions
253
customizations/SpectreOfReflections/static/css/print.css
Normal file
253
customizations/SpectreOfReflections/static/css/print.css
Normal file
|
@ -0,0 +1,253 @@
|
|||
@page {
|
||||
size: 210mm 297mm;
|
||||
margin-bottom: 20mm;
|
||||
padding-bottom: 5mm;
|
||||
margin-top: 15mm;
|
||||
}
|
||||
|
||||
@page:left {
|
||||
margin-right: 30mm;
|
||||
margin-left: 40mm;
|
||||
@bottom-left-corner {
|
||||
content: counter(page);
|
||||
font-size: 1rem;
|
||||
vertical-align: text-top;
|
||||
}
|
||||
|
||||
@bottom {
|
||||
content: element(runningTitle);
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
|
||||
@page:right {
|
||||
margin-left: 30mm;
|
||||
margin-right: 40mm;
|
||||
@bottom-right-corner {
|
||||
content: counter(page);
|
||||
font-size: 1rem;
|
||||
vertical-align: text-top;
|
||||
}
|
||||
|
||||
@bottom {
|
||||
content: element(runningAuthors);
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
|
||||
@page crustpage :first {
|
||||
@bottom-right-corner {
|
||||
content: none;
|
||||
}
|
||||
@bottom {
|
||||
content: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media print {
|
||||
html {
|
||||
font-size: 1em;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
font-size: 1rem;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.sup,
|
||||
.hassup {
|
||||
color: black;
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.coretitle {
|
||||
margin-top: 3rem;
|
||||
margin-bottom: 2rem;
|
||||
font-size: 2.2rem;
|
||||
}
|
||||
|
||||
.leftcolumn {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.has,
|
||||
.afterhas {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.mantle,
|
||||
.crust {
|
||||
margin-bottom: 0.2em;
|
||||
}
|
||||
|
||||
.content {
|
||||
padding: 0px;
|
||||
margin: 0 auto;
|
||||
margin-top: 4rem;
|
||||
}
|
||||
|
||||
.hpar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mantletitle {
|
||||
font-size: 1.7rem;
|
||||
}
|
||||
|
||||
.sessiongrid {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#bibliography {
|
||||
break-before: page;
|
||||
}
|
||||
|
||||
.footnotes ol {
|
||||
margin-top: 3rem;
|
||||
padding-left: 0.9rem;
|
||||
}
|
||||
|
||||
.footnotes hr {
|
||||
border: none;
|
||||
border-top: 0px;
|
||||
text-align: left;
|
||||
margin-top: 2rem;
|
||||
margin-bottom: -2rem;
|
||||
}
|
||||
|
||||
.footnotes hr::after {
|
||||
content: "Endnotes";
|
||||
font-size: 1.2rem;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.runningTitle {
|
||||
position: running(runningTitle);
|
||||
}
|
||||
|
||||
.runningAuthors {
|
||||
position: running(runningAuthors);
|
||||
}
|
||||
|
||||
.hasauthors .afterhas {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.crustpage {
|
||||
break-before: page;
|
||||
page: crustpage;
|
||||
}
|
||||
|
||||
.hasin {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.abstract {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
max-width: inherit;
|
||||
}
|
||||
|
||||
.keywords {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
max-width: inherit;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
/*
|
||||
h2:before,
|
||||
h3:before,
|
||||
h4:before,
|
||||
h5:before {
|
||||
content: none;
|
||||
}
|
||||
*/
|
||||
h2, h3, h4, h5, hr {
|
||||
break-after: avoid;
|
||||
}
|
||||
|
||||
.glosscontainer,
|
||||
table,
|
||||
table + p,
|
||||
tr,
|
||||
blockquote,
|
||||
li {
|
||||
break-inside: avoid;
|
||||
}
|
||||
|
||||
.authorpage {
|
||||
break-before: page;
|
||||
}
|
||||
|
||||
img {
|
||||
display: block;
|
||||
max-height: 150mm;
|
||||
width: auto;
|
||||
break-after: avoid;
|
||||
margin-bottom: 0.5rem;
|
||||
margin-left: 1rem;
|
||||
}
|
||||
|
||||
.crustoc {
|
||||
position: relative;
|
||||
bottom: 0
|
||||
}
|
||||
|
||||
a.toc::before {
|
||||
direction: rtl;
|
||||
content: " . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ";
|
||||
line-height: 0;
|
||||
height: 1px;
|
||||
position: absolute;
|
||||
bottom: 10px;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
a.toc {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto;
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
a.toc span {
|
||||
}
|
||||
|
||||
a.toc .back {
|
||||
background: white;
|
||||
}
|
||||
|
||||
a.toc::after {
|
||||
text-align: right;
|
||||
float: right;
|
||||
content: target-counter(attr(href url), page, decimal-leading-zero);
|
||||
background: white;
|
||||
padding-left: 0.1rem;
|
||||
}
|
||||
|
||||
ol[data-split-from] {
|
||||
padding-left: 0.5rem;
|
||||
}
|
||||
|
||||
.longesttitle {
|
||||
visibility: hidden;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.backlinks {
|
||||
border-left: 1px black solid;
|
||||
padding-top: 0.1rem;
|
||||
padding-bottom: 0.1rem;
|
||||
padding-left: 0.5rem;
|
||||
background-color: #00000009;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue