feat: редизайн меню настроек в стиле liquid glass
Панель центрирована на экране, стилизована под MessageHeader. Секции оформлены как header-details с hairline-разделителями. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
b7777b9dcb
commit
62648ac76e
3 changed files with 431 additions and 429 deletions
2
.env
2
.env
|
|
@ -1,2 +0,0 @@
|
|||
GMAIL_CLIENT_ID=233300338756-ttspvadueiju25ijthl5tt0mh9t3f221.apps.googleusercontent.com
|
||||
GMAIL_CLIENT_SECRET=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
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
# Google OAuth credentials for Gmail provider
|
||||
# Create your own at https://console.cloud.google.com/apis/credentials
|
||||
GMAIL_CLIENT_ID=your-client-id.apps.googleusercontent.com
|
||||
GMAIL_CLIENT_SECRET=your-client-secret
|
||||
|
|
@ -30,7 +30,6 @@ async function resetDownloadFolder(): Promise<void> {
|
|||
|
||||
function folderDisplayName(path: string): string {
|
||||
if (!path) return ''
|
||||
// Показываем последние 2 сегмента пути для читаемости
|
||||
const parts = path.replace(/\\/g, '/').split('/').filter(Boolean)
|
||||
return parts.length > 2 ? '…/' + parts.slice(-2).join('/') : path
|
||||
}
|
||||
|
|
@ -38,379 +37,483 @@ function folderDisplayName(path: string): string {
|
|||
|
||||
<template>
|
||||
<div class="settings-view">
|
||||
<div class="settings-header">
|
||||
<button class="back-btn" @click="router.push('/')">
|
||||
← Назад
|
||||
</button>
|
||||
<h1>Настройки</h1>
|
||||
<div class="settings-panel">
|
||||
|
||||
<!-- Шапка панели — как заголовок письма -->
|
||||
<div class="panel-header">
|
||||
<button class="back-btn" @click="router.push('/')">
|
||||
<AppIcon name="chevron-right" :size="11" class="back-icon" />
|
||||
Назад
|
||||
</button>
|
||||
<h1 class="panel-title">Настройки</h1>
|
||||
</div>
|
||||
|
||||
<!-- Секции в стиле header-details -->
|
||||
<div class="sections">
|
||||
|
||||
<!-- Аккаунты -->
|
||||
<div class="section">
|
||||
<div class="section-label">Аккаунты</div>
|
||||
<div class="section-body">
|
||||
<template v-if="accountsStore.accounts.length > 0">
|
||||
<div
|
||||
v-for="account in accountsStore.accounts"
|
||||
:key="account.id"
|
||||
class="row account-row"
|
||||
>
|
||||
<div class="account-avatar">{{ account.email[0].toUpperCase() }}</div>
|
||||
<div class="account-meta">
|
||||
<span class="account-email">{{ account.email }}</span>
|
||||
<span class="account-type">{{ account.type }}</span>
|
||||
</div>
|
||||
<div class="row-actions">
|
||||
<button class="action-btn" @click="editingAccount = account">Изменить</button>
|
||||
<button class="action-btn danger" @click="accountsStore.removeAccount(account.id)">Удалить</button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<div v-else class="row">
|
||||
<span class="col-label">Почта</span>
|
||||
<span class="col-value muted">Нет настроенных аккаунтов</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Акцентный цвет -->
|
||||
<div class="section">
|
||||
<div class="section-label">Внешний вид</div>
|
||||
<div class="section-body">
|
||||
<div class="row">
|
||||
<span class="col-label">Акцент</span>
|
||||
<div class="col-value color-row-content">
|
||||
<span
|
||||
class="color-dot"
|
||||
:style="{ background: settingsStore.accentColor }"
|
||||
v-tooltip="settingsStore.accentColor"
|
||||
/>
|
||||
<div class="quick-picks">
|
||||
<button
|
||||
v-for="hex in ACCENT_QUICK_PICKS"
|
||||
:key="hex"
|
||||
class="quick-dot"
|
||||
:class="{ active: settingsStore.accentColor.toLowerCase() === hex.toLowerCase() }"
|
||||
:style="{ '--dot-color': hex }"
|
||||
v-tooltip="hex"
|
||||
@click="settingsStore.accentColor = hex"
|
||||
/>
|
||||
</div>
|
||||
<ColorPicker v-model="settingsStore.accentColor" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row scale-full-row">
|
||||
<span class="col-label">Масштаб</span>
|
||||
<div class="col-value scale-content">
|
||||
<input
|
||||
type="range"
|
||||
class="scale-slider"
|
||||
min="50"
|
||||
max="200"
|
||||
step="5"
|
||||
:value="Math.round(settingsStore.uiScale * 100)"
|
||||
:style="{ '--pct': ((settingsStore.uiScale * 100 - 50) / 150 * 100) + '%' }"
|
||||
@input="settingsStore.uiScale = ($event.target as HTMLInputElement).valueAsNumber / 100"
|
||||
/>
|
||||
<div class="scale-right">
|
||||
<span class="scale-val">{{ Math.round(settingsStore.uiScale * 100) }}%</span>
|
||||
<button
|
||||
v-if="settingsStore.uiScale !== 1"
|
||||
class="scale-reset"
|
||||
v-tooltip="'Сбросить'"
|
||||
@click="settingsStore.uiScale = 1"
|
||||
>↺</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Уведомления -->
|
||||
<div class="section">
|
||||
<div class="section-label">Уведомления</div>
|
||||
<div class="section-body">
|
||||
<div class="row">
|
||||
<span class="col-label">Проверка</span>
|
||||
<div class="col-value">
|
||||
<CustomSelect v-model="settingsStore.autoCheckInterval" :options="AUTO_CHECK_INTERVALS" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Вложения -->
|
||||
<div class="section">
|
||||
<div class="section-label">Вложения</div>
|
||||
<div class="section-body">
|
||||
<div class="row">
|
||||
<span class="col-label">Папка</span>
|
||||
<div class="col-value folder-value">
|
||||
<div class="folder-path-wrap">
|
||||
<AppIcon name="folder" :size="13" class="folder-icon" />
|
||||
<span class="folder-path" v-tooltip="settingsStore.downloadFolder">
|
||||
{{ folderDisplayName(settingsStore.downloadFolder) || '…' }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="row-actions">
|
||||
<button class="action-btn" @click="chooseDownloadFolder">Изменить</button>
|
||||
<button class="action-btn" v-tooltip="'Сбросить в Downloads'" @click="resetDownloadFolder">↺</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Жесты -->
|
||||
<div class="section">
|
||||
<div class="section-label">Жесты</div>
|
||||
<div class="section-body">
|
||||
<div class="row">
|
||||
<span class="col-label">← Влево</span>
|
||||
<div class="col-value">
|
||||
<CustomSelect v-model="settingsStore.swipeLeftAction" :options="swipeOptions" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<span class="col-label">→ Вправо</span>
|
||||
<div class="col-value">
|
||||
<CustomSelect v-model="settingsStore.swipeRightAction" :options="swipeOptions" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="settings-content">
|
||||
<!-- Аккаунты -->
|
||||
<section>
|
||||
<h2>Аккаунты</h2>
|
||||
<div v-for="account in accountsStore.accounts" :key="account.id" class="account-item">
|
||||
<span class="account-email">{{ account.email }}</span>
|
||||
<span class="account-type">{{ account.type }}</span>
|
||||
<button class="edit-btn" @click="editingAccount = account">
|
||||
Редактировать
|
||||
</button>
|
||||
<button class="remove-btn" @click="accountsStore.removeAccount(account.id)">
|
||||
Удалить
|
||||
</button>
|
||||
</div>
|
||||
<p v-if="accountsStore.accounts.length === 0" class="empty-text">
|
||||
Нет настроенных аккаунтов
|
||||
</p>
|
||||
</section>
|
||||
|
||||
<EditAccountDialog
|
||||
v-if="editingAccount"
|
||||
:account="editingAccount"
|
||||
@close="editingAccount = null"
|
||||
/>
|
||||
|
||||
<!-- Акцентный цвет -->
|
||||
<section>
|
||||
<h2>Акцентный цвет</h2>
|
||||
<p class="section-desc">Выберите любой оттенок или используйте быстрый выбор</p>
|
||||
<div class="color-picker-row">
|
||||
<ColorPicker v-model="settingsStore.accentColor" />
|
||||
<div class="quick-picks">
|
||||
<button
|
||||
v-for="hex in ACCENT_QUICK_PICKS"
|
||||
:key="hex"
|
||||
class="quick-dot"
|
||||
:class="{ active: settingsStore.accentColor.toLowerCase() === hex.toLowerCase() }"
|
||||
:style="{ '--dot-color': hex }"
|
||||
v-tooltip="hex"
|
||||
@click="settingsStore.accentColor = hex"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Масштаб интерфейса -->
|
||||
<section>
|
||||
<h2>Масштаб интерфейса</h2>
|
||||
<p class="section-desc">Масштабирует весь интерфейс приложения</p>
|
||||
<div class="scale-row">
|
||||
<input
|
||||
type="range"
|
||||
class="scale-slider"
|
||||
min="50"
|
||||
max="200"
|
||||
step="5"
|
||||
:value="Math.round(settingsStore.uiScale * 100)"
|
||||
:style="{ '--pct': ((settingsStore.uiScale * 100 - 50) / 150 * 100) + '%' }"
|
||||
@input="settingsStore.uiScale = ($event.target as HTMLInputElement).valueAsNumber / 100"
|
||||
/>
|
||||
<div class="scale-value">
|
||||
{{ Math.round(settingsStore.uiScale * 100) }}%
|
||||
<button
|
||||
v-if="settingsStore.uiScale !== 1"
|
||||
class="scale-reset"
|
||||
v-tooltip="'Сбросить'"
|
||||
@click="settingsStore.uiScale = 1"
|
||||
>↺</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="scale-ticks">
|
||||
<span>50%</span>
|
||||
<span>100%</span>
|
||||
<span>150%</span>
|
||||
<span>200%</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Авто-проверка почты -->
|
||||
<section>
|
||||
<h2>Авто-проверка почты</h2>
|
||||
<p class="section-desc">Автоматически проверять новые письма с заданным интервалом</p>
|
||||
<div class="setting-row">
|
||||
<label class="setting-label">Интервал проверки</label>
|
||||
<CustomSelect v-model="settingsStore.autoCheckInterval" :options="AUTO_CHECK_INTERVALS" />
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Вложения -->
|
||||
<section>
|
||||
<h2>Вложения</h2>
|
||||
<p class="section-desc">Файлы будут сохраняться сюда автоматически без диалога</p>
|
||||
<div class="folder-row setting-row">
|
||||
<div class="folder-path">
|
||||
<AppIcon name="folder" :size="14" class="folder-icon" />
|
||||
<span class="folder-name" v-tooltip="settingsStore.downloadFolder">
|
||||
{{ folderDisplayName(settingsStore.downloadFolder) || '…' }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="folder-actions">
|
||||
<button class="folder-btn" @click="chooseDownloadFolder">Изменить</button>
|
||||
<button class="folder-btn reset" v-tooltip="'Сбросить в Downloads'" @click="resetDownloadFolder">↺</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Жесты -->
|
||||
<section>
|
||||
<h2>Жесты</h2>
|
||||
<p class="section-desc">Настройте действия при свайпе по письму</p>
|
||||
|
||||
<div class="swipe-preview">
|
||||
<div class="swipe-demo swipe-left">
|
||||
<span class="swipe-arrow">←</span>
|
||||
<span>Свайп влево</span>
|
||||
</div>
|
||||
<div class="swipe-demo swipe-right">
|
||||
<span>Свайп вправо</span>
|
||||
<span class="swipe-arrow">→</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="setting-row">
|
||||
<label class="setting-label">
|
||||
<span class="swipe-dir">← Свайп влево</span>
|
||||
</label>
|
||||
<CustomSelect v-model="settingsStore.swipeLeftAction" :options="swipeOptions" />
|
||||
</div>
|
||||
|
||||
<div class="setting-row">
|
||||
<label class="setting-label">
|
||||
<span class="swipe-dir">→ Свайп вправо</span>
|
||||
</label>
|
||||
<CustomSelect v-model="settingsStore.swipeRightAction" :options="swipeOptions" />
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<EditAccountDialog
|
||||
v-if="editingAccount"
|
||||
:account="editingAccount"
|
||||
@close="editingAccount = null"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
/* ── Центрирование ───────────────────────────────────────────────────────── */
|
||||
|
||||
.settings-view {
|
||||
height: 100vh;
|
||||
background: transparent;
|
||||
padding: 28px 32px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 20px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.settings-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
margin-bottom: 32px;
|
||||
/* ── Главная панель — стиль MessageHeader ────────────────────────────────── */
|
||||
|
||||
.settings-panel {
|
||||
width: 100%;
|
||||
max-width: 520px;
|
||||
max-height: calc(100vh - 40px);
|
||||
overflow-y: auto;
|
||||
scrollbar-width: none;
|
||||
|
||||
border-radius: 16px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.12);
|
||||
background:
|
||||
linear-gradient(145deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%),
|
||||
rgba(12, 12, 20, 0.82);
|
||||
backdrop-filter: blur(32px) saturate(2.0);
|
||||
-webkit-backdrop-filter: blur(32px) saturate(2.0);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.18),
|
||||
0 8px 40px rgba(0, 0, 0, 0.45),
|
||||
0 2px 10px rgba(0, 0, 0, 0.22);
|
||||
}
|
||||
|
||||
.settings-header h1 {
|
||||
font-size: 18px;
|
||||
.settings-panel::-webkit-scrollbar { display: none; }
|
||||
|
||||
/* ── Заголовок панели — стиль .subject из MessageHeader ─────────────────── */
|
||||
|
||||
.panel-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 18px 20px 16px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.07);
|
||||
}
|
||||
|
||||
.panel-title {
|
||||
font-size: 17px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
letter-spacing: -0.01em;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.back-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
padding: 5px 14px;
|
||||
gap: 3px;
|
||||
padding: 5px 11px;
|
||||
border-radius: var(--radius-full);
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.09),
|
||||
0 2px 6px rgba(0, 0, 0, 0.2);
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
border: 1px solid rgba(255, 255, 255, 0.10);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
color: var(--text-secondary);
|
||||
transition:
|
||||
background var(--transition-fast),
|
||||
border-color var(--transition-fast),
|
||||
color var(--transition-fast),
|
||||
box-shadow var(--transition-fast);
|
||||
border-color var(--transition-fast);
|
||||
}
|
||||
|
||||
.back-btn:hover {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
background: rgba(255, 255, 255, 0.10);
|
||||
border-color: rgba(255, 255, 255, 0.16);
|
||||
color: var(--text-primary);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.12),
|
||||
0 3px 10px rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
|
||||
.back-btn:active {
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
|
||||
transform: translateY(1px);
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
}
|
||||
|
||||
.settings-content {
|
||||
.back-icon {
|
||||
transform: rotate(180deg);
|
||||
opacity: 0.55;
|
||||
margin-right: 1px;
|
||||
}
|
||||
|
||||
/* ── Секции ──────────────────────────────────────────────────────────────── */
|
||||
|
||||
.sections {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 28px;
|
||||
max-width: 500px;
|
||||
}
|
||||
|
||||
/* Каждая секция — glass-панель */
|
||||
.settings-content section {
|
||||
position: relative;
|
||||
padding: 20px 22px;
|
||||
border-radius: var(--radius-xl);
|
||||
background:
|
||||
linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%),
|
||||
rgba(12, 12, 20, 0.55);
|
||||
backdrop-filter: blur(20px) saturate(1.6);
|
||||
-webkit-backdrop-filter: blur(20px) saturate(1.6);
|
||||
border: 1px solid rgba(255, 255, 255, 0.09);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.10),
|
||||
0 4px 20px rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
|
||||
.settings-content section::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 1px;
|
||||
background: rgba(255, 255, 255, 0.12);
|
||||
border-radius: var(--radius-xl) var(--radius-xl) 0 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.settings-content h2 {
|
||||
font-size: 10.5px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 14px;
|
||||
color: var(--text-muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.8px;
|
||||
}
|
||||
|
||||
.section-desc {
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
/* Аккаунты */
|
||||
.account-item {
|
||||
gap: 0;
|
||||
padding: 16px 20px 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 10px 12px;
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
|
||||
margin-bottom: 8px;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.account-email {
|
||||
flex: 1;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.account-type {
|
||||
color: var(--text-muted);
|
||||
.section-label {
|
||||
font-size: 10px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.edit-btn {
|
||||
color: var(--text-secondary);
|
||||
padding: 4px 10px;
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: 12px;
|
||||
transition: background var(--transition-fast);
|
||||
}
|
||||
|
||||
.edit-btn:hover {
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
.remove-btn {
|
||||
color: var(--danger);
|
||||
padding: 4px 10px;
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: 12px;
|
||||
transition: background var(--transition-fast);
|
||||
}
|
||||
|
||||
.remove-btn:hover {
|
||||
background: rgba(244, 71, 71, 0.15);
|
||||
}
|
||||
|
||||
.empty-text {
|
||||
letter-spacing: 0.7px;
|
||||
color: var(--text-muted);
|
||||
font-size: 13px;
|
||||
padding: 0 2px 5px;
|
||||
}
|
||||
|
||||
/* Жесты */
|
||||
.swipe-preview {
|
||||
/* Внутренний блок секции — стиль .header-details из MessageHeader */
|
||||
.section-body {
|
||||
background: rgba(255, 255, 255, 0.055);
|
||||
border: 1px solid rgba(255, 255, 255, 0.11);
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.10),
|
||||
0 4px 16px rgba(0, 0, 0, 0.18);
|
||||
}
|
||||
|
||||
/* Строки — стиль .header-row из MessageHeader */
|
||||
.row {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
margin-bottom: 16px;
|
||||
align-items: center;
|
||||
gap: 0;
|
||||
font-size: 12px;
|
||||
padding: 9px 14px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.055);
|
||||
}
|
||||
|
||||
.swipe-demo {
|
||||
.row:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
/* Метка слева — стиль .label из MessageHeader */
|
||||
.col-label {
|
||||
color: var(--text-muted);
|
||||
min-width: 62px;
|
||||
flex-shrink: 0;
|
||||
font-size: 10px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.6px;
|
||||
padding-top: 1px;
|
||||
}
|
||||
|
||||
/* Значение справа — стиль .value из MessageHeader */
|
||||
.col-value {
|
||||
flex: 1;
|
||||
color: var(--text-secondary);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.col-value.muted {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
/* ── Аккаунты ────────────────────────────────────────────────────────────── */
|
||||
|
||||
.account-row {
|
||||
min-height: 48px;
|
||||
padding: 8px 14px;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.account-avatar {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
border-radius: 50%;
|
||||
background: color-mix(in srgb, var(--accent) 16%, rgba(255, 255, 255, 0.07));
|
||||
border: 1.5px solid color-mix(in srgb, var(--accent) 25%, transparent);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
padding: 10px 14px;
|
||||
border-radius: var(--radius-md);
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
|
||||
font-weight: 700;
|
||||
color: var(--accent);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.swipe-arrow {
|
||||
font-size: 16px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.setting-row {
|
||||
.account-meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 10px 12px;
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
|
||||
margin-bottom: 8px;
|
||||
gap: 12px;
|
||||
flex-direction: column;
|
||||
gap: 1px;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.setting-label {
|
||||
font-size: 13px;
|
||||
.account-email {
|
||||
font-size: 12.5px;
|
||||
color: var(--text-primary);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.account-type {
|
||||
font-size: 9.5px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.row-actions {
|
||||
display: flex;
|
||||
gap: 5px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.action-btn {
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
padding: 3px 10px;
|
||||
border-radius: var(--radius-full);
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
border: 1px solid rgba(255, 255, 255, 0.10);
|
||||
color: var(--text-secondary);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
|
||||
transition:
|
||||
background var(--transition-fast),
|
||||
color var(--transition-fast),
|
||||
border-color var(--transition-fast);
|
||||
}
|
||||
|
||||
.action-btn:hover {
|
||||
background: rgba(255, 255, 255, 0.10);
|
||||
border-color: rgba(255, 255, 255, 0.17);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.swipe-dir {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 12px;
|
||||
.action-btn.danger {
|
||||
color: var(--danger);
|
||||
border-color: rgba(255, 85, 85, 0.18);
|
||||
background: rgba(255, 85, 85, 0.05);
|
||||
}
|
||||
|
||||
.action-btn.danger:hover {
|
||||
background: rgba(255, 85, 85, 0.12);
|
||||
border-color: rgba(255, 85, 85, 0.30);
|
||||
}
|
||||
|
||||
/* Масштаб */
|
||||
.scale-row {
|
||||
/* ── Цвет ────────────────────────────────────────────────────────────────── */
|
||||
|
||||
.color-row-content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
gap: 8px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.color-dot {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border-radius: 50%;
|
||||
flex-shrink: 0;
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.3),
|
||||
0 1px 4px rgba(0, 0, 0, 0.4);
|
||||
border: 1.5px solid rgba(255, 255, 255, 0.18);
|
||||
}
|
||||
|
||||
.quick-picks {
|
||||
display: flex;
|
||||
gap: 5px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.quick-dot {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border-radius: 50%;
|
||||
background: var(--dot-color);
|
||||
border: 1.5px solid transparent;
|
||||
cursor: pointer;
|
||||
box-shadow:
|
||||
0 1px 5px rgba(0, 0, 0, 0.4),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.25);
|
||||
transition:
|
||||
transform var(--transition-fast),
|
||||
box-shadow var(--transition-fast),
|
||||
border-color var(--transition-fast);
|
||||
}
|
||||
|
||||
.quick-dot:hover {
|
||||
transform: scale(1.2);
|
||||
}
|
||||
|
||||
.quick-dot.active {
|
||||
border-color: rgba(255, 255, 255, 0.80);
|
||||
transform: scale(1.15);
|
||||
box-shadow:
|
||||
0 0 0 2px var(--dot-color),
|
||||
0 2px 8px rgba(0, 0, 0, 0.45),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.3);
|
||||
}
|
||||
|
||||
/* ── Масштаб ─────────────────────────────────────────────────────────────── */
|
||||
|
||||
.scale-content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.scale-slider {
|
||||
flex: 1;
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
height: 4px;
|
||||
height: 3px;
|
||||
border-radius: var(--radius-full);
|
||||
background: rgba(255, 255, 255, 0.10);
|
||||
border: none;
|
||||
|
|
@ -421,7 +524,7 @@ function folderDisplayName(path: string): string {
|
|||
}
|
||||
|
||||
.scale-slider::-webkit-slider-runnable-track {
|
||||
height: 4px;
|
||||
height: 3px;
|
||||
border-radius: var(--radius-full);
|
||||
background: linear-gradient(
|
||||
to right,
|
||||
|
|
@ -433,44 +536,46 @@ function folderDisplayName(path: string): string {
|
|||
.scale-slider::-webkit-slider-thumb {
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border-radius: 50%;
|
||||
background: rgba(255, 255, 255, 0.95);
|
||||
background: #fff;
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 1),
|
||||
0 2px 8px rgba(0, 0, 0, 0.45),
|
||||
0 0 0 1px rgba(0, 0, 0, 0.15);
|
||||
0 2px 6px rgba(0, 0, 0, 0.45),
|
||||
0 0 0 1px rgba(0, 0, 0, 0.12);
|
||||
cursor: pointer;
|
||||
margin-top: -7px;
|
||||
margin-top: -6.5px;
|
||||
transition: transform var(--transition-fast), box-shadow var(--transition-fast);
|
||||
}
|
||||
|
||||
.scale-slider::-webkit-slider-thumb:hover {
|
||||
transform: scale(1.15);
|
||||
transform: scale(1.2);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 1),
|
||||
0 3px 12px rgba(0, 0, 0, 0.5),
|
||||
0 3px 10px rgba(0, 0, 0, 0.5),
|
||||
0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
|
||||
}
|
||||
|
||||
.scale-slider::-webkit-slider-thumb:active {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
.scale-value {
|
||||
.scale-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
min-width: 52px;
|
||||
font-size: 13px;
|
||||
gap: 5px;
|
||||
flex-shrink: 0;
|
||||
min-width: 46px;
|
||||
}
|
||||
|
||||
.scale-val {
|
||||
font-size: 11.5px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
color: var(--text-secondary);
|
||||
font-variant-numeric: tabular-nums;
|
||||
text-align: right;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.scale-reset {
|
||||
font-size: 14px;
|
||||
font-size: 13px;
|
||||
color: var(--text-muted);
|
||||
line-height: 1;
|
||||
transition: color var(--transition-fast), transform var(--transition-fast);
|
||||
|
|
@ -481,129 +586,32 @@ function folderDisplayName(path: string): string {
|
|||
transform: rotate(-30deg);
|
||||
}
|
||||
|
||||
.scale-ticks {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-top: 6px;
|
||||
padding: 0 1px;
|
||||
font-size: 10px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
/* ── Папка ───────────────────────────────────────────────────────────────── */
|
||||
|
||||
/* Color picker */
|
||||
.color-picker-row {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
.folder-value {
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
/* Быстрый выбор цвета */
|
||||
.quick-picks {
|
||||
.folder-path-wrap {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
align-items: center;
|
||||
padding: 10px 14px;
|
||||
border-radius: var(--radius-lg);
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
border: 1px solid rgba(255, 255, 255, 0.07);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.quick-dot {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border-radius: 50%;
|
||||
background: var(--dot-color);
|
||||
border: 1.5px solid rgba(255, 255, 255, 0.0);
|
||||
cursor: pointer;
|
||||
transition:
|
||||
transform var(--transition-fast),
|
||||
box-shadow var(--transition-fast),
|
||||
border-color var(--transition-fast);
|
||||
box-shadow:
|
||||
0 2px 8px rgba(0,0,0,0.45),
|
||||
inset 0 1px 0 rgba(255,255,255,0.25);
|
||||
}
|
||||
.quick-dot:hover {
|
||||
transform: scale(1.18);
|
||||
box-shadow:
|
||||
0 4px 14px rgba(0,0,0,0.5),
|
||||
inset 0 1px 0 rgba(255,255,255,0.3);
|
||||
}
|
||||
.quick-dot.active {
|
||||
border-color: rgba(255,255,255,0.80);
|
||||
transform: scale(1.12);
|
||||
box-shadow:
|
||||
0 0 0 2px var(--dot-color),
|
||||
0 4px 14px rgba(0,0,0,0.5),
|
||||
inset 0 1px 0 rgba(255,255,255,0.3);
|
||||
}
|
||||
|
||||
/* Папка загрузок */
|
||||
.folder-row {
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.folder-path {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.folder-icon {
|
||||
flex-shrink: 0;
|
||||
color: var(--text-muted);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.folder-name {
|
||||
font-size: 12px;
|
||||
.folder-path {
|
||||
font-size: 11.5px;
|
||||
color: var(--text-secondary);
|
||||
font-family: var(--font-mono);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
.folder-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.folder-btn {
|
||||
font-size: 11.5px;
|
||||
font-weight: 500;
|
||||
padding: 4px 12px;
|
||||
border-radius: var(--radius-full);
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
border: 1px solid rgba(255, 255, 255, 0.10);
|
||||
color: var(--text-secondary);
|
||||
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);
|
||||
}
|
||||
|
||||
.folder-btn:hover {
|
||||
background: rgba(255, 255, 255, 0.10);
|
||||
border-color: rgba(255, 255, 255, 0.18);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.folder-btn.reset {
|
||||
padding: 4px 9px;
|
||||
font-size: 14px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.folder-btn.reset:hover {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Reference in a new issue