-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Expand file tree
/
Copy pathPostCard.css
More file actions
57 lines (50 loc) · 1.14 KB
/
PostCard.css
File metadata and controls
57 lines (50 loc) · 1.14 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
@layer patterns {
.post-card {
display: flex;
flex-direction: column;
border: var(--border-width-1) solid var(--color-border-secondary);
border-radius: var(--radius-base);
gap: var(--space-4);
overflow: hidden;
padding: var(--space-4);
min-height: var(--size-88);
height: 100%;
cursor: pointer;
transition: ease-in-out;
transition-property: outline;
&:hover {
outline: var(--color-focus-ring) solid var(--border-width-1);
}
@media (--md-up) {
min-height: var(--size-100);
}
}
.post-card__labels {
display: flex;
flex-wrap: wrap;
gap: var(--space-2);
margin-bottom: var(--space-4);
}
.post-card__link {
display: flex;
flex-direction: column;
justify-content: space-between;
gap: inherit;
color: inherit;
text-decoration: none;
height: 100%;
&:focus {
outline: none;
}
}
.post-card:focus-within {
outline: var(--color-focus-ring) solid var(--border-width-1);
}
.post-card__cover {
margin-bottom: var(--space-3);
display: block;
height: var(--size-40);
width: 100%;
object-fit: cover;
}
}