You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

286 lines
7.5 KiB

@page{
size: A5; /* only works in Chrome, Edge and Opera; see https://developer.mozilla.org/en-US/docs/Web/CSS/@page */
orientation: portrait; /* only works in Chrome, Edge and Opera; see https://developer.mozilla.org/en-US/docs/Web/CSS/@page */
margin: 10mm 15mm;
}
:root{
--font-size: 10pt;
--line-height: 1.25;
--small-font-size: 8pt;
--small-line-height: 1.15;
--header-font-size: 50px;
--datetime-font-size: 8pt;
--second-color: black;
--third-color: #073d07;
}
@font-face{
font-family: "gudea";
src: url(https://vvvvvvaria.org/~mb/fonts/gudea/Gudea-Regular.otf);
font-weight: normal;
font-style: normal;
}
@font-face{
font-family: "gudea";
src: url(https://vvvvvvaria.org/~mb/fonts/gudea/Gudea-Bold.otf);
font-weight: bold;
font-style: normal;
}
@font-face{
font-family: "gudea";
src: url(https://vvvvvvaria.org/~mb/fonts/gudea/Gudea-Italic.otf);
font-weight: normal;
font-style: italic;
}
body {
width: 118mm;
background: unset;
font-family: "gudea", sans-serif !important;
font-size: var(--font-size);
line-height: var(--line-height);
color: color: black;
}
/* --- front page --- */
/* hashtag title */
div.page-header {
max-width: 118mm;
overflow: hidden;
overflow-wrap: anywhere;
background: unset;
border: unset;
margin: 0;
padding: 0;
break-after: page;
}
div.page-header h1 {
font-size: var(--header-font-size) !important;
font-weight: bold;
line-height: 0.75;
letter-spacing: -0.04em;
text-align: center;
transform: rotate(-2deg);
color: green;
margin: 2.5mm 0 0;
overflow: visible;
}
div.page-header p {
visibility: hidden;
}
/* big # on the cover */
div.page-header::after{
content: "#";
display: block;
top: 0;
left: 0;
width: 100%;
font-family: monospace;
font-size: 450pt;
line-height: 0.8;
font-weight: bolder;
margin: 0 auto 60mm -2mm;
color: #00cf38;
page-break-after: always;
}
/* social.lumbung.space title */
div.public-layout nav.header {
background: unset;
border: unset;
width: unset;
height: unset;
margin: unset;
background-color: transparent !important;
}
div.public-layout nav.header > div{
display: block !important;
flex: unset !important;
}
div.public-layout nav.header a.brand{
visibility: hidden;
position: absolute;
left: 0;
width: 100% !important;
text-align: center;
top: 170mm;
padding: 0;
margin: 0;
}
div.public-layout nav.header a.brand::before {
content: "hashtag harvesting at social.lumbung.space";
display: block;
width: 108mm !important; /* 148mm - 30mm page margin - 10mm padding*/
font-size: 12pt !important;
font-weight: bold;
font-style: normal;
text-align: center;
color: var(--third-color);
visibility: visible;
padding: 5mm 5mm 15mm;
margin: 0 auto;
}
div.public-layout nav.header a.nav-link.nav-button.webapp-btn {
display: none;
}
/* --- posts --- */
/* grid of posts */
div.statuses-grid {
width: 100% !important;
height: unset;
min-height: unset;
}
/* single post */
div.statuses-grid__item {
position: relative !important;
display: block;
width: 90% !important;
float: left;
top: unset !important;
left: unset !important;
max-width: unset !important;
margin: 0 auto;
page-break-inside: avoid;
}
div.statuses-grid__item > div {
height: unset !important;
box-sizing: unset !important;
}
div.detailed-status {
background: unset !important;
padding: 0 !important;
margin: 0 !important;
}
/* author details */
span.display-name {
color: unset;
}
a.detailed-status__display-name {
color: var(--second-color) !important;
transform: rotate(-3deg);
padding: 2mm 4mm 4mm;
display: inline-block;
width: auto;
margin: 2mm 0 6mm 10mm;
border-top: 1px solid var(--second-color);
border-left: 1px solid var(--second-color);
border-right: 1px solid var(--second-color);
page-break-after: avoid;
}
strong.display-name__html {
font-size: 10pt;
color: var(--second-color);
}
span.display-name__account {
font-size: var(--small-font-size);
line-height: 1;
}
/* post metadata: timestamp (moved to the top) */
div.detailed-status__meta a.detailed-status__datetime{
position: absolute;
top: 16.5mm;
left: 30mm;
transform: rotate(-3deg);
font-size: var(--small-font-size);
font-weight: normal;
color: var(--second-color) !important;
}
/* rotate the even posts counter-clockwise, */
/* to make the rhythm a bit more playful */
div.statuses-grid__item:nth-of-type(odd) a.detailed-status__display-name {
transform: rotate(3deg);
}
div.statuses-grid__item:nth-of-type(odd) div.detailed-status__meta a.detailed-status__datetime {
transform: rotate(3deg);
left: 29.5mm;
}
/* post metadata: hide the boosts and favorites */
div.detailed-status__meta .fa, div.statuses-grid div.detailed-status__meta .detailed-status__application, div.statuses-grid div.detailed-status__meta .detailed-status__link {
display: none;
}
div.detailed-status__meta {
color: transparent !important;
}
div.detailed-status__meta a.detailed-status__datetime {
color: var(--second-color) !important;
}
/* hashtags */
a.hashtag {
color: var(--third-color) !important;
margin: 0;
text-decoration: none;
}
div.status__content a.mention span {
text-decoration: none;
}
/* media content */
div.media-gallery {
height: auto !important;
width: auto;
max-width: unset;
max-height: unset;
object-position: unset !important;
}
button.icon-button.overlayed {
display: none;
}
a.media-gallery__item-thumbnail img {
height: auto;
max-height: 100mm;
width: auto;
max-width: 80%;
margin: 0 auto;
display: block;
}
/* unwrap URLs in posts */
div.status__content__text a.status-link.unhandled-link span.ellipsis{
display: none;
}
div.status__content__text a.status-link.unhandled-link::after{
content: attr(href);
margin: 0.5em 0;
}
/* status cards (previews of linked content) */
div.status__content {
font-size: inherit !important;
color: black;
line-height: inherit !important;
}
.status-card {
font-size: smaller !important;
border: 0;
}
.status-card__title,
.status-card__description,
.status-card__host {
color: black !important;
font-size: var(--small-font-size);
}
.status-card__host {
text-decoration: underline;
}
/* --- misc --- */
/* page footer with general Mastodon links */
div.footer {
display: none;
}