Refactor sidebar profile to author card with enhanced styling and social links
This commit is contained in:
1 parent
7f2ed60a89
commit
824cd6ffa0
3 files changed
+74
-22
No files matched your search
+51
-14
@@ -977,38 +977,75 @@ img.nav-svg-icon {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
/* Compact profile card inside the sidebar (article view) */
|
||||
.sidebar-profile {
|
||||
/* Author card inside the sidebar (article view) */
|
||||
.sidebar-author {
|
||||
padding-bottom: 1.2rem;
|
||||
margin-bottom: 1.2rem;
|
||||
border-bottom: 1px solid var(--border-subtle);
|
||||
}
|
||||
|
||||
.sidebar-profile-avatar {
|
||||
width: 84px;
|
||||
height: 84px;
|
||||
.sidebar-author-label {
|
||||
display: block;
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 0.6rem;
|
||||
}
|
||||
|
||||
.sidebar-author-identity {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.sidebar-author-avatar {
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
border-radius: 50%;
|
||||
object-fit: cover;
|
||||
border: 3px solid var(--bg-surface);
|
||||
box-shadow: var(--shadow-sm);
|
||||
margin-bottom: var(--space-sm);
|
||||
flex-shrink: 0;
|
||||
border: 2px solid var(--border-color);
|
||||
transition: transform 0.2s ease;
|
||||
}
|
||||
|
||||
.sidebar-profile-avatar:hover {
|
||||
.sidebar-author-avatar:hover {
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.sidebar-profile-name {
|
||||
.sidebar-author-name {
|
||||
font-weight: 700;
|
||||
font-size: 1rem;
|
||||
font-size: 0.95rem;
|
||||
color: var(--text-primary);
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.sidebar-profile-bio {
|
||||
.sidebar-author-bio {
|
||||
color: var(--text-secondary);
|
||||
font-size: var(--font-size-sm);
|
||||
margin: 0.35rem 0 0;
|
||||
font-size: var(--font-size-xs);
|
||||
margin: 0.2rem 0 0;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.sidebar-author-social {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.sidebar-social-icon {
|
||||
width: 1.1rem;
|
||||
height: 1.1rem;
|
||||
opacity: 0.55;
|
||||
transition: opacity 0.2s ease, transform 0.2s ease;
|
||||
filter: var(--social-icon-filter);
|
||||
}
|
||||
|
||||
.sidebar-author-social a:hover .sidebar-social-icon {
|
||||
opacity: 1;
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.plugin {
|
||||
|
||||
Reference in new issue
Block a user