1
0

Improved gallery adaptive design, optimized and improved image details page

This commit is contained in:
Michael Gordeev
2019-11-13 02:16:55 +03:00
parent f02df7a1fb
commit 2db161f14d
3 changed files with 25 additions and 6 deletions
+13 -2
View File
@@ -1,19 +1,20 @@
.gallery img {
object-fit: cover;
max-height: 200px;
max-height: 300px;
max-width: 100%;
margin: 2px;
transition: .25s;
}
.gallery img:hover {
filter: brightness(125%);
transform: scale(1.25);
transform: scale(1.1);
}
.image-overview-block img {
max-height: 50vh;
max-width: 100%;
float: left;
cursor: zoom-in;
}
.image-overview-block div {
display: inline-block;
@@ -21,4 +22,14 @@
}
.image-overview-block h1 {
margin-bottom: 0px;
}
@media only screen and (max-width: 600px) {
.gallery img {
max-height: none;
}
.gallery img:hover {
filter: brightness(125%);
transform: none;
}
}