Унифицировать стиль активной папки и выбранного письма

Оба элемента теперь используют единый визуальный язык:
- Liquid glass фон: blur(14px) saturate(200%) + diagonal gradient tint
- Белый border rgba(255,255,255,0.18)
- Specular highlight через ::after: inset 1px 1px 0 rgba(255,255,255,0.50)
- Акцентная полоска слева с glow

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
vodyanoysh 2026-03-31 23:54:57 +07:00
parent 8537d8172d
commit 354f15eb7b
2 changed files with 60 additions and 52 deletions

View file

@ -331,12 +331,8 @@ onUnmounted(() => {
/* Карточка «всплывает» когда письмо выбрано — через :has() */
.swipe-wrapper:has(.message-item.selected) {
border-color: color-mix(in srgb, var(--accent) 35%, transparent);
box-shadow:
inset 0 1px 0 color-mix(in srgb, var(--accent) 20%, transparent),
0 6px 24px rgba(0, 0, 0, 0.5),
0 2px 6px rgba(0, 0, 0, 0.3),
0 0 0 0.5px color-mix(in srgb, var(--accent) 22%, transparent);
border-color: rgba(255, 255, 255, 0.18);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
z-index: 1;
}
@ -389,40 +385,48 @@ onUnmounted(() => {
#0c0c14;
}
/* Выбранное письмо: акцентный тинт + полоска слева через ::before */
/* Выбранное письмо: liquid glass */
.message-item.selected {
background:
linear-gradient(180deg,
color-mix(in srgb, var(--accent) 13%, transparent) 0%,
color-mix(in srgb, var(--accent) 6%, transparent) 100%
),
#0d0d18;
background: linear-gradient(
145deg,
rgba(255, 255, 255, 0.10) 0%,
rgba(255, 255, 255, 0.06) 100%
);
backdrop-filter: blur(14px) saturate(200%) brightness(1.08);
-webkit-backdrop-filter: blur(14px) saturate(200%) brightness(1.08);
padding-left: 4px;
box-shadow:
inset 0 1px 0 color-mix(in srgb, var(--accent) 22%, transparent),
inset 0 -1px 0 color-mix(in srgb, var(--accent) 8%, transparent);
}
/* Акцентная полоска — через ::before, работает с border-radius wrapper'а */
/* Акцентная полоска слева */
.message-item.selected::before {
content: '';
position: absolute;
left: 0;
top: 18%;
height: 64%;
width: 2.5px;
width: 3px;
border-radius: 0 3px 3px 0;
background: var(--accent);
box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 65%, transparent);
box-shadow:
0 0 8px color-mix(in srgb, var(--accent) 60%, transparent),
0 0 20px color-mix(in srgb, var(--accent) 30%, transparent);
}
/* Specular highlight */
.message-item.selected::after {
content: '';
position: absolute;
inset: 0;
pointer-events: none;
box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.50);
}
.message-item.selected:hover {
background:
linear-gradient(180deg,
color-mix(in srgb, var(--accent) 17%, transparent) 0%,
color-mix(in srgb, var(--accent) 8%, transparent) 100%
),
#0d0d18;
background: linear-gradient(
145deg,
rgba(255, 255, 255, 0.13) 0%,
rgba(255, 255, 255, 0.08) 100%
);
}
.message-item.checked {

View file

@ -98,45 +98,49 @@ function toggleExpand(event: Event): void {
border-color var(--transition-fast);
}
/* Specular highlight layer — только для active */
.folder-item.active::before {
content: '';
position: absolute;
inset: 0;
border-radius: inherit;
background: linear-gradient(
145deg,
rgba(255, 255, 255, 0.10) 0%,
rgba(255, 255, 255, 0.02) 60%,
transparent 100%
);
pointer-events: none;
}
.folder-item.active::after {
content: '';
position: absolute;
inset: 0;
border-radius: inherit;
box-shadow:
inset 1px 1px 0 rgba(255, 255, 255, 0.55),
inset -1px -1px 0 rgba(255, 255, 255, 0.04);
pointer-events: none;
}
.folder-item:hover {
background: rgba(255, 255, 255, 0.06);
border-color: rgba(255, 255, 255, 0.07);
}
/* ── Активное состояние: liquid glass ────────────────────── */
.folder-item.active {
background: rgba(255, 255, 255, 0.11);
background: linear-gradient(
145deg,
rgba(255, 255, 255, 0.10) 0%,
rgba(255, 255, 255, 0.06) 100%
);
backdrop-filter: blur(14px) saturate(200%) brightness(1.08);
-webkit-backdrop-filter: blur(14px) saturate(200%) brightness(1.08);
border-color: rgba(255, 255, 255, 0.18);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
/* Акцентная полоска слева */
.folder-item.active::before {
content: '';
position: absolute;
left: -6px;
top: 20%;
height: 60%;
width: 3px;
border-radius: 0 3px 3px 0;
background: var(--accent);
box-shadow:
0 0 8px color-mix(in srgb, var(--accent) 60%, transparent),
0 0 20px color-mix(in srgb, var(--accent) 30%, transparent);
}
/* Specular highlight */
.folder-item.active::after {
content: '';
position: absolute;
inset: 0;
border-radius: inherit;
box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.50);
pointer-events: none;
}
/* ── Иконка папки ────────────────────────────────────────── */
.folder-icon {
flex-shrink: 0;