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:
vodyanoysh 2026-03-31 21:47:48 +07:00
parent bd98ddb2a0
commit 41aa3a466c

View file

@ -211,62 +211,97 @@ async function handleSwipeAction(action: SwipeAction, messageId: string): Promis
} }
.message-count { .message-count {
font-size: 12px; font-size: 11.5px;
font-weight: 600; font-weight: 700;
color: #fff; color: rgba(255, 255, 255, 0.92);
background: var(--danger); background: rgba(210, 45, 45, 0.55);
padding: 3px 10px; padding: 2px 9px;
border-radius: 12px; border-radius: var(--radius-full);
cursor: pointer; cursor: pointer;
flex-shrink: 0; flex-shrink: 0;
transition: background 0.12s ease, box-shadow 0.12s ease; border: 1px solid rgba(255, 100, 100, 0.35);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); 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 { .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 { .message-count.unread-active {
background: #a81c1c; background: rgba(140, 20, 20, 0.7);
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.15); 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 { .icon-btn {
width: 26px; width: 28px;
height: 26px; height: 28px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-size: 14px;
color: var(--text-muted); color: var(--text-muted);
border-radius: var(--radius-sm); border-radius: 50%;
transition: background var(--transition-fast), color var(--transition-fast); 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) { .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); 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 { .icon-btn.active {
color: var(--accent); 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 { .icon-btn:disabled {
cursor: default; cursor: default;
opacity: 0.4;
} }
.icon-btn.spinning { .icon-btn.spinning {
animation: spin 0.8s linear infinite; animation: spin 0.8s linear infinite;
} }
/* Select mode button with custom checkbox icon */ /* Select mode button — circle indicator inside */
.select-icon { .select-icon {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 14px; width: 13px;
height: 14px; height: 13px;
border-radius: 50%; border-radius: 50%;
border: 1.5px solid currentColor; border: 1.5px solid currentColor;
transition: background 0.15s ease, border-color 0.15s ease; transition: background 0.15s ease, border-color 0.15s ease;