Fix images too big for portrait
This commit is contained in:
@@ -54,6 +54,18 @@ body {
|
||||
animation: fadeInScale 1s ease forwards;
|
||||
}
|
||||
|
||||
.content img {
|
||||
max-width: 90vw;
|
||||
max-height: 90vh;
|
||||
object-fit: contain;
|
||||
height: auto;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.gallery img:hover {
|
||||
transform: scale(1.2);
|
||||
}
|
||||
|
||||
.gallery img[src],
|
||||
.content img[src] {
|
||||
opacity: 1;
|
||||
|
||||
Reference in New Issue
Block a user