about summary refs log tree commit diff
path: root/style.css
blob: 9dc80d8da5ec5685bea1e7a4fad2420cadb67d37 (plain)
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

body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  font-family: sans-serif;
}

footer {
  text-align: center;
  padding: 10px;
}

.tiles {
  padding: 6vh 16vw;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  position: relative;
}
.tile {
  margin: 15px;
  cursor: pointer;
  overflow: hidden;
  min-width: 120px;
  min-height: 120px;
  width: 18vw;
  height: 18vw;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.tile img:hover {
  transform: scale(1.1);
}

@media only screen and (max-width: 442px) {
  .tiles {
    padding: 6vh 4vw;
  }

  .tile {
    margin: 5px;
    width: 100%;
    height: 100%;
  }
}