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.

101 lines
1.4 KiB
CSS

@page {
size: 90mm 90mm;
margin: 0;
bleed: 2mm;
/* marks: crop; */
}
.post-it {
position: relative;
vertical-align: middle;
display: inline-block;
width: 90mm;
height: 90mm;
margin: 0;
font-family: Arial, Helvetica, sans-serif;
line-height: 1.4;
display: inline-flex;
justify-content: end;
flex-direction: column;
}
footer {
width: 100%;
position: relative;
border-top: 1px solid var(--background);
overflow: visible;
}
img {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100%;
height: 100%;
object-fit: cover;
z-index: 50;
}
.title {
margin: 0.25em 4mm;
font-weight: normal;
text-transform: uppercase;
font-size: 14px;
position: relative;
z-index: 10;
}
.description {
display: inline-block;
margin: 4mm;
font-size: 28px;
line-height: 1.2;
white-space: pre-line;
vertical-align: bottom;
}
figcaption {
background-color: white;
font-size: 18px;
text-align: center;
display: inline-block;
position: absolute;
left: 50%;
bottom: 4mm;
transform: translate(-50%, 0);
z-index: 100;
white-space: nowrap;
}
a {
color: #ddd;
font-size: 12px;
}
.description.long-text {
font-size: 21px;
}
.page-number {
position: absolute;
right: 4mm;
bottom: 0.25em;
font-size: 14px;
}
.progress-bar {
height: calc(100%);
background-color: var(--background);
z-index: 0;
position: absolute;
top: 0;
left: 0;
}
@media screen {
.post-it {
border: 1px solid #ddd;
}
}