Move image styles to stylesheet

This commit is contained in:
Hamza Nasher-Alneam 2024-06-19 09:08:14 -04:00 committed by GitHub
parent 80f7d9188b
commit 1289c6b838
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,12 +38,14 @@ body {
} }
.article img { .article img {
max-height: 400px;
max-width: 700px; max-width: 700px;
} }
@media (max-width: 700px) { @media (max-width: 700px) {
.article img { .article img {
max-width: 100vw; /* For screens less than 700px wide */ max-height: none;
max-width: calc(100vw - 4em);
} }
} }