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

/* @import url('https://pad.xpub.nl/p/sixx-print-css/export/txt'); */
6 months ago
@import "images.css"; /* Using a string */
6 months ago
:root {
6 months ago
/* --spot-color-1: #53018e; */
6 months ago
--spot-color-1: #00f;
6 months ago
--baseline: 4mm;
--margin-left: 10mm;
}
6 months ago
@font-face {
font-family: 'Platypi';
src: url('../fonts/webfonts/Platypi-Regular.woff2');
6 months ago
font-style: normal;
6 months ago
}
6 months ago
@font-face {
font-family: 'Platypi';
src: url('../fonts/webfonts/Platypi-Italic.woff2');
6 months ago
font-style: italic;
6 months ago
}
notes{
position: note(sidenotes);
}
6 months ago
@media print{
@page{
size: 130mm 180mm;
marks: crop; /* can also add cross */
bleed: 3mm;
6 months ago
margin: 25mm;
6 months ago
print-color-adjust: exact;
6 months ago
margin-top: 10mm;
margin-bottom: 15mm;
@bottom-center {
6 months ago
content: string(title, first);
position: relative;
text-align: left;
font-size: 7pt;
6 months ago
}
6 months ago
}
6 months ago
@page:left {
/* bleed: 3mm 0 3mm 3mm; */
@bottom-left {
6 months ago
font-size: 7pt;
6 months ago
top: -3mm;
position: relative;
content: counter(page);
6 months ago
width: 5mm;
6 months ago
}
}
6 months ago
@page:right {
6 months ago
margin-top: 10mm;
margin-bottom: 15mm;
6 months ago
/* bleed: 3mm 3mm 3mm 0; */
@bottom-center {
text-align: right;
6 months ago
}
6 months ago
@bottom-right {
6 months ago
font-size: 7pt;
6 months ago
top: -3mm;
position: relative;
content: counter(page);
6 months ago
width: 5mm;
6 months ago
}
}
6 months ago
}
a {
6 months ago
text-decoration: none;
color: #000;
}
6 months ago
.margin-note{
font-size: 7pt;
line-height: 3mm;
text-align: left;
6 months ago
display: inline-block;
6 months ago
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;
6 months ago
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 */
6 months ago
position: static;
6 months ago
}
.code pre {
6 months ago
font-size: 0.8em;
line-height: 1.1;
white-space: pre-wrap;
}
6 months ago
body{
6 months ago
font-family: 'Platypi-Regular','platypi' ;
6 months ago
line-height: 1.3;
6 months ago
font-size: 9pt;
6 months ago
letter-spacing: -0.1px;
line-height: var(--baseline);
}
h1, h2, h3, h4, h5, h6 {
6 months ago
font-size: 1.2em;
line-height: 1;
6 months ago
string-set: title content(text);
6 months ago
}
h1 {
6 months ago
font-size: 1.8rem;
break-after: page;
6 months ago
/* margin: 0; */
/* padding: 0; */
6 months ago
}
h1#colophon {
6 months ago
break-after: unset;
margin-bottom: 25mm;
}
h6 {
6 months ago
font-size: 3rem;
break-before: right;
/* background-color: var(--spot-color-1); */
/* color: #fff; */
height: 176mm;
width: 133mm;
6 months ago
/* margin: -13mm 0 0 -30mm;
padding: 86mm 10mm 0; */
6 months ago
text-align: center;
}
ol, ul {
padding: 0;
}
.page-break {
6 months ago
break-after: page;
}
section {
6 months ago
break-after: page;
}
.section {
6 months ago
break-before: left;
page: section;
}
::selection {
6 months ago
background-color: var(--spot-color-1);
color: #ccc;
}
.toc {
6 months ago
break-before: right;
}
.toc ul {
6 months ago
list-style: none;
padding: 0;
margin: 0;
}
.toc-title{
6 months ago
font-size: 24pt;
font-weight: medium;
line-height: 8mm;
display: inline;
6 months ago
}
.toc-title a::after {
6 months ago
content: target-counter(attr(href url), page);
6 months ago
font-size: 9pt;
color: var(--spot-color-1);
padding: 0 1rem;
}