Custom style for release logos

You can now use a figure shortcode to mark a release logo and get
appropriate styles.
pull/30797/head
Tim Bannister 2021-12-08 00:30:21 +00:00
parent 9e07166713
commit cf88ca5658
1 changed files with 21 additions and 1 deletions

View File

@ -7,7 +7,7 @@ $announcement-size-adjustment: 8px;
}
main {
img {
*:not(figure) > img {
max-width: 100%;
}
@ -698,6 +698,26 @@ body.td-documentation {
}
}
figure {
> figcaption {
padding-top: 1em;
margin-bottom: 3em;
}
}
// Clamp size for release logos
figure.release-logo {
> figcaption {
font-size: 1.8em;
}
> img {
max-width: 100%;
max-height: calc(max(40em,min(80vh,70em)));
height: auto;
width: auto;
}
}
// Match Docsy-imposed max width on text body
@media (min-width: 1200px) {