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:
parent
af3287438c
commit
24b276ad5a
1 changed files with 15 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue