-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgallery.css
64 lines (62 loc) · 1.39 KB
/
gallery.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
.app__gallery {
padding: 3rem 1rem;
min-height: 100vh;
background: #000000; /* fallback for old browsers */
background: -webkit-linear-gradient(
to right,
#434343,
#000000
); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(
to right,
#434343,
#000000
); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}
.gallery__container {
display: flex;
justify-content: center;
align-items: center;
margin: 4vmin 4vmin 10vmin 4vmin;
overflow: hidden;
transform: skew(3deg);
}
.gallery__container .gallery__image-card {
flex: 1;
transition: all 1s ease-in-out;
height: 70vmin;
position: relative;
}
.gallery__container .gallery__image-card:hover {
flex-grow: 8;
}
.gallery__container .gallery__image-card:hover img {
/* filter: grayscale(0); */
}
.gallery__container .gallery__image-card img {
width: 100%;
height: 100%;
object-fit: cover;
transition: all 1s ease-in-out;
/* filter: grayscale(100%); */
}
.gallery__container .gallery__image-card {
margin-right: 0.5em;
margin-left: 0.5em;
}
@media (max-width: 960px) {
.gallery__container .gallery__image-card {
height: 62vmin;
}
.gallery__container .gallery__image-card:hover {
flex-grow: 10;
}
}
@media (max-width: 540px) {
/* .gallery__container .gallery__image-card img {
/* filter: grayscale(0);
} */
.app__gallery {
padding: 3rem 0;
}
}