-
Notifications
You must be signed in to change notification settings - Fork 467
Expand file tree
/
Copy pathGitHubCard.module.css
More file actions
94 lines (84 loc) · 1.74 KB
/
GitHubCard.module.css
File metadata and controls
94 lines (84 loc) · 1.74 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
.card {
display: flex;
align-items: center;
gap: var(--space-3x);
padding: var(--space-4x);
min-height: 96px;
border-radius: 10px;
border: 1px solid var(--color-border-primary);
background: var(--color-background-primary);
color: var(--color-text-primary);
text-decoration: none;
transition:
background-color 0.2s ease,
border-color 0.2s ease,
box-shadow 0.2s ease,
transform 0.2s ease;
}
.card:hover {
background: var(--theme-bg-hover);
border-color: var(--gray-300);
box-shadow:
0 2px 6px rgba(0, 0, 0, 0.06),
0 6px 20px rgba(0, 0, 0, 0.04);
transform: translateY(-1px);
}
.card:focus-visible {
outline: 2px solid var(--theme-accent);
outline-offset: 2px;
}
.icon {
flex-shrink: 0;
width: 44px;
height: 44px;
border-radius: 999px;
border: 1px solid var(--gray-200);
background: var(--gray-50);
display: flex;
align-items: center;
justify-content: center;
}
.icon > :global(svg),
.icon > :global(img) {
width: 22px;
height: 22px;
display: block;
}
.icon > :global(img) {
border-radius: 999px;
}
.content {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: var(--space-1x);
}
.title {
font-size: 16px;
font-weight: var(--font-weight-medium);
color: var(--color-text-heading);
line-height: 1.4;
padding-bottom: 1px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.description {
font-size: 14px;
color: var(--color-text-secondary);
line-height: 1.4;
padding-bottom: 1px;
}
.arrow {
flex-shrink: 0;
color: var(--color-text-secondary);
transition:
transform 0.15s ease,
color 0.15s ease;
}
.card:hover .arrow,
.card:focus-visible .arrow {
transform: translateX(3px);
color: var(--color-text-primary);
}