You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
188 lines
3.5 KiB
CSS
188 lines
3.5 KiB
CSS
/* @import url('https://pad.xpub.nl/p/sixx-print-css/export/txt'); */
|
|
@import "images.css"; /* Using a string */
|
|
|
|
:root {
|
|
/* --spot-color-1: #53018e; */
|
|
--spot-color-1: #00f;
|
|
--baseline: 4mm;
|
|
--margin-left: 10mm;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Platypi';
|
|
src: url('../fonts/webfonts/Platypi-Regular.woff2');
|
|
font-style: normal;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Platypi';
|
|
src: url('../fonts/webfonts/Platypi-Italic.woff2');
|
|
font-style: italic;
|
|
}
|
|
notes{
|
|
position: note(sidenotes);
|
|
}
|
|
@media print{
|
|
@page{
|
|
size: 130mm 180mm;
|
|
marks: crop; /* can also add cross */
|
|
bleed: 3mm;
|
|
margin: 25mm;
|
|
print-color-adjust: exact;
|
|
margin-top: 10mm;
|
|
margin-bottom: 15mm;
|
|
|
|
@bottom-center {
|
|
content: string(title, first);
|
|
position: relative;
|
|
text-align: left;
|
|
font-size: 7pt;
|
|
}
|
|
}
|
|
|
|
@page:left {
|
|
/* bleed: 3mm 0 3mm 3mm; */
|
|
@bottom-left {
|
|
font-size: 7pt;
|
|
top: -3mm;
|
|
position: relative;
|
|
content: counter(page);
|
|
width: 5mm;
|
|
}
|
|
}
|
|
|
|
@page:right {
|
|
margin-top: 10mm;
|
|
margin-bottom: 15mm;
|
|
/* bleed: 3mm 3mm 3mm 0; */
|
|
@bottom-center {
|
|
text-align: right;
|
|
}
|
|
@bottom-right {
|
|
font-size: 7pt;
|
|
top: -3mm;
|
|
position: relative;
|
|
content: counter(page);
|
|
width: 5mm;
|
|
}
|
|
}
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: #000;
|
|
}
|
|
.margin-note{
|
|
font-size: 7pt;
|
|
line-height: 3mm;
|
|
text-align: left;
|
|
display: inline-block;
|
|
text-align-last: initial;
|
|
box-sizing: border-box;
|
|
float: left;
|
|
margin: 5mm 5mm 5mm -15mm;
|
|
color: var(--spot-color-1);
|
|
}
|
|
body .pagedjs_left_page .margin-note{
|
|
width: 35mm;
|
|
}
|
|
body .pagedjs_right_page .margin-note{
|
|
width: 35mm;
|
|
float:right;
|
|
margin: 5mm -15mm 5mm 5mm;
|
|
}
|
|
body .margin-note{
|
|
/* This is overriding position absolute in the plugin,
|
|
it breaks side notes that are too close to the bottom
|
|
of the page which is sad */
|
|
position: static;
|
|
}
|
|
|
|
.code pre {
|
|
font-size: 0.8em;
|
|
line-height: 1.1;
|
|
white-space: pre-wrap;
|
|
}
|
|
body{
|
|
font-family: 'Platypi-Regular','platypi' ;
|
|
line-height: 1.3;
|
|
font-size: 9pt;
|
|
letter-spacing: -0.1px;
|
|
line-height: var(--baseline);
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
font-size: 1.2em;
|
|
line-height: 1;
|
|
string-set: title content(text);
|
|
}
|
|
|
|
h1 {
|
|
font-size: 1.8rem;
|
|
break-after: page;
|
|
/* margin: 0; */
|
|
/* padding: 0; */
|
|
}
|
|
|
|
h1#colophon {
|
|
break-after: unset;
|
|
margin-bottom: 25mm;
|
|
}
|
|
|
|
h6 {
|
|
font-size: 3rem;
|
|
break-before: right;
|
|
/* background-color: var(--spot-color-1); */
|
|
/* color: #fff; */
|
|
height: 176mm;
|
|
width: 133mm;
|
|
/* margin: -13mm 0 0 -30mm;
|
|
padding: 86mm 10mm 0; */
|
|
text-align: center;
|
|
}
|
|
|
|
ol, ul {
|
|
padding: 0;
|
|
}
|
|
|
|
.page-break {
|
|
break-after: page;
|
|
}
|
|
|
|
section {
|
|
break-after: page;
|
|
}
|
|
|
|
.section {
|
|
break-before: left;
|
|
page: section;
|
|
}
|
|
|
|
::selection {
|
|
background-color: var(--spot-color-1);
|
|
color: #ccc;
|
|
}
|
|
|
|
.toc {
|
|
break-before: right;
|
|
}
|
|
|
|
.toc ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
.toc-title{
|
|
font-size: 24pt;
|
|
font-weight: medium;
|
|
line-height: 8mm;
|
|
display: inline;
|
|
}
|
|
|
|
.toc-title a::after {
|
|
content: target-counter(attr(href url), page);
|
|
font-size: 9pt;
|
|
color: var(--spot-color-1);
|
|
padding: 0 1rem;
|
|
}
|