Add styling for post images

We don't want them to fall back to default behaviour, because that
involves being too large and spilling out of the screen!
This commit is contained in:
Badri Sunderarajan 2024-04-14 16:15:14 +05:30
parent af3287438c
commit 24b276ad5a
Signed by: badrihippo
GPG key ID: 9F594532AD60DE03

View file

@ -111,6 +111,21 @@ h2 + h3 {
padding: 1em;
}
./*
* Styling for images. We centre-align them, make sure
* they fit in the screen, and see that they don't
* spill out of the post container.
*/
.main p:has(img) {
text-align: center;
}
.main img {
max-width: min(40em, 100vw);
max-height: 100vh;
margin: 1em auto;
}
.post-list {
padding: 0;
list-style-type: none;