1
0
mirror of https://github.com/GenderDysphoria/GenderDysphoria.fyi.git synced 2025-11-25 20:42:40 +00:00

Fix a bunch of css issues with printing the site

This commit is contained in:
Jocelyn Badgley (Twipped)
2021-02-10 14:24:24 -08:00
parent a0c96d4be4
commit ad4ca1c337
6 changed files with 121 additions and 53 deletions

55
scss/_longform.scss Normal file
View File

@@ -0,0 +1,55 @@
body.longform {
#body {
background: unset;
@media screen {
padding: 0 1em;
}
}
header {
display: none;
}
h1, h2 {
clear: both;
page-break-before: always;
}
.header-link { display: none; }
article hr {
page-break-after: always;
opacity: 0;
}
.gutter {
float: right;
width: 40vw;
margin-left: 1em;
zoom: 0.9;
page-break-inside: avoid;
&.print-center {
float: none;
margin: 1em auto;
}
}
&.flex, .flex {
display: flex;
flex-direction: column;
align-items: center;
}
> a > img:not(.card-img-top), > img {
max-width: 100%;
margin-bottom: 5px;
}
}