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.

227 lines
4.0 KiB
CSS

5 months ago
/* @import url('https://pad.xpub.nl/p/sixx-print-css/export/txt') */
:root{
/* --spot-color-1: #53018e; */
--spot-color-1: #000;
--baseline: 4mm;
--margin-left: 10mm;
}
5 months ago
@font-face {
font-family: 'Platypi';
src: url('../fonts/webfonts/Platypi-Regular.woff2');
font-weight: normal;
}
@font-face {
font-family: 'Platypi';
src: url('../fonts/webfonts/Platypi-Italic.woff2');
font-weight: bold;
}
5 months ago
@media print{
@page{
size: 130mm 180mm;
marks: crop; /* can also add cross */
bleed: 3mm;
5 months ago
margin: 25mm;
5 months ago
print-color-adjust: exact;
5 months ago
margin-top: 10mm;
margin-bottom: 15mm;
@bottom-center{
content: string(title, first);
position: relative;
text-align: left;
font-size: 7pt;
}
5 months ago
}
5 months ago
5 months ago
@page:left {
/* bleed: 3mm 0 3mm 3mm; */
@bottom-left {
5 months ago
font-size: 7pt;
5 months ago
top: -3mm;
position: relative;
content: counter(page);
5 months ago
width: 5mm;
5 months ago
}
}
@page:right {
5 months ago
margin-top: 10mm;
margin-bottom: 15mm;
5 months ago
/* bleed: 3mm 3mm 3mm 0; */
5 months ago
@bottom-center{
text-align: right;
}
5 months ago
@bottom-right {
5 months ago
font-size: 7pt;
5 months ago
top: -3mm;
position: relative;
content: counter(page);
5 months ago
width: 5mm;
5 months ago
}
}
5 months ago
}
5 months ago
a{
text-decoration: none;
color: #000;
}
5 months ago
.margin-note{
font-size: 7pt;
line-height: 3mm;
text-align: left;
width: 35mm;
5 months ago
}
5 months ago
5 months ago
.centered-image, .centered-text{
display: flex;
align-items: center;
/* justify-content: center; */
}
.centered-image figure{
margin: 0 0 0 30mm;
width: 90mm;
}
.centered-text > *{
width: 100%;
text-align: center;
}
.code pre{
font-size: 0.8em;
line-height: 1.1;
white-space: pre-wrap;
}
#contenteo{
5 months ago
font-family: 'Platypi-Regular','platypi' ;
5 months ago
line-height: 1.3;
5 months ago
font-size: 9pt;
5 months ago
letter-spacing: -0.1px;
line-height: var(--baseline);
}
figure{
margin: 5mm 0;
}
.full-image, .centered-image, .centered-text{
break-before: right;
height: 186mm;
width: 133mm;
margin: -13mm 0 0 -30mm;
position: relative;
5 months ago
object-fit: cover;
5 months ago
}
.full-image figure{
margin: 0;
}
.full-image figcaption{
position: absolute;
bottom: 15mm;
left: 30mm;
z-index: 10;
padding-right: 20mm;
}
.white-caption + figcaption{
color: #fff;
}
.full-image img{
height: 186mm;
width: 133mm;
object-fit: cover;
}
img{
width: 100%;
5 months ago
break-before: page;
5 months ago
}
h1,h2,h3,h4,h5,h6{
font-size: 1.2em;
line-height: 1;
5 months ago
string-set: title content(text);
5 months ago
}
h1{
font-size: 1.8rem;
break-after: page;
5 months ago
/* margin: 0; */
/* padding: 0; */
5 months ago
}
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;
5 months ago
/* margin: -13mm 0 0 -30mm;
padding: 86mm 10mm 0; */
5 months ago
text-align: center;
}
ol, ul{padding: 0;}
div#licence ol, div#licence ul{
padding-left: 5mm;
}
.page-break{
break-after: page;
}
section{
break-after: page;
}
.section{
break-before: left;
page: section;
}
#section-5 h3, #section-21 h3{
break-before: page;
}
::selection{
background-color: var(--spot-color-1);
color: #ccc;
}
.small-images figure{
margin: 1mm;
}
.small-images figcaption{
margin-top: -2mm;
}
.small-images img{
width: 70mm;
}
.toc{
break-before: right;
}
.toc ul{
list-style: none;
padding: 0;
margin: 0;
}
.toc-title{
break-before: none;
break-after: none;
}
.toc-title a::after{
content: target-counter(attr(href url), page);
float: right;
}
#worry-dolls figcaption{display: none;}
#worry-dolls img{
break-before: page;
display: block;
position: relative;
top: 20mm;
left: 50mm;
width: 10mm;
}
.yt-tarot-images{
margin-top: 29.5mm;
}