-
Notifications
You must be signed in to change notification settings - Fork 322
Expand file tree
/
Copy pathcard.css
More file actions
62 lines (52 loc) · 899 Bytes
/
card.css
File metadata and controls
62 lines (52 loc) · 899 Bytes
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
.card {
background: #fff;
max-width: 400px;
box-shadow: 0 0.2em 0.3em hsla(0, 0%, 0%, 20%);
padding: 1rem;
border-radius: 0.2em;
border: 1px solid hsl(0, 0%, 90%) zz;
& > .card-header {
& h2,
& small {
margin: 0;
}
& > img {
width: 4rem;
height: 4rem;
border-radius: 50%;
overflow: hidden;
object-fit: cover;
}
& > div {
margin-left: 1rem;
}
}
& > .card-content {
margin-top: 0.5rem;
margin-bottom: 0.5rem;
& img {
width: 100%;
height: 200px;
object-fit: cover;
}
}
& > .card-footer {
padding-top: 0.5rem;
border-top: 1px solid #e6e6e6;
& > button {
padding: 0.5rem 1rem;
}
& time {
flex: 2;
text-align: right;
}
}
& date,
& time {
font-size: 0.8rem;
color: #808080;
}
}
.mdc-card {
max-width: 400px;
}