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.

82 lines
1.0 KiB
CSS

@page {
size: A3;
margin: 5mm;
}
html,
body {
margin: 0;
}
* {
box-sizing: border-box;
}
.container {
font-size: 0;
}
.post-it {
position: relative;
vertical-align: middle;
display: inline-block;
width: 90mm;
height: 90mm;
border: 1px solid #ddd;
margin: 0;
font-family: Arial, Helvetica, sans-serif;
line-height: 1.4;
overflow: hidden;
text-overflow: ellipsis;
}
img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: 50;
}
.title {
position: absolute;
bottom: 0;
/* text-align: center; */
margin: 4mm;
font-weight: normal;
text-transform: uppercase;
font-size: 14px;
}
.description {
display: inline-block;
margin: 4mm;
font-size: 28px;
line-height: 1.2;
white-space: pre-line;
margin-top: -1em;
}
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;
}
a {
color: #ddd;
font-size: 12px;
}
.description.long-text {
font-size: 21px;
}