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.

133 lines
1.9 KiB
CSS

@page {
size: 90mm 90mm;
margin: 0;
bleed: 2mm;
marks: crop;
}
:root {
--color: var(--purple);
--background: var(--purple-bg);
--orange: #FF5416;
--orange-bg: #FFB58D;
--purple: #7D50FF;
--purple-bg: #CEC6FF;
}
html,
body {
margin: 0;
color: var(--color);
}
* {
box-sizing: border-box;
}
.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;
/* overflow: hidden;
text-overflow: ellipsis; */
display: inline-flex;
justify-content: end;
flex-direction: column;
}
footer {
width: 100%;
position: relative;
/* position: absolute; */
/* bottom: 0; */
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;
}
/* img::after {
content: " " url("/static/contents/katamari/frog.png");
} */
.title {
/* position: absolute; */
/* bottom: 0; */
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;
/* margin-top: calc(4mm - 1em); */
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;
}
}