mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 07:33:07 +08:00
style: thinner dashed border cards, transparent background
This commit is contained in:
+14
-15
@@ -78,19 +78,19 @@ const links: FriendLink[] = [
|
|||||||
<style is:global>
|
<style is:global>
|
||||||
.links-grid {
|
.links-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
|
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
||||||
gap: 1rem;
|
gap: 0.85rem;
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.link-card {
|
.link-card {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.75rem;
|
gap: 0.65rem;
|
||||||
padding: 1rem;
|
padding: 0.75rem 1rem;
|
||||||
border: 1px solid var(--border);
|
border: 1.5px dashed var(--border);
|
||||||
border-radius: 0.75rem;
|
border-radius: 0.75rem;
|
||||||
background: var(--muted);
|
background: var(--background);
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: var(--foreground);
|
color: var(--foreground);
|
||||||
@@ -98,35 +98,34 @@ const links: FriendLink[] = [
|
|||||||
|
|
||||||
.link-card:hover {
|
.link-card:hover {
|
||||||
border-color: var(--accent);
|
border-color: var(--accent);
|
||||||
background: color-mix(in srgb, var(--accent) 10%, var(--background));
|
background: var(--muted);
|
||||||
transform: translateY(-2px);
|
transform: translateY(-1px);
|
||||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.link-avatar {
|
.link-avatar {
|
||||||
width: 48px;
|
width: 40px;
|
||||||
height: 48px;
|
height: 40px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
background: var(--background);
|
background: var(--muted);
|
||||||
}
|
}
|
||||||
|
|
||||||
.link-info {
|
.link-info {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 0.15rem;
|
gap: 0.1rem;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.link-name {
|
.link-name {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-size: 0.95rem;
|
font-size: 0.9rem;
|
||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.link-desc {
|
.link-desc {
|
||||||
font-size: 0.8rem;
|
font-size: 0.78rem;
|
||||||
color: var(--muted-foreground);
|
color: var(--muted-foreground);
|
||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|||||||
Reference in New Issue
Block a user