feat: apply liquid glass style to header count badge and icon buttons
Count badge: semi-transparent red with glass border, inset highlight, glow shadow. Icon buttons: circular glass surface (rgba + border + inset highlight), scale-down on active, accent glow when active. Consistent with panel glass language. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
bd98ddb2a0
commit
41aa3a466c
1 changed files with 56 additions and 21 deletions
|
|
@ -211,62 +211,97 @@ async function handleSwipeAction(action: SwipeAction, messageId: string): Promis
|
|||
}
|
||||
|
||||
.message-count {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: #fff;
|
||||
background: var(--danger);
|
||||
padding: 3px 10px;
|
||||
border-radius: 12px;
|
||||
font-size: 11.5px;
|
||||
font-weight: 700;
|
||||
color: rgba(255, 255, 255, 0.92);
|
||||
background: rgba(210, 45, 45, 0.55);
|
||||
padding: 2px 9px;
|
||||
border-radius: var(--radius-full);
|
||||
cursor: pointer;
|
||||
flex-shrink: 0;
|
||||
transition: background 0.12s ease, box-shadow 0.12s ease;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
|
||||
border: 1px solid rgba(255, 100, 100, 0.35);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 160, 160, 0.2),
|
||||
0 2px 8px rgba(180, 30, 30, 0.35);
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
.message-count:hover {
|
||||
background: #e03a3a;
|
||||
background: rgba(210, 45, 45, 0.72);
|
||||
border-color: rgba(255, 100, 100, 0.5);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 160, 160, 0.25),
|
||||
0 3px 12px rgba(180, 30, 30, 0.45);
|
||||
}
|
||||
.message-count.unread-active {
|
||||
background: #a81c1c;
|
||||
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.15);
|
||||
background: rgba(140, 20, 20, 0.7);
|
||||
border-color: rgba(200, 60, 60, 0.4);
|
||||
box-shadow:
|
||||
inset 0 2px 4px rgba(0, 0, 0, 0.3),
|
||||
inset 0 -1px 0 rgba(255, 100, 100, 0.1),
|
||||
0 0 0 1px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.icon-btn {
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 14px;
|
||||
color: var(--text-muted);
|
||||
border-radius: var(--radius-sm);
|
||||
transition: background var(--transition-fast), color var(--transition-fast);
|
||||
border-radius: 50%;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
|
||||
transition:
|
||||
background var(--transition-fast),
|
||||
border-color var(--transition-fast),
|
||||
color var(--transition-fast),
|
||||
box-shadow var(--transition-fast);
|
||||
}
|
||||
|
||||
.icon-btn:hover:not(:disabled) {
|
||||
background: var(--glass-bg-hover);
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
border-color: rgba(255, 255, 255, 0.16);
|
||||
color: var(--text-primary);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.12),
|
||||
0 2px 8px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.icon-btn:active:not(:disabled) {
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
|
||||
transform: scale(0.94);
|
||||
}
|
||||
|
||||
.icon-btn.active {
|
||||
color: var(--accent);
|
||||
background: color-mix(in srgb, var(--accent) 12%, transparent);
|
||||
background: color-mix(in srgb, var(--accent) 14%, transparent);
|
||||
border-color: color-mix(in srgb, var(--accent) 30%, transparent);
|
||||
box-shadow:
|
||||
inset 0 1px 0 color-mix(in srgb, var(--accent) 20%, transparent),
|
||||
0 0 8px color-mix(in srgb, var(--accent) 20%, transparent);
|
||||
}
|
||||
|
||||
.icon-btn:disabled {
|
||||
cursor: default;
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
||||
.icon-btn.spinning {
|
||||
animation: spin 0.8s linear infinite;
|
||||
}
|
||||
|
||||
/* Select mode button with custom checkbox icon */
|
||||
/* Select mode button — circle indicator inside */
|
||||
.select-icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
width: 13px;
|
||||
height: 13px;
|
||||
border-radius: 50%;
|
||||
border: 1.5px solid currentColor;
|
||||
transition: background 0.15s ease, border-color 0.15s ease;
|
||||
|
|
|
|||
Loading…
Reference in a new issue