feat: liquid glass UI redesign (Apple-style)
- variables.css: full glass token system (--glass-bg-*, --glass-border, --glass-specular, --blur-sm/md/lg/xl), transparent --bg-primary, rgba-based surface tokens, deeper base color #09090e - base.css: rich gradient background with subtle lime/blue/purple radial gradients visible through glass panels - AppShell: all 4 panels get backdrop-filter blur + rgba background; account-bar/folder/message/preview each at different opacity levels; resize handle transparent with accent glow on hover - StatusBar: glass panel with backdrop-filter and specular highlight - AccountSwitcher: avatar accent ring with glow (box-shadow triple layer), hover brightens avatar - FolderTreeItem: active item gets accent-tinted glass + specular box-shadow + glowing left indicator bar - MessageList: header gets backdrop-filter; bulk-actions bar accent-tinted glass; buttons styled as glass chips with borders - MessageListItem: transparent base, glass hover, accent-tinted selected state with inset specular highlight - MessageHeader: glass header with backdrop-filter - MessagePreview: empty icon more subtle - AddAccountDialog: overlay with blur, dialog uses strong blur (60px) + glass-specular + deep shadow - SettingsView: transparent background, glass cards for account items, setting rows, swipe demo panels - MessageBody: updated iframe background to #0d0d11 matching base Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
9afb1434b6
commit
69ad8af2dc
13 changed files with 214 additions and 130 deletions
|
|
@ -14,10 +14,16 @@ body {
|
|||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
color: var(--text-primary);
|
||||
background: var(--bg-primary);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
user-select: none;
|
||||
|
||||
/* Rich gradient base — visible through glass panels */
|
||||
background:
|
||||
radial-gradient(ellipse 55% 45% at 12% 10%, rgba(168, 230, 0, 0.07) 0%, transparent 70%),
|
||||
radial-gradient(ellipse 45% 55% at 88% 90%, rgba(0, 110, 220, 0.06) 0%, transparent 70%),
|
||||
radial-gradient(ellipse 60% 40% at 50% 50%, rgba(100, 0, 180, 0.04) 0%, transparent 100%),
|
||||
#09090e;
|
||||
}
|
||||
|
||||
#app {
|
||||
|
|
@ -28,10 +34,7 @@ a {
|
|||
color: var(--accent);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: var(--accent-hover);
|
||||
}
|
||||
a:hover { color: var(--accent-hover); }
|
||||
|
||||
button {
|
||||
font-family: inherit;
|
||||
|
|
@ -56,37 +59,29 @@ textarea {
|
|||
font-size: inherit;
|
||||
color: var(--text-primary);
|
||||
background: var(--bg-input);
|
||||
border: 1px solid var(--border);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: var(--radius-sm);
|
||||
padding: 7px 10px;
|
||||
outline: none;
|
||||
transition: border-color var(--transition-fast);
|
||||
transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
|
||||
}
|
||||
|
||||
input:focus,
|
||||
select:focus,
|
||||
textarea:focus {
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 0 2px var(--accent-muted);
|
||||
border-color: rgba(168, 230, 0, 0.5);
|
||||
box-shadow: 0 0 0 3px rgba(168, 230, 0, 0.10);
|
||||
}
|
||||
|
||||
/* ── Scrollbar ─────────────────────────────────────────── */
|
||||
::-webkit-scrollbar {
|
||||
width: 5px;
|
||||
height: 5px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar { width: 4px; height: 4px; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: var(--border-light);
|
||||
background: rgba(255, 255, 255, 0.12);
|
||||
border-radius: var(--radius-full);
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: var(--text-muted);
|
||||
background: rgba(255, 255, 255, 0.22);
|
||||
}
|
||||
|
||||
/* ── Utilities ─────────────────────────────────────────── */
|
||||
|
|
@ -98,10 +93,8 @@ textarea:focus {
|
|||
|
||||
.visually-hidden {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
width: 1px; height: 1px;
|
||||
padding: 0; margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
border: 0;
|
||||
|
|
|
|||
|
|
@ -1,52 +1,73 @@
|
|||
:root {
|
||||
/* ── Backgrounds ─────────────────────────────────────── */
|
||||
--bg-primary: #1a1a1c;
|
||||
--bg-secondary: #222224;
|
||||
--bg-tertiary: #2a2a2e;
|
||||
--bg-hover: #36363c;
|
||||
--bg-selected: #35353b;
|
||||
--bg-input: #2e2e32;
|
||||
--bg-elevated: #2c2c30;
|
||||
/* ── Base background (shown through glass) ───────────── */
|
||||
--base-bg: #09090e;
|
||||
|
||||
/* ── Glass surfaces ───────────────────────────────────── */
|
||||
--glass-bg-subtle: rgba(255, 255, 255, 0.02);
|
||||
--glass-bg: rgba(255, 255, 255, 0.04);
|
||||
--glass-bg-raised: rgba(255, 255, 255, 0.06);
|
||||
--glass-bg-hover: rgba(255, 255, 255, 0.07);
|
||||
--glass-bg-active: rgba(255, 255, 255, 0.10);
|
||||
|
||||
/* ── Glass borders ────────────────────────────────────── */
|
||||
--glass-border: rgba(255, 255, 255, 0.07);
|
||||
--glass-border-strong: rgba(255, 255, 255, 0.13);
|
||||
|
||||
/* ── Specular highlight (top edge of glass) ───────────── */
|
||||
--glass-specular: inset 0 1px 0 rgba(255, 255, 255, 0.10);
|
||||
|
||||
/* ── Blur levels ──────────────────────────────────────── */
|
||||
--blur-sm: blur(12px);
|
||||
--blur-md: blur(24px);
|
||||
--blur-lg: blur(40px);
|
||||
--blur-xl: blur(60px);
|
||||
|
||||
/* ── Convenience aliases (legacy compat) ──────────────── */
|
||||
--bg-primary: transparent;
|
||||
--bg-secondary: var(--glass-bg);
|
||||
--bg-tertiary: var(--glass-bg-raised);
|
||||
--bg-hover: var(--glass-bg-hover);
|
||||
--bg-selected: rgba(168, 230, 0, 0.10);
|
||||
--bg-input: rgba(255, 255, 255, 0.07);
|
||||
--bg-elevated: rgba(255, 255, 255, 0.06);
|
||||
--border: var(--glass-border);
|
||||
--border-light: var(--glass-border-strong);
|
||||
|
||||
/* ── Text ────────────────────────────────────────────── */
|
||||
--text-primary: #ececec;
|
||||
--text-secondary: #a0a0aa;
|
||||
--text-muted: #60606a;
|
||||
--text-primary: rgba(255, 255, 255, 0.92);
|
||||
--text-secondary: rgba(255, 255, 255, 0.55);
|
||||
--text-muted: rgba(255, 255, 255, 0.28);
|
||||
|
||||
/* ── Accent (lime) ───────────────────────────────────── */
|
||||
/* ── Accent ──────────────────────────────────────────── */
|
||||
--accent: #a8e600;
|
||||
--accent-hover: #bdff1a;
|
||||
--accent-muted: rgba(168, 230, 0, 0.10);
|
||||
--accent-muted: rgba(168, 230, 0, 0.12);
|
||||
--accent-text: #0d1a00;
|
||||
|
||||
/* ── Borders ─────────────────────────────────────────── */
|
||||
--border: #34343a;
|
||||
--border-light: #46464e;
|
||||
|
||||
/* ── Semantic ─────────────────────────────────────────── */
|
||||
--danger: #f44747;
|
||||
--warning: #e5a000;
|
||||
--danger: #ff5555;
|
||||
--warning: #f0a500;
|
||||
--success: #4ade80;
|
||||
|
||||
/* ── Radius ───────────────────────────────────────────── */
|
||||
--radius-xs: 3px;
|
||||
--radius-sm: 6px;
|
||||
--radius-md: 8px;
|
||||
--radius-lg: 12px;
|
||||
--radius-xl: 16px;
|
||||
--radius-md: 10px;
|
||||
--radius-lg: 14px;
|
||||
--radius-xl: 18px;
|
||||
--radius-full: 9999px;
|
||||
|
||||
/* ── Shadows ──────────────────────────────────────────── */
|
||||
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
|
||||
--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
|
||||
--shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
|
||||
--shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.75);
|
||||
--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
|
||||
--shadow-md: 0 6px 20px rgba(0, 0, 0, 0.45);
|
||||
--shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.55);
|
||||
--shadow-xl: 0 24px 72px rgba(0, 0, 0, 0.70);
|
||||
|
||||
/* ── Dimensions ───────────────────────────────────────── */
|
||||
--titlebar-height: 32px;
|
||||
--statusbar-height: 24px;
|
||||
--sidebar-width: 52px;
|
||||
--folderpane-width: 240px;
|
||||
--titlebar-height: 32px;
|
||||
--statusbar-height: 26px;
|
||||
--sidebar-width: 56px;
|
||||
--folderpane-width: 240px;
|
||||
|
||||
/* ── Typography ───────────────────────────────────────── */
|
||||
--font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, Cantarell, sans-serif;
|
||||
|
|
|
|||
|
|
@ -131,8 +131,9 @@ const isFormValid = computed(() => imapHost.value && imapUsername.value && imapP
|
|||
.dialog-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(0, 0, 0, 0.65);
|
||||
backdrop-filter: blur(4px);
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
backdrop-filter: var(--blur-md);
|
||||
-webkit-backdrop-filter: var(--blur-md);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
|
@ -140,20 +141,25 @@ const isFormValid = computed(() => imapHost.value && imapUsername.value && imapP
|
|||
}
|
||||
|
||||
.dialog {
|
||||
background: var(--bg-elevated);
|
||||
border: 1px solid var(--border-light);
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
backdrop-filter: var(--blur-xl);
|
||||
-webkit-backdrop-filter: var(--blur-xl);
|
||||
border: 1px solid var(--glass-border-strong);
|
||||
border-radius: var(--radius-xl);
|
||||
width: 460px;
|
||||
max-height: 80vh;
|
||||
overflow-y: auto;
|
||||
box-shadow: var(--shadow-xl);
|
||||
box-shadow:
|
||||
var(--glass-specular),
|
||||
var(--shadow-xl),
|
||||
0 0 0 0.5px rgba(255, 255, 255, 0.04) inset;
|
||||
}
|
||||
|
||||
.dialog-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 18px 22px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -113,29 +113,39 @@ function stopResize(): void {
|
|||
.account-bar {
|
||||
width: var(--sidebar-width);
|
||||
flex-shrink: 0;
|
||||
background: var(--bg-primary);
|
||||
border-right: 1px solid var(--border);
|
||||
background: rgba(255, 255, 255, 0.025);
|
||||
backdrop-filter: var(--blur-md);
|
||||
-webkit-backdrop-filter: var(--blur-md);
|
||||
border-right: 1px solid var(--glass-border);
|
||||
}
|
||||
|
||||
.folder-pane {
|
||||
flex-shrink: 0;
|
||||
background: var(--bg-secondary);
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
backdrop-filter: var(--blur-md);
|
||||
-webkit-backdrop-filter: var(--blur-md);
|
||||
overflow-y: auto;
|
||||
min-width: 180px;
|
||||
max-width: 400px;
|
||||
border-right: 1px solid var(--glass-border);
|
||||
}
|
||||
|
||||
.message-pane {
|
||||
flex-shrink: 0;
|
||||
background: var(--bg-secondary);
|
||||
background: rgba(255, 255, 255, 0.025);
|
||||
backdrop-filter: var(--blur-sm);
|
||||
-webkit-backdrop-filter: var(--blur-sm);
|
||||
overflow: hidden;
|
||||
min-width: 240px;
|
||||
max-width: 600px;
|
||||
border-right: 1px solid var(--glass-border);
|
||||
}
|
||||
|
||||
.preview-pane {
|
||||
flex: 1;
|
||||
background: var(--bg-primary);
|
||||
background: rgba(255, 255, 255, 0.015);
|
||||
backdrop-filter: var(--blur-sm);
|
||||
-webkit-backdrop-filter: var(--blur-sm);
|
||||
overflow: hidden;
|
||||
min-width: 0;
|
||||
}
|
||||
|
|
@ -143,13 +153,12 @@ function stopResize(): void {
|
|||
.resize-handle {
|
||||
width: 1px;
|
||||
flex-shrink: 0;
|
||||
background: var(--border);
|
||||
background: transparent;
|
||||
cursor: col-resize;
|
||||
position: relative;
|
||||
transition: background var(--transition-fast);
|
||||
}
|
||||
|
||||
/* wider invisible grab zone */
|
||||
.resize-handle::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
|
|
@ -159,7 +168,7 @@ function stopResize(): void {
|
|||
|
||||
.resize-handle:hover,
|
||||
.resize-handle:active {
|
||||
background: var(--accent);
|
||||
background: rgba(168, 230, 0, 0.4);
|
||||
}
|
||||
|
||||
.statusbar {
|
||||
|
|
@ -172,12 +181,19 @@ function stopResize(): void {
|
|||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: var(--bg-primary);
|
||||
background: transparent;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.empty-content {
|
||||
text-align: center;
|
||||
padding: 48px;
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
backdrop-filter: var(--blur-lg);
|
||||
-webkit-backdrop-filter: var(--blur-lg);
|
||||
border: 1px solid var(--glass-border-strong);
|
||||
border-radius: var(--radius-xl);
|
||||
box-shadow: var(--glass-specular), var(--shadow-xl);
|
||||
}
|
||||
|
||||
.empty-icon {
|
||||
|
|
|
|||
|
|
@ -45,8 +45,11 @@ const isConnected = computed(() => {
|
|||
justify-content: space-between;
|
||||
height: var(--statusbar-height);
|
||||
padding: 0 14px;
|
||||
background: var(--bg-tertiary);
|
||||
border-top: 1px solid var(--border);
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
backdrop-filter: var(--blur-md);
|
||||
-webkit-backdrop-filter: var(--blur-md);
|
||||
border-top: 1px solid var(--glass-border);
|
||||
box-shadow: var(--glass-specular);
|
||||
font-size: 11px;
|
||||
color: var(--text-muted);
|
||||
flex-shrink: 0;
|
||||
|
|
|
|||
|
|
@ -179,9 +179,12 @@ async function handleSwipeAction(action: SwipeAction, messageId: string): Promis
|
|||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 10px 12px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
flex-shrink: 0;
|
||||
gap: 8px;
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
backdrop-filter: var(--blur-sm);
|
||||
-webkit-backdrop-filter: var(--blur-sm);
|
||||
}
|
||||
|
||||
.folder-title {
|
||||
|
|
@ -231,13 +234,13 @@ async function handleSwipeAction(action: SwipeAction, messageId: string): Promis
|
|||
}
|
||||
|
||||
.icon-btn:hover:not(:disabled) {
|
||||
background: var(--bg-hover);
|
||||
background: var(--glass-bg-hover);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.icon-btn.active {
|
||||
color: var(--accent);
|
||||
background: var(--accent-muted);
|
||||
background: rgba(168, 230, 0, 0.12);
|
||||
}
|
||||
|
||||
.icon-btn:disabled {
|
||||
|
|
@ -272,9 +275,11 @@ async function handleSwipeAction(action: SwipeAction, messageId: string): Promis
|
|||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 6px 10px;
|
||||
background: var(--bg-tertiary);
|
||||
border-bottom: 1px solid var(--border);
|
||||
background: rgba(168, 230, 0, 0.05);
|
||||
border-bottom: 1px solid rgba(168, 230, 0, 0.12);
|
||||
flex-shrink: 0;
|
||||
backdrop-filter: var(--blur-sm);
|
||||
-webkit-backdrop-filter: var(--blur-sm);
|
||||
}
|
||||
|
||||
.bulk-count {
|
||||
|
|
@ -285,23 +290,27 @@ async function handleSwipeAction(action: SwipeAction, messageId: string): Promis
|
|||
|
||||
.bulk-btn {
|
||||
font-size: 11px;
|
||||
padding: 3px 8px;
|
||||
padding: 3px 9px;
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--bg-hover);
|
||||
color: var(--text-primary);
|
||||
transition: background var(--transition-fast);
|
||||
background: var(--glass-bg-hover);
|
||||
border: 1px solid var(--glass-border);
|
||||
color: var(--text-secondary);
|
||||
transition: background var(--transition-fast), color var(--transition-fast);
|
||||
}
|
||||
|
||||
.bulk-btn:hover {
|
||||
background: var(--border-light);
|
||||
background: var(--glass-bg-active);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.bulk-btn.danger {
|
||||
color: var(--danger);
|
||||
color: rgba(255, 85, 85, 0.8);
|
||||
border-color: rgba(255, 85, 85, 0.2);
|
||||
}
|
||||
|
||||
.bulk-btn.danger:hover {
|
||||
background: rgba(244, 71, 71, 0.15);
|
||||
background: rgba(255, 85, 85, 0.12);
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
/* Строка "выбрать все" */
|
||||
|
|
@ -310,13 +319,13 @@ async function handleSwipeAction(action: SwipeAction, messageId: string): Promis
|
|||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 6px 10px 6px 5px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
background: var(--bg-tertiary);
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
cursor: pointer;
|
||||
transition: background var(--transition-fast);
|
||||
}
|
||||
.select-all-row:hover {
|
||||
background: var(--bg-hover);
|
||||
background: var(--glass-bg-hover);
|
||||
}
|
||||
|
||||
.select-all-circle {
|
||||
|
|
|
|||
|
|
@ -304,7 +304,7 @@ onUnmounted(() => {
|
|||
.swipe-wrapper {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
border-bottom: 1px solid var(--border);
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
}
|
||||
|
||||
.action-bg {
|
||||
|
|
@ -326,24 +326,26 @@ onUnmounted(() => {
|
|||
width: 100%;
|
||||
padding: 10px 10px 10px 4px;
|
||||
gap: 6px;
|
||||
background: var(--bg-secondary);
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
will-change: transform;
|
||||
touch-action: pan-y;
|
||||
user-select: none;
|
||||
transition: background 0.1s ease;
|
||||
transition: background var(--transition-fast);
|
||||
}
|
||||
.message-item:hover { background: var(--bg-hover); }
|
||||
.message-item:hover { background: var(--glass-bg-hover); }
|
||||
.message-item.selected {
|
||||
background: var(--bg-selected);
|
||||
background: rgba(168, 230, 0, 0.08);
|
||||
border-left: 2px solid var(--accent);
|
||||
padding-left: 2px;
|
||||
box-shadow: inset 0 1px 0 rgba(168, 230, 0, 0.10),
|
||||
inset 0 -1px 0 rgba(168, 230, 0, 0.05);
|
||||
}
|
||||
.message-item.checked {
|
||||
background: color-mix(in srgb, var(--accent) 12%, var(--bg-secondary));
|
||||
background: rgba(168, 230, 0, 0.06);
|
||||
}
|
||||
.message-item.checked:hover {
|
||||
background: color-mix(in srgb, var(--accent) 18%, var(--bg-secondary));
|
||||
background: rgba(168, 230, 0, 0.10);
|
||||
}
|
||||
|
||||
/* Left column: holds either circle-check or unread-dot */
|
||||
|
|
|
|||
|
|
@ -28,25 +28,30 @@ const processedHtml = computed(() => {
|
|||
<meta charset="utf-8">
|
||||
<style>
|
||||
body {
|
||||
background: #1e1e1e;
|
||||
color: #e0e0e0;
|
||||
background: #0d0d11;
|
||||
color: rgba(255,255,255,0.88);
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
font-size: 14px;
|
||||
line-height: 1.6;
|
||||
padding: 16px;
|
||||
line-height: 1.65;
|
||||
padding: 20px 24px;
|
||||
margin: 0;
|
||||
word-wrap: break-word;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
a { color: #a8e600; }
|
||||
img { max-width: 100%; height: auto; }
|
||||
img { max-width: 100%; height: auto; border-radius: 6px; }
|
||||
table { max-width: 100%; }
|
||||
pre, code { background: #2d2d30; padding: 2px 6px; border-radius: 3px; }
|
||||
pre, code {
|
||||
background: rgba(255,255,255,0.07);
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
font-size: 13px;
|
||||
}
|
||||
blockquote {
|
||||
border-left: 3px solid #3e3e42;
|
||||
margin: 8px 0;
|
||||
padding: 4px 12px;
|
||||
color: #a0a0a0;
|
||||
border-left: 3px solid rgba(255,255,255,0.12);
|
||||
margin: 10px 0;
|
||||
padding: 4px 14px;
|
||||
color: rgba(255,255,255,0.45);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
|
@ -68,12 +73,12 @@ const plainTextHtml = computed(() => {
|
|||
<meta charset="utf-8">
|
||||
<style>
|
||||
body {
|
||||
background: #1e1e1e;
|
||||
color: #e0e0e0;
|
||||
background: #0d0d11;
|
||||
color: rgba(255,255,255,0.88);
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
font-size: 14px;
|
||||
line-height: 1.6;
|
||||
padding: 16px;
|
||||
line-height: 1.65;
|
||||
padding: 20px 24px;
|
||||
margin: 0;
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
|
|
@ -113,7 +118,7 @@ const srcdoc = computed(() => processedHtml.value ?? plainTextHtml.value ?? '')
|
|||
width: 100%;
|
||||
height: 100%;
|
||||
border: none;
|
||||
background: var(--bg-primary);
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.no-body {
|
||||
|
|
|
|||
|
|
@ -58,8 +58,11 @@ const dateDisplay = computed(() => formatFullDate(props.message.date))
|
|||
<style scoped>
|
||||
.message-header {
|
||||
padding: 20px 24px 16px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
flex-shrink: 0;
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
backdrop-filter: var(--blur-sm);
|
||||
-webkit-backdrop-filter: var(--blur-sm);
|
||||
}
|
||||
|
||||
.subject {
|
||||
|
|
@ -108,9 +111,11 @@ const dateDisplay = computed(() => formatFullDate(props.message.date))
|
|||
font-size: 11px;
|
||||
padding: 2px 8px;
|
||||
border-radius: var(--radius-full);
|
||||
background: var(--bg-tertiary);
|
||||
background: var(--glass-bg-raised);
|
||||
color: var(--text-secondary);
|
||||
border: 1px solid var(--border);
|
||||
border: 1px solid var(--glass-border);
|
||||
backdrop-filter: var(--blur-sm);
|
||||
-webkit-backdrop-filter: var(--blur-sm);
|
||||
}
|
||||
|
||||
.badge.flagged {
|
||||
|
|
|
|||
|
|
@ -53,7 +53,8 @@ const selectedMessage = computed(() =>
|
|||
|
||||
.no-selection-icon {
|
||||
font-size: 48px;
|
||||
opacity: 0.3;
|
||||
opacity: 0.18;
|
||||
filter: grayscale(1);
|
||||
}
|
||||
|
||||
.loading-body {
|
||||
|
|
|
|||
|
|
@ -71,12 +71,12 @@ function getAccountColor(index: number): string {
|
|||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: var(--radius-sm);
|
||||
border-radius: var(--radius-md);
|
||||
transition: background var(--transition-fast);
|
||||
}
|
||||
|
||||
.account-btn:hover {
|
||||
background: var(--bg-hover);
|
||||
background: var(--glass-bg-hover);
|
||||
}
|
||||
|
||||
.account-avatar {
|
||||
|
|
@ -89,11 +89,19 @@ function getAccountColor(index: number): string {
|
|||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
color: #0d1a00;
|
||||
transition: box-shadow var(--transition-fast);
|
||||
transition: box-shadow var(--transition-fast), filter var(--transition-fast);
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
.account-btn.active .account-avatar {
|
||||
box-shadow: 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--accent);
|
||||
box-shadow:
|
||||
0 0 0 2px rgba(9, 9, 14, 0.8),
|
||||
0 0 0 3.5px var(--accent),
|
||||
0 4px 12px rgba(168, 230, 0, 0.3);
|
||||
}
|
||||
|
||||
.account-btn:not(.active):hover .account-avatar {
|
||||
filter: brightness(1.1);
|
||||
}
|
||||
|
||||
.active-indicator {
|
||||
|
|
|
|||
|
|
@ -81,17 +81,20 @@ function toggleExpand(event: Event): void {
|
|||
gap: 6px;
|
||||
border-radius: var(--radius-sm);
|
||||
margin: 1px 4px;
|
||||
transition: background var(--transition-fast);
|
||||
transition: background var(--transition-fast), box-shadow var(--transition-fast);
|
||||
text-align: left;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.folder-item:hover {
|
||||
background: var(--bg-hover);
|
||||
background: var(--glass-bg-hover);
|
||||
}
|
||||
|
||||
.folder-item.active {
|
||||
background: var(--accent-muted);
|
||||
background: rgba(168, 230, 0, 0.10);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(168, 230, 0, 0.15),
|
||||
inset 0 -1px 0 rgba(168, 230, 0, 0.05);
|
||||
}
|
||||
|
||||
.folder-item.active::before {
|
||||
|
|
@ -103,6 +106,7 @@ function toggleExpand(event: Event): void {
|
|||
width: 3px;
|
||||
background: var(--accent);
|
||||
border-radius: 0 3px 3px 0;
|
||||
box-shadow: 0 0 8px rgba(168, 230, 0, 0.5);
|
||||
}
|
||||
|
||||
.folder-item.active .folder-name {
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ const swipeOptions: SwipeAction[] = ['delete', 'toggleRead', 'toggleFlag', 'none
|
|||
<style scoped>
|
||||
.settings-view {
|
||||
height: 100vh;
|
||||
background: var(--bg-primary);
|
||||
background: transparent;
|
||||
padding: 28px 32px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
|
@ -100,7 +100,8 @@ const swipeOptions: SwipeAction[] = ['delete', 'toggleRead', 'toggleFlag', 'none
|
|||
.back-btn {
|
||||
padding: 6px 12px;
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--bg-tertiary);
|
||||
background: var(--glass-bg-raised);
|
||||
border: 1px solid var(--glass-border);
|
||||
font-size: 12px;
|
||||
color: var(--text-secondary);
|
||||
transition: background var(--transition-fast), color var(--transition-fast);
|
||||
|
|
@ -140,8 +141,11 @@ const swipeOptions: SwipeAction[] = ['delete', 'toggleRead', 'toggleFlag', 'none
|
|||
gap: 12px;
|
||||
padding: 11px 14px;
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border);
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: var(--blur-sm);
|
||||
-webkit-backdrop-filter: var(--blur-sm);
|
||||
border: 1px solid var(--glass-border);
|
||||
box-shadow: var(--glass-specular);
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
|
|
@ -192,22 +196,29 @@ const swipeOptions: SwipeAction[] = ['delete', 'toggleRead', 'toggleFlag', 'none
|
|||
border-radius: var(--radius-md);
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border);
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: var(--blur-sm);
|
||||
-webkit-backdrop-filter: var(--blur-sm);
|
||||
border: 1px solid var(--glass-border);
|
||||
box-shadow: var(--glass-specular);
|
||||
}
|
||||
|
||||
.swipe-arrow {
|
||||
font-size: 16px;
|
||||
color: var(--text-primary);
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.setting-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 10px 12px;
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--bg-secondary);
|
||||
padding: 10px 14px;
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: var(--blur-sm);
|
||||
-webkit-backdrop-filter: var(--blur-sm);
|
||||
border: 1px solid var(--glass-border);
|
||||
box-shadow: var(--glass-specular);
|
||||
margin-bottom: 8px;
|
||||
gap: 12px;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue