-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
79 lines (69 loc) · 1.37 KB
/
style.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
*,
::before,
::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: white;
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
body>header {
width: 100%;
height: 70px;
margin-bottom: 15px;
background-color: black;
color: white;
display: flex;
justify-content: center;
align-items: center;
}
.container {
max-width: 1400px;
margin: 0 auto;
padding: 10px;
height: fit-content;
background-color: white;
}
.cards {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
grid-gap: 30px;
}
.card {
display: grid;
grid-template-rows: max-content 200px 1fr;
background-color: #E2DBBE;
border-radius: 5px;
transition: 0.5s;
border: none;
}
.card:hover {
transform: translateY(-5px);
box-shadow: 0px 0px 10px 2px grey;
}
.card>header {
height: 86px;
border-radius: 5px 5px 0 0;
padding: 5px;
display: flex;
justify-content: center;
align-items: center;
background-color: #227c9d;
color: white;
}
.card>header>p {
text-align: center;
}
.card img {
object-fit: cover;
width: 100%;
height: 100%;
}
.content {
padding: 10px;
background-color: #363537;
border-radius: 0 0 5px 5px;
color: white;
}