mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-13 23:31:07 +08:00
update: redesign link cards with solid border (like liuzhen932)
This commit is contained in:
@@ -87,16 +87,14 @@ const links: FriendLink[] = [
|
||||
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
||||
gap: 0.75rem;
|
||||
margin-bottom: 2rem;
|
||||
margin-left: -1rem;
|
||||
margin-right: -1rem;
|
||||
}
|
||||
|
||||
.link-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
padding: 0.65rem 1rem 0.65rem 0;
|
||||
box-shadow: 0 0 0 1.5px var(--border);
|
||||
gap: 0.75rem;
|
||||
padding: 0.75rem 1rem;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 0.75rem;
|
||||
background: var(--background);
|
||||
transition: all 0.2s ease;
|
||||
@@ -104,10 +102,8 @@ const links: FriendLink[] = [
|
||||
color: var(--foreground);
|
||||
}
|
||||
|
||||
|
||||
|
||||
.link-card:hover {
|
||||
box-shadow: 0 0 0 1.5px var(--accent);
|
||||
border-color: var(--accent);
|
||||
background: var(--muted);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user