-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
44 lines (38 loc) · 849 Bytes
/
styles.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
:root {
--timing-function: cubic-bezier(0.4, 0, 0.2, 1);
--animation-duration: 250ms;
}
.gallery {
display: grid;
max-width: 1140px;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
grid-auto-rows: 240px;
grid-gap: 12px;
justify-content: center;
padding: 0;
list-style: none;
margin-left: auto;
margin-right: auto;
}
.gallery__item {
position: relative;
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.2),
0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 2px 1px -1px rgba(0, 0, 0, 0.12);
}
.gallery__image:hover {
transform: scale(1.03);
}
.gallery__image {
height: 100%;
width: 100%;
object-fit: cover;
transition: transform var(--animation-duration) var(--timing-function);
}
.gallery__link {
display: block;
text-decoration: none;
height: 100%;
}
.gallery__link:hover {
cursor: zoom-in;
}