-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgallery1.css
56 lines (56 loc) · 960 Bytes
/
gallery1.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
/*global*/
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
.title {
text-align: center;
font-size: 4vmin;
color: #313157
}
html,body {
background: #e8d5ea;
padding: 10px;
}
img {
max-width: 100%;
height: auto;
vertical-align: middle;
display: inline-block;
}
.grid-wrapper > div{
display: flex;
justify-content: center;
align-items: center;
}
.grid-wrapper > div > img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 5px;
}
.grid-wrapper {
display: grid;
grid-gap: 10px;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
grid-auto-rows: 200px;
grid-auto-flow: dense;
}
.grid-wrapper .wide {
grid-column: span 2;
}
.grid-wrapper .tall {
grid-row: span 2;
}
.grid-wrapper .big {
grid-column: span 2;
grid-row: span 2;
}
/*animations*/
img {
transition: transform .3s ease;
}
img:hover {
transform:scale(1.1);
}