-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcard.module.css
73 lines (64 loc) · 1.13 KB
/
card.module.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
.card {
display: flex;
flex-direction: column;
background: var(--color-white);
box-shadow: rgba(0, 0, 0, 0.15) 0 4px 16px;
border-radius: 0.4rem;
max-width: 400px;
min-height: 475px;
margin: 20px;
}
.card::after {
content: "";
position: absolute;
z-index: -1;
width: 100%;
height: 100%;
opacity: 0;
border-radius: 0.4rem;
box-shadow: rgba(0, 0, 0, 0.2) 0 4px 16px;
transition: opacity 0.25s ease-in-out;
}
.card:hover::after {
opacity: 1;
}
.cover-image {
border-top-left-radius: 0.4rem;
border-top-right-radius: 0.4rem;
overflow: hidden;
}
.cover-image img {
display: block;
width: 100%;
height: 200px;
object-fit: cover;
}
.content {
padding: 2rem 2.8rem;
display: flex;
flex-direction: column;
justify-content: space-between;
height: 60%;
}
.content h4 {
font-size: 1.5rem;
margin: 0;
font-weight: 400;
}
.content p {
font-size: 1rem;
margin: 1rem 0 0 0;
color: var(--color-gray);
font-weight: 300;
}
.button-container {
margin-top: 2rem;
display: flex;
flex-direction: row;
justify-content: left;
}
@media (max-width: 500px) {
.card {
margin: 20px 0px;
}
}