Добавить liquid glass эффекты в панель папок

- folder-pane: градиентный фон, усиленный blur (36px) + saturate(2),
  внутренний specular highlight и глубокая тень
- Заголовок аккаунта: glass-карточка с backdrop-filter, border и specular
- Папки: стеклянный чип-контейнер для иконок с акцентной подсветкой
  при активном состоянии; hover и active получили border + box-shadow;
  active: backdrop-filter blur с layered shadows

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
vodyanoysh 2026-03-31 23:46:50 +07:00
parent e779c23abd
commit 57bb58fa57
3 changed files with 116 additions and 29 deletions

View file

@ -129,14 +129,22 @@ function stopResize(): void {
flex-shrink: 0; flex-shrink: 0;
position: relative; position: relative;
z-index: 3; z-index: 3;
background: rgba(255, 255, 255, 0.035); background: linear-gradient(
backdrop-filter: blur(28px) saturate(1.6); 165deg,
-webkit-backdrop-filter: blur(28px) saturate(1.6); rgba(255, 255, 255, 0.055) 0%,
rgba(255, 255, 255, 0.032) 60%,
rgba(255, 255, 255, 0.022) 100%
);
backdrop-filter: blur(36px) saturate(2) brightness(1.04);
-webkit-backdrop-filter: blur(36px) saturate(2) brightness(1.04);
overflow-y: auto; overflow-y: auto;
min-width: 180px; min-width: 180px;
max-width: 400px; max-width: 400px;
border-right: 1px solid var(--glass-border); border-right: 1px solid rgba(255, 255, 255, 0.09);
box-shadow: 4px 0 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.06); box-shadow:
4px 0 28px rgba(0, 0, 0, 0.45),
inset 0 1px 0 rgba(255, 255, 255, 0.12),
inset -1px 0 0 rgba(255, 255, 255, 0.04);
} }
.message-pane { .message-pane {

View file

@ -34,15 +34,29 @@ const accountsStore = useAccountsStore()
<style scoped> <style scoped>
.folder-tree { .folder-tree {
padding: 4px 0; padding: 8px 0 4px;
} }
.folder-header { .folder-header {
padding: 10px 12px 6px; margin: 0 8px 8px;
padding: 7px 10px;
background: rgba(255, 255, 255, 0.045);
backdrop-filter: blur(20px) saturate(1.6);
-webkit-backdrop-filter: blur(20px) saturate(1.6);
border: 1px solid rgba(255, 255, 255, 0.09);
border-radius: var(--radius-sm);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.14),
inset 0 -1px 0 rgba(0, 0, 0, 0.12),
0 2px 8px rgba(0, 0, 0, 0.2);
font-size: 11px; font-size: 11px;
font-weight: 500; font-weight: 500;
color: var(--text-muted); color: var(--text-secondary);
letter-spacing: 0.2px; letter-spacing: 0.3px;
}
.folder-list {
position: relative;
} }
.loading, .loading,

View file

@ -63,7 +63,9 @@ function toggleExpand(event: Event): void {
</button> </button>
<span v-else class="expand-spacer" /> <span v-else class="expand-spacer" />
<AppIcon :name="folderIcon" :size="14" class="folder-icon" /> <span class="folder-icon-wrap">
<AppIcon :name="folderIcon" :size="13" class="folder-icon" />
</span>
<span class="folder-name truncate">{{ folder.name }}</span> <span class="folder-name truncate">{{ folder.name }}</span>
<span v-if="unreadCount > 0" class="unread-badge"> <span v-if="unreadCount > 0" class="unread-badge">
{{ unreadCount }} {{ unreadCount }}
@ -85,44 +87,60 @@ function toggleExpand(event: Event): void {
.folder-item { .folder-item {
display: flex; display: flex;
align-items: center; align-items: center;
width: calc(100% - 8px); width: calc(100% - 10px);
padding: 5px 8px 5px 6px; padding: 5px 8px 5px 6px;
gap: 6px; gap: 7px;
border-radius: var(--radius-sm); border-radius: var(--radius-sm);
margin: 1px 4px; margin: 2px 5px;
transition: background var(--transition-fast), box-shadow var(--transition-fast); border: 1px solid transparent;
transition:
background var(--transition-fast),
border-color var(--transition-fast),
box-shadow var(--transition-fast);
text-align: left; text-align: left;
position: relative; position: relative;
} }
.folder-item:hover { .folder-item:hover {
background: var(--glass-bg-hover); background: rgba(255, 255, 255, 0.06);
border-color: rgba(255, 255, 255, 0.08);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.09),
0 2px 10px rgba(0, 0, 0, 0.15);
} }
.folder-item.active { .folder-item.active {
background: color-mix(in srgb, var(--accent) 10%, transparent); background: rgba(255, 255, 255, 0.09);
backdrop-filter: blur(20px) saturate(1.8);
-webkit-backdrop-filter: blur(20px) saturate(1.8);
border-color: rgba(255, 255, 255, 0.13);
box-shadow: box-shadow:
inset 0 1px 0 color-mix(in srgb, var(--accent) 15%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.18),
inset 0 -1px 0 color-mix(in srgb, var(--accent) 5%, transparent); inset 0 -1px 0 rgba(0, 0, 0, 0.12),
0 4px 16px rgba(0, 0, 0, 0.25),
0 1px 3px rgba(0, 0, 0, 0.2);
} }
.folder-item.active::before { .folder-item.active::before {
content: ''; content: '';
position: absolute; position: absolute;
left: -4px; left: -5px;
top: 15%; top: 18%;
height: 70%; height: 64%;
width: 3px; width: 3px;
background: var(--accent); background: var(--accent);
border-radius: 0 3px 3px 0; border-radius: 0 3px 3px 0;
box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 60%, transparent); box-shadow:
0 0 8px color-mix(in srgb, var(--accent) 70%, transparent),
0 0 20px color-mix(in srgb, var(--accent) 35%, transparent);
} }
.folder-item.active .folder-name { .folder-item.active .folder-name {
color: var(--accent); color: rgba(255, 255, 255, 0.90);
font-weight: 500; font-weight: 500;
} }
/* ── Expand toggle ───────────────────────────────────────── */
.expand-btn { .expand-btn {
width: 16px; width: 16px;
height: 16px; height: 16px;
@ -131,7 +149,11 @@ function toggleExpand(event: Event): void {
justify-content: center; justify-content: center;
color: var(--text-muted); color: var(--text-muted);
flex-shrink: 0; flex-shrink: 0;
transition: transform var(--transition-fast); transition: transform var(--transition-fast), color var(--transition-fast);
}
.expand-btn:hover {
color: var(--text-secondary);
} }
.expand-btn.rotated { .expand-btn.rotated {
@ -143,24 +165,67 @@ function toggleExpand(event: Event): void {
flex-shrink: 0; flex-shrink: 0;
} }
.folder-icon { /* ── Icon chip ───────────────────────────────────────────── */
.folder-icon-wrap {
width: 22px;
height: 22px;
display: flex;
align-items: center;
justify-content: center;
border-radius: var(--radius-xs);
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.07);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
flex-shrink: 0; flex-shrink: 0;
width: 18px; transition:
color: var(--text-muted); background var(--transition-fast),
opacity: 0.75; border-color var(--transition-fast),
box-shadow var(--transition-fast);
} }
.folder-item:hover .folder-icon-wrap {
background: rgba(255, 255, 255, 0.08);
border-color: rgba(255, 255, 255, 0.11);
}
.folder-item.active .folder-icon-wrap {
background: color-mix(in srgb, var(--accent) 14%, rgba(255, 255, 255, 0.07));
border-color: color-mix(in srgb, var(--accent) 28%, rgba(255, 255, 255, 0.09));
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.14),
0 0 8px color-mix(in srgb, var(--accent) 20%, transparent);
}
.folder-icon {
color: var(--text-muted);
opacity: 0.8;
transition: color var(--transition-fast), opacity var(--transition-fast);
}
.folder-item:hover .folder-icon {
opacity: 1;
color: var(--text-secondary);
}
.folder-item.active .folder-icon {
color: color-mix(in srgb, var(--accent) 60%, rgba(255, 255, 255, 0.8));
opacity: 1;
}
/* ── Folder name ─────────────────────────────────────────── */
.folder-name { .folder-name {
flex: 1; flex: 1;
font-size: 13px; font-size: 13px;
min-width: 0; min-width: 0;
color: var(--text-secondary); color: var(--text-secondary);
transition: color var(--transition-fast);
} }
.folder-item:hover .folder-name { .folder-item:hover .folder-name {
color: var(--text-primary); color: var(--text-primary);
} }
/* ── Unread badge ────────────────────────────────────────── */
.unread-badge { .unread-badge {
font-size: 10px; font-size: 10px;
font-weight: 700; font-weight: 700;
@ -183,7 +248,7 @@ function toggleExpand(event: Event): void {
} }
.folder-item:hover .unread-badge { .folder-item:hover .unread-badge {
background: rgba(210, 45, 45, 0.7); background: rgba(210, 45, 45, 0.70);
box-shadow: box-shadow:
inset 0 1px 0 rgba(255, 160, 160, 0.22), inset 0 1px 0 rgba(255, 160, 160, 0.22),
0 2px 8px rgba(180, 30, 30, 0.4); 0 2px 8px rgba(180, 30, 30, 0.4);