-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
65 lines (60 loc) · 1.07 KB
/
style.css
File metadata and controls
65 lines (60 loc) · 1.07 KB
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
65
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
background-color: #303032;
}
main {
display: grid;
grid-template-columns: 1fr repeat(12, minmax(auto, 60px)) 1fr;
grid-gap: 40px;
padding: 40px 0;
}
.cards {
grid-column: 2/span 12;
display: grid;
grid-template-columns: repeat(12, minmax(auto, 60px));
grid-gap: 40px;
}
.card {
grid-column-end: span 4;
cursor: pointer;
transition: all 0.3 ease;
}
.card:hover {
transform: translateY(-8px);
}
.card__image-container {
width: 100%;
}
.card__image-container img {
width: 100%;
}
@media screen and (max-width: 1000px) {
.card {
grid-column-end: span 6;
}
}
@media screen and (max-width: 700px) {
main {
grid-gap: 20px;
}
main .card {
grid-column-end: span 12;
}
}
@media screen and (max-width: 500px) {
main {
grid-gap: 10px;
grid-template-columns: 10px repeat(6, 1fr) 10px;
}
main .cards {
grid-column: 2/span 6;
grid-template-columns: repeat(6, 1fr);
}
main .cards .card {
grid-column-end: span 6;
}
}/*# sourceMappingURL=style.css.map */