-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathevent-cards.css
More file actions
69 lines (57 loc) · 1.07 KB
/
event-cards.css
File metadata and controls
69 lines (57 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
66
67
68
69
.event-cards {
margin: 1rem 10rem 0 10rem;
display: flex;
justify-content: space-around;
}
.card {
overflow: hidden;
width: 300px;
background: var(--secondary-font);
box-shadow: 0 0 15px rgba(0,0,0,0.2);
border-radius: 20px;
cursor: pointer;
transition: 300ms ease-out;
}
.card:hover {
transform: scale(1.005);
}
.card .card-desc h2 {
margin: 1rem 2rem;
}
.card .card-desc p {
margin: .5rem 1rem .5rem 1rem;
text-indent: 0;
}
.card > img {
height: 150px;
width: 100%;
object-fit: cover;
}
.sponsor img {
position: absolute;
right: .75rem;
top: -1.7rem;
width: 2rem;
border-radius: 50%;
border: 0.25rem solid var(--secondary-font);
}
@media only screen and (max-width: 780px) {
.old {
display: none;
}
.event-cards {
margin: .5rem;
justify-content: center;
}
.card {
box-shadow: 0 0 5px rgba(0,0,0,0.2);
width: 300px;
}
.card .card-desc h2 {
margin: .5rem;
}
.card .card-desc p {
margin: .5rem;
text-indent: 0;
}
}