улучшение: glass-стиль для колонки писем
MessageListItem: - .message-item: стеклянный градиент сверху вниз + inset-блик, hover усиливает яркость поверхности - .selected: акцентный градиент + боковой glow изнутри + левая граница - .checked: акцентный тинт в базовый цвет - .unread-dot: двойной glow в цвет акцента - .swipe-wrapper: двойной разделитель (светлый сверху + тёмная тень снизу) MessageList: - .message-list-header: усиленный glass — backdrop-filter blur+saturate, градиентный фон, двойная нижняя граница с тенью - .message-list: fade-маска снизу для плавного перехода к пустой области Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
da1e43fa1f
commit
8f6c5ade7c
2 changed files with 67 additions and 14 deletions
|
|
@ -188,12 +188,15 @@ async function handleSwipeAction(action: SwipeAction, messageId: string): Promis
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 10px 12px;
|
padding: 10px 12px;
|
||||||
border-bottom: 1px solid var(--glass-border);
|
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
|
||||||
|
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.12);
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
background: rgba(255, 255, 255, 0.02);
|
background:
|
||||||
backdrop-filter: var(--blur-sm);
|
linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%),
|
||||||
-webkit-backdrop-filter: var(--blur-sm);
|
rgba(12, 12, 20, 0.6);
|
||||||
|
backdrop-filter: blur(20px) saturate(1.5);
|
||||||
|
-webkit-backdrop-filter: blur(20px) saturate(1.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.folder-title {
|
.folder-title {
|
||||||
|
|
@ -475,6 +478,19 @@ async function handleSwipeAction(action: SwipeAction, messageId: string): Promis
|
||||||
.message-list {
|
.message-list {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
/* Fade-маска: плавный переход к пустой области снизу */
|
||||||
|
mask-image: linear-gradient(
|
||||||
|
to bottom,
|
||||||
|
black 0%,
|
||||||
|
black calc(100% - 48px),
|
||||||
|
transparent 100%
|
||||||
|
);
|
||||||
|
-webkit-mask-image: linear-gradient(
|
||||||
|
to bottom,
|
||||||
|
black 0%,
|
||||||
|
black calc(100% - 48px),
|
||||||
|
transparent 100%
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
.loading-state,
|
.loading-state,
|
||||||
|
|
|
||||||
|
|
@ -311,7 +311,8 @@ onUnmounted(() => {
|
||||||
.swipe-wrapper {
|
.swipe-wrapper {
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
border-bottom: 1px solid var(--glass-border);
|
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
||||||
|
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
|
||||||
}
|
}
|
||||||
|
|
||||||
.action-bg {
|
.action-bg {
|
||||||
|
|
@ -339,28 +340,61 @@ onUnmounted(() => {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 10px 10px 10px 4px;
|
padding: 10px 10px 10px 4px;
|
||||||
gap: 6px;
|
gap: 6px;
|
||||||
/* Непрозрачный тёмный фон — скользит как карточка поверх фона действия */
|
/* Тёмная + стеклянная поверхность: opacity фиксирована для читаемости при свайпе */
|
||||||
background: #0e0e15;
|
background:
|
||||||
|
linear-gradient(180deg, rgba(255,255,255,0.028) 0%, rgba(255,255,255,0.01) 100%),
|
||||||
|
#0c0c14;
|
||||||
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
will-change: transform;
|
will-change: transform;
|
||||||
touch-action: pan-y;
|
touch-action: pan-y;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
transition: background var(--transition-fast);
|
transition:
|
||||||
|
background var(--transition-fast),
|
||||||
|
box-shadow var(--transition-fast);
|
||||||
}
|
}
|
||||||
.message-item:hover { background: var(--glass-bg-hover); }
|
|
||||||
|
.message-item:hover {
|
||||||
|
background:
|
||||||
|
linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.03) 100%),
|
||||||
|
#0c0c14;
|
||||||
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
|
||||||
|
}
|
||||||
|
|
||||||
.message-item.selected {
|
.message-item.selected {
|
||||||
background: color-mix(in srgb, var(--accent) 8%, transparent);
|
background:
|
||||||
|
linear-gradient(180deg,
|
||||||
|
color-mix(in srgb, var(--accent) 14%, transparent) 0%,
|
||||||
|
color-mix(in srgb, var(--accent) 7%, transparent) 100%
|
||||||
|
),
|
||||||
|
#0c0c14;
|
||||||
border-left: 2px solid var(--accent);
|
border-left: 2px solid var(--accent);
|
||||||
padding-left: 2px;
|
padding-left: 2px;
|
||||||
box-shadow:
|
box-shadow:
|
||||||
inset 0 1px 0 color-mix(in srgb, var(--accent) 10%, transparent),
|
inset 0 1px 0 color-mix(in srgb, var(--accent) 20%, transparent),
|
||||||
inset 0 -1px 0 color-mix(in srgb, var(--accent) 5%, transparent);
|
inset 4px 0 16px color-mix(in srgb, var(--accent) 10%, transparent),
|
||||||
|
inset 0 -1px 0 color-mix(in srgb, var(--accent) 6%, transparent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.message-item.selected:hover {
|
||||||
|
background:
|
||||||
|
linear-gradient(180deg,
|
||||||
|
color-mix(in srgb, var(--accent) 18%, transparent) 0%,
|
||||||
|
color-mix(in srgb, var(--accent) 9%, transparent) 100%
|
||||||
|
),
|
||||||
|
#0c0c14;
|
||||||
|
}
|
||||||
|
|
||||||
.message-item.checked {
|
.message-item.checked {
|
||||||
background: color-mix(in srgb, var(--accent) 6%, transparent);
|
background:
|
||||||
|
linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%),
|
||||||
|
color-mix(in srgb, var(--accent) 7%, #0c0c14);
|
||||||
}
|
}
|
||||||
|
|
||||||
.message-item.checked:hover {
|
.message-item.checked:hover {
|
||||||
background: color-mix(in srgb, var(--accent) 10%, transparent);
|
background:
|
||||||
|
linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.03) 100%),
|
||||||
|
color-mix(in srgb, var(--accent) 10%, #0c0c14);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Left column: holds either circle-check or unread-dot */
|
/* Left column: holds either circle-check or unread-dot */
|
||||||
|
|
@ -403,6 +437,9 @@ onUnmounted(() => {
|
||||||
height: 6px;
|
height: 6px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background: var(--accent);
|
background: var(--accent);
|
||||||
|
box-shadow:
|
||||||
|
0 0 6px color-mix(in srgb, var(--accent) 80%, transparent),
|
||||||
|
0 0 12px color-mix(in srgb, var(--accent) 35%, transparent);
|
||||||
}
|
}
|
||||||
|
|
||||||
.message-content {
|
.message-content {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue