mirror of
https://github.com/shuaiplus/nodewarden.git
synced 2026-06-20 13:00:39 +00:00
Refactor frontend styles toward Tailwind utilities and unified design system
This commit is contained in:
@@ -155,6 +155,7 @@ export default function App() {
|
|||||||
|
|
||||||
const [confirm, setConfirm] = useState<AppConfirmState | null>(null);
|
const [confirm, setConfirm] = useState<AppConfirmState | null>(null);
|
||||||
const [mobileLayout, setMobileLayout] = useState(false);
|
const [mobileLayout, setMobileLayout] = useState(false);
|
||||||
|
const [mobileSidebarToggleKey, setMobileSidebarToggleKey] = useState(0);
|
||||||
const [decryptedFolders, setDecryptedFolders] = useState<VaultFolder[]>([]);
|
const [decryptedFolders, setDecryptedFolders] = useState<VaultFolder[]>([]);
|
||||||
const [decryptedCiphers, setDecryptedCiphers] = useState<Cipher[]>([]);
|
const [decryptedCiphers, setDecryptedCiphers] = useState<Cipher[]>([]);
|
||||||
const [decryptedSends, setDecryptedSends] = useState<Send[]>([]);
|
const [decryptedSends, setDecryptedSends] = useState<Send[]>([]);
|
||||||
@@ -1198,6 +1199,7 @@ export default function App() {
|
|||||||
profile,
|
profile,
|
||||||
session,
|
session,
|
||||||
mobileLayout,
|
mobileLayout,
|
||||||
|
mobileSidebarToggleKey,
|
||||||
importRoute: IMPORT_ROUTE,
|
importRoute: IMPORT_ROUTE,
|
||||||
settingsHomeRoute: SETTINGS_HOME_ROUTE,
|
settingsHomeRoute: SETTINGS_HOME_ROUTE,
|
||||||
settingsAccountRoute: SETTINGS_ACCOUNT_ROUTE,
|
settingsAccountRoute: SETTINGS_ACCOUNT_ROUTE,
|
||||||
@@ -1403,6 +1405,7 @@ export default function App() {
|
|||||||
onLock={handleLock}
|
onLock={handleLock}
|
||||||
onLogout={handleLogout}
|
onLogout={handleLogout}
|
||||||
onToggleTheme={handleToggleTheme}
|
onToggleTheme={handleToggleTheme}
|
||||||
|
onToggleMobileSidebar={() => setMobileSidebarToggleKey((key) => key + 1)}
|
||||||
mainRoutesProps={mainRoutesProps}
|
mainRoutesProps={mainRoutesProps}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ interface AppAuthenticatedShellProps {
|
|||||||
onLock: () => void;
|
onLock: () => void;
|
||||||
onLogout: () => void;
|
onLogout: () => void;
|
||||||
onToggleTheme: () => void;
|
onToggleTheme: () => void;
|
||||||
|
onToggleMobileSidebar: () => void;
|
||||||
mainRoutesProps: AppMainRoutesProps;
|
mainRoutesProps: AppMainRoutesProps;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -51,7 +52,7 @@ export default function AppAuthenticatedShell(props: AppAuthenticatedShellProps)
|
|||||||
className="btn btn-secondary small mobile-sidebar-toggle"
|
className="btn btn-secondary small mobile-sidebar-toggle"
|
||||||
aria-label={props.sidebarToggleTitle}
|
aria-label={props.sidebarToggleTitle}
|
||||||
title={props.sidebarToggleTitle}
|
title={props.sidebarToggleTitle}
|
||||||
onClick={() => window.dispatchEvent(new CustomEvent('nodewarden:toggle-sidebar'))}
|
onClick={props.onToggleMobileSidebar}
|
||||||
>
|
>
|
||||||
<FolderIcon size={16} className="btn-icon" />
|
<FolderIcon size={16} className="btn-icon" />
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ export default function AppGlobalOverlays(props: AppGlobalOverlaysProps) {
|
|||||||
<span>{t('txt_totp_code')}</span>
|
<span>{t('txt_totp_code')}</span>
|
||||||
<input className="input" value={props.totpCode} autoComplete="one-time-code" onInput={(e) => props.onTotpCodeChange((e.currentTarget as HTMLInputElement).value)} />
|
<input className="input" value={props.totpCode} autoComplete="one-time-code" onInput={(e) => props.onTotpCodeChange((e.currentTarget as HTMLInputElement).value)} />
|
||||||
</label>
|
</label>
|
||||||
<label className="check-line" style={{ marginBottom: 0 }}>
|
<label className="check-line check-line-compact">
|
||||||
<input type="checkbox" checked={props.rememberDevice} onChange={(e) => props.onRememberDeviceChange((e.currentTarget as HTMLInputElement).checked)} />
|
<input type="checkbox" checked={props.rememberDevice} onChange={(e) => props.onRememberDeviceChange((e.currentTarget as HTMLInputElement).checked)} />
|
||||||
<span>{t('txt_trust_this_device_for_30_days')}</span>
|
<span>{t('txt_trust_this_device_for_30_days')}</span>
|
||||||
</label>
|
</label>
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ export interface AppMainRoutesProps {
|
|||||||
profile: Profile | null;
|
profile: Profile | null;
|
||||||
session: SessionState | null;
|
session: SessionState | null;
|
||||||
mobileLayout: boolean;
|
mobileLayout: boolean;
|
||||||
|
mobileSidebarToggleKey: number;
|
||||||
importRoute: string;
|
importRoute: string;
|
||||||
settingsHomeRoute: string;
|
settingsHomeRoute: string;
|
||||||
settingsAccountRoute: string;
|
settingsAccountRoute: string;
|
||||||
@@ -167,6 +168,7 @@ export default function AppMainRoutes(props: AppMainRoutesProps) {
|
|||||||
onBulkDelete={props.onBulkDeleteSends}
|
onBulkDelete={props.onBulkDeleteSends}
|
||||||
uploadingSendFileName={props.uploadingSendFileName}
|
uploadingSendFileName={props.uploadingSendFileName}
|
||||||
sendUploadPercent={props.sendUploadPercent}
|
sendUploadPercent={props.sendUploadPercent}
|
||||||
|
mobileSidebarToggleKey={props.mobileSidebarToggleKey}
|
||||||
onNotify={props.onNotify}
|
onNotify={props.onNotify}
|
||||||
/>
|
/>
|
||||||
</Suspense>
|
</Suspense>
|
||||||
@@ -206,6 +208,7 @@ export default function AppMainRoutes(props: AppMainRoutesProps) {
|
|||||||
attachmentDownloadPercent={props.attachmentDownloadPercent}
|
attachmentDownloadPercent={props.attachmentDownloadPercent}
|
||||||
uploadingAttachmentName={props.uploadingAttachmentName}
|
uploadingAttachmentName={props.uploadingAttachmentName}
|
||||||
attachmentUploadPercent={props.attachmentUploadPercent}
|
attachmentUploadPercent={props.attachmentUploadPercent}
|
||||||
|
mobileSidebarToggleKey={props.mobileSidebarToggleKey}
|
||||||
/>
|
/>
|
||||||
</Suspense>
|
</Suspense>
|
||||||
</Route>
|
</Route>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { useEffect, useState } from 'preact/hooks';
|
import { useEffect, useRef, useState } from 'preact/hooks';
|
||||||
import { Download, Eye, Lock } from 'lucide-preact';
|
import { Download, Eye, Lock } from 'lucide-preact';
|
||||||
import { accessPublicSend, accessPublicSendFile, decryptPublicSend, decryptPublicSendFileBytes } from '@/lib/api/send';
|
import { accessPublicSend, accessPublicSendFile, decryptPublicSend, decryptPublicSendFileBytes } from '@/lib/api/send';
|
||||||
import { toBufferSource } from '@/lib/crypto';
|
import { toBufferSource } from '@/lib/crypto';
|
||||||
@@ -11,29 +11,95 @@ interface PublicSendPageProps {
|
|||||||
keyPart: string | null;
|
keyPart: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface PublicSendFileData {
|
||||||
|
id: string;
|
||||||
|
fileName?: string | null;
|
||||||
|
sizeName?: string | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface PublicSendData {
|
||||||
|
id: string;
|
||||||
|
type: 0 | 1;
|
||||||
|
decName?: string | null;
|
||||||
|
decText?: string | null;
|
||||||
|
decFileName?: string | null;
|
||||||
|
expirationDate?: string | null;
|
||||||
|
file?: PublicSendFileData | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
function asRecord(value: unknown): Record<string, unknown> | null {
|
||||||
|
return value && typeof value === 'object' ? value as Record<string, unknown> : null;
|
||||||
|
}
|
||||||
|
|
||||||
|
function optionalString(value: unknown): string | null {
|
||||||
|
return typeof value === 'string' ? value : null;
|
||||||
|
}
|
||||||
|
|
||||||
|
function parsePublicSendData(value: unknown): PublicSendData | null {
|
||||||
|
const source = asRecord(value);
|
||||||
|
if (!source) return null;
|
||||||
|
const id = optionalString(source.id);
|
||||||
|
const rawType = Number(source.type);
|
||||||
|
if (!id || (rawType !== 0 && rawType !== 1)) return null;
|
||||||
|
|
||||||
|
const fileSource = asRecord(source.file);
|
||||||
|
const fileId = optionalString(fileSource?.id);
|
||||||
|
const file = fileSource && fileId
|
||||||
|
? {
|
||||||
|
id: fileId,
|
||||||
|
fileName: optionalString(fileSource.fileName),
|
||||||
|
sizeName: optionalString(fileSource.sizeName),
|
||||||
|
}
|
||||||
|
: null;
|
||||||
|
if (rawType === 1 && !file) return null;
|
||||||
|
|
||||||
|
return {
|
||||||
|
id,
|
||||||
|
type: rawType,
|
||||||
|
decName: optionalString(source.decName),
|
||||||
|
decText: optionalString(source.decText),
|
||||||
|
decFileName: optionalString(source.decFileName),
|
||||||
|
expirationDate: optionalString(source.expirationDate),
|
||||||
|
file,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
export default function PublicSendPage(props: PublicSendPageProps) {
|
export default function PublicSendPage(props: PublicSendPageProps) {
|
||||||
const [loading, setLoading] = useState(true);
|
const [loading, setLoading] = useState(true);
|
||||||
const [password, setPassword] = useState('');
|
const [password, setPassword] = useState('');
|
||||||
const [needPassword, setNeedPassword] = useState(false);
|
const [needPassword, setNeedPassword] = useState(false);
|
||||||
const [error, setError] = useState('');
|
const [error, setError] = useState('');
|
||||||
const [sendData, setSendData] = useState<any>(null);
|
const [sendData, setSendData] = useState<PublicSendData | null>(null);
|
||||||
const [busy, setBusy] = useState(false);
|
const [busy, setBusy] = useState(false);
|
||||||
const [downloadPercent, setDownloadPercent] = useState<number | null>(null);
|
const [downloadPercent, setDownloadPercent] = useState<number | null>(null);
|
||||||
|
const loadRequestRef = useRef(0);
|
||||||
|
const loadAbortRef = useRef<AbortController | null>(null);
|
||||||
|
|
||||||
async function loadSend(pass?: string): Promise<void> {
|
async function loadSend(pass?: string): Promise<void> {
|
||||||
|
loadAbortRef.current?.abort();
|
||||||
|
const controller = new AbortController();
|
||||||
|
const requestId = loadRequestRef.current + 1;
|
||||||
|
loadRequestRef.current = requestId;
|
||||||
|
loadAbortRef.current = controller;
|
||||||
setBusy(true);
|
setBusy(true);
|
||||||
setError('');
|
setError('');
|
||||||
|
setLoading(true);
|
||||||
try {
|
try {
|
||||||
const data = await accessPublicSend(props.accessId, props.keyPart, pass);
|
const data = await accessPublicSend(props.accessId, props.keyPart, pass, { signal: controller.signal });
|
||||||
|
if (controller.signal.aborted || requestId !== loadRequestRef.current) return;
|
||||||
if (!props.keyPart) {
|
if (!props.keyPart) {
|
||||||
setError(t('txt_this_link_is_missing_decryption_key'));
|
setError(t('txt_this_link_is_missing_decryption_key'));
|
||||||
setSendData(null);
|
setSendData(null);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const decrypted = await decryptPublicSend(data, props.keyPart);
|
const decrypted = await decryptPublicSend(data, props.keyPart);
|
||||||
setSendData(decrypted);
|
if (controller.signal.aborted || requestId !== loadRequestRef.current) return;
|
||||||
|
const parsed = parsePublicSendData(decrypted);
|
||||||
|
if (!parsed) throw new Error(t('txt_send_unavailable'));
|
||||||
|
setSendData(parsed);
|
||||||
setNeedPassword(false);
|
setNeedPassword(false);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
if (controller.signal.aborted || requestId !== loadRequestRef.current) return;
|
||||||
const err = e as Error & { status?: number };
|
const err = e as Error & { status?: number };
|
||||||
if (err.status === 401) {
|
if (err.status === 401) {
|
||||||
setNeedPassword(true);
|
setNeedPassword(true);
|
||||||
@@ -43,6 +109,7 @@ export default function PublicSendPage(props: PublicSendPageProps) {
|
|||||||
}
|
}
|
||||||
setSendData(null);
|
setSendData(null);
|
||||||
} finally {
|
} finally {
|
||||||
|
if (controller.signal.aborted || requestId !== loadRequestRef.current) return;
|
||||||
setBusy(false);
|
setBusy(false);
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
}
|
}
|
||||||
@@ -86,6 +153,9 @@ export default function PublicSendPage(props: PublicSendPageProps) {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
void loadSend();
|
void loadSend();
|
||||||
|
return () => {
|
||||||
|
loadAbortRef.current?.abort();
|
||||||
|
};
|
||||||
}, [props.accessId, props.keyPart]);
|
}, [props.accessId, props.keyPart]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -120,13 +190,13 @@ export default function PublicSendPage(props: PublicSendPageProps) {
|
|||||||
|
|
||||||
{!loading && sendData && (
|
{!loading && sendData && (
|
||||||
<>
|
<>
|
||||||
<h2 style={{ marginTop: '8px' }}>{sendData.decName || t('txt_no_name')}</h2>
|
<h2 className="public-send-title">{sendData.decName || t('txt_no_name')}</h2>
|
||||||
{sendData.type === 0 ? (
|
{sendData.type === 0 ? (
|
||||||
<div className="card" style={{ marginTop: '10px' }}>
|
<div className="card public-send-card">
|
||||||
<div className="notes">{sendData.decText || ''}</div>
|
<div className="notes">{sendData.decText || ''}</div>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="card" style={{ marginTop: '10px' }}>
|
<div className="card public-send-card">
|
||||||
<div className="kv-line">
|
<div className="kv-line">
|
||||||
<span>{t('txt_file')}</span>
|
<span>{t('txt_file')}</span>
|
||||||
<strong>{sendData.decFileName || sendData.file?.fileName || sendData.file?.sizeName || t('txt_encrypted_file')}</strong>
|
<strong>{sendData.decFileName || sendData.file?.fileName || sendData.file?.sizeName || t('txt_encrypted_file')}</strong>
|
||||||
@@ -142,7 +212,7 @@ export default function PublicSendPage(props: PublicSendPageProps) {
|
|||||||
|
|
||||||
{!loading && !sendData && !needPassword && !error && (
|
{!loading && !sendData && !needPassword && !error && (
|
||||||
<p className="muted">
|
<p className="muted">
|
||||||
<Eye size={14} style={{ verticalAlign: 'text-bottom' }} /> {t('txt_send_unavailable')}
|
<Eye size={14} className="inline-status-icon" /> {t('txt_send_unavailable')}
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
{!!error && <p className="local-error">{error}</p>}
|
{!!error && <p className="local-error">{error}</p>}
|
||||||
|
|||||||
@@ -66,8 +66,8 @@ export default function SecurityDevicesPage(props: SecurityDevicesPageProps) {
|
|||||||
<section className="card">
|
<section className="card">
|
||||||
<div className="section-head">
|
<div className="section-head">
|
||||||
<div>
|
<div>
|
||||||
<h3 style={{ margin: 0 }}>{t('txt_device_management')}</h3>
|
<h3 className="flush-title">{t('txt_device_management')}</h3>
|
||||||
<div className="muted-inline" style={{ marginTop: 4 }}>
|
<div className="muted-inline section-note">
|
||||||
{t('txt_manage_device_sessions_and_30_day_totp_trusted_sessions')}
|
{t('txt_manage_device_sessions_and_30_day_totp_trusted_sessions')}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -89,7 +89,7 @@ export default function SecurityDevicesPage(props: SecurityDevicesPageProps) {
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section className="card">
|
<section className="card">
|
||||||
<h3 style={{ marginTop: 0 }}>{t('txt_authorized_devices')}</h3>
|
<h3 className="section-title-flush">{t('txt_authorized_devices')}</h3>
|
||||||
<table className="table">
|
<table className="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -169,7 +169,7 @@ export default function SecurityDevicesPage(props: SecurityDevicesPageProps) {
|
|||||||
{!props.loading && props.devices.length === 0 && (
|
{!props.loading && props.devices.length === 0 && (
|
||||||
<tr>
|
<tr>
|
||||||
<td colSpan={7}>
|
<td colSpan={7}>
|
||||||
<div className="empty" style={{ minHeight: 80 }}>{t('txt_no_devices_found')}</div>
|
<div className="empty empty-comfortable">{t('txt_no_devices_found')}</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ interface SendsPageProps {
|
|||||||
onBulkDelete: (ids: string[]) => Promise<void>;
|
onBulkDelete: (ids: string[]) => Promise<void>;
|
||||||
uploadingSendFileName: string;
|
uploadingSendFileName: string;
|
||||||
sendUploadPercent: number | null;
|
sendUploadPercent: number | null;
|
||||||
|
mobileSidebarToggleKey: number;
|
||||||
onNotify: (type: 'success' | 'error', text: string) => void;
|
onNotify: (type: 'success' | 'error', text: string) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -107,12 +108,9 @@ export default function SendsPage(props: SendsPageProps) {
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const onToggleSidebar = () => {
|
if (!props.mobileSidebarToggleKey) return;
|
||||||
setMobileSidebarOpen((open) => !open);
|
setMobileSidebarOpen((open) => !open);
|
||||||
};
|
}, [props.mobileSidebarToggleKey]);
|
||||||
window.addEventListener('nodewarden:toggle-sidebar', onToggleSidebar);
|
|
||||||
return () => window.removeEventListener('nodewarden:toggle-sidebar', onToggleSidebar);
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
try {
|
try {
|
||||||
@@ -325,8 +323,7 @@ export default function SendsPage(props: SendsPageProps) {
|
|||||||
{filteredSends.map((send, index) => (
|
{filteredSends.map((send, index) => (
|
||||||
<div
|
<div
|
||||||
key={send.id}
|
key={send.id}
|
||||||
className={`list-item stagger-item ${selectedId === send.id ? 'active' : ''}`}
|
className={`list-item stagger-item stagger-delay-${Math.min(index, 10)} ${selectedId === send.id ? 'active' : ''}`}
|
||||||
style={{ animationDelay: `${Math.min(index, 10) * 26}ms` }}
|
|
||||||
onClick={(event) => {
|
onClick={(event) => {
|
||||||
const target = event.target as HTMLElement;
|
const target = event.target as HTMLElement;
|
||||||
if (target.closest('.row-check')) return;
|
if (target.closest('.row-check')) return;
|
||||||
@@ -405,7 +402,7 @@ export default function SendsPage(props: SendsPageProps) {
|
|||||||
)}
|
)}
|
||||||
{isEditing && draft && (
|
{isEditing && draft && (
|
||||||
<div key={`send-editor-${draft.id || selectedSend?.id || 'new'}-${draft.type}`} className="detail-switch-stage">
|
<div key={`send-editor-${draft.id || selectedSend?.id || 'new'}-${draft.type}`} className="detail-switch-stage">
|
||||||
<div className="card stagger-item" style={{ animationDelay: '0ms' }}>
|
<div className="card stagger-item stagger-delay-0">
|
||||||
<h3 className="detail-title">{isCreating ? t('txt_new_send') : t('txt_edit_send')}</h3>
|
<h3 className="detail-title">{isCreating ? t('txt_new_send') : t('txt_edit_send')}</h3>
|
||||||
{!!props.uploadingSendFileName && <div className="detail-sub">{sendUploadLabel}</div>}
|
{!!props.uploadingSendFileName && <div className="detail-sub">{sendUploadLabel}</div>}
|
||||||
<div className="field-grid">
|
<div className="field-grid">
|
||||||
@@ -505,12 +502,12 @@ export default function SendsPage(props: SendsPageProps) {
|
|||||||
|
|
||||||
{!isEditing && selectedSend && (
|
{!isEditing && selectedSend && (
|
||||||
<div key={`send-detail-${selectedSend.id}`} className="detail-switch-stage">
|
<div key={`send-detail-${selectedSend.id}`} className="detail-switch-stage">
|
||||||
<div className="card stagger-item" style={{ animationDelay: '36ms' }}>
|
<div className="card stagger-item stagger-delay-1">
|
||||||
<h3 className="detail-title">{selectedSend.decName || t('txt_no_name')}</h3>
|
<h3 className="detail-title">{selectedSend.decName || t('txt_no_name')}</h3>
|
||||||
<div className="detail-sub">{Number(selectedSend.type) === 1 ? t('txt_file_send') : t('txt_text_send')}</div>
|
<div className="detail-sub">{Number(selectedSend.type) === 1 ? t('txt_file_send') : t('txt_text_send')}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="card stagger-item" style={{ animationDelay: '72ms' }}>
|
<div className="card stagger-item stagger-delay-2">
|
||||||
<h4>{t('txt_send_details')}</h4>
|
<h4>{t('txt_send_details')}</h4>
|
||||||
<div className="kv-line"><span>{t('txt_access_count')}</span><strong>{selectedSend.accessCount || 0}</strong></div>
|
<div className="kv-line"><span>{t('txt_access_count')}</span><strong>{selectedSend.accessCount || 0}</strong></div>
|
||||||
<div className="kv-line"><span>{t('txt_deletion_date')}</span><strong>{selectedSend.deletionDate || t('txt_dash')}</strong></div>
|
<div className="kv-line"><span>{t('txt_deletion_date')}</span><strong>{selectedSend.deletionDate || t('txt_dash')}</strong></div>
|
||||||
@@ -533,7 +530,7 @@ export default function SendsPage(props: SendsPageProps) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{!!(selectedSend.decNotes || '').trim() && (
|
{!!(selectedSend.decNotes || '').trim() && (
|
||||||
<div className="card stagger-item" style={{ animationDelay: '108ms' }}>
|
<div className="card stagger-item stagger-delay-3">
|
||||||
<h4>{t('txt_notes')}</h4>
|
<h4>{t('txt_notes')}</h4>
|
||||||
<div className="notes">{selectedSend.decNotes || ''}</div>
|
<div className="notes">{selectedSend.decNotes || ''}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -268,7 +268,7 @@ export default function SettingsPage(props: SettingsPageProps) {
|
|||||||
|
|
||||||
<div className="settings-subcard">
|
<div className="settings-subcard">
|
||||||
<h3>{t('txt_recovery_code')}</h3>
|
<h3>{t('txt_recovery_code')}</h3>
|
||||||
<p className="muted-inline" style={{ marginBottom: 8 }}>
|
<p className="muted-inline settings-field-note">
|
||||||
{t('txt_this_is_a_one_time_code_after_it_is_used_a_new_code_is_generated_automatically')}
|
{t('txt_this_is_a_one_time_code_after_it_is_used_a_new_code_is_generated_automatically')}
|
||||||
</p>
|
</p>
|
||||||
<label className="field">
|
<label className="field">
|
||||||
@@ -298,8 +298,8 @@ export default function SettingsPage(props: SettingsPageProps) {
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{recoveryCode && (
|
{recoveryCode && (
|
||||||
<div className="card" style={{ marginTop: 10, marginBottom: 0 }}>
|
<div className="card recovery-code-card">
|
||||||
<div style={{ fontWeight: 800, letterSpacing: '0.08em' }}>{recoveryCode}</div>
|
<div className="recovery-code-value">{recoveryCode}</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
@@ -341,30 +341,13 @@ export default function SettingsPage(props: SettingsPageProps) {
|
|||||||
onConfirm={() => setApiKeyDialogOpen(false)}
|
onConfirm={() => setApiKeyDialogOpen(false)}
|
||||||
onCancel={() => setApiKeyDialogOpen(false)}
|
onCancel={() => setApiKeyDialogOpen(false)}
|
||||||
>
|
>
|
||||||
<div
|
<div className="api-key-warning-panel">
|
||||||
style={{
|
<div className="api-key-warning-title">{t('txt_warning')}</div>
|
||||||
border: '1px solid color-mix(in srgb, var(--danger) 24%, transparent)',
|
<div className="api-key-warning-body">{t('txt_api_key_warning_body')}</div>
|
||||||
background: 'color-mix(in srgb, var(--danger) 7%, var(--surface))',
|
|
||||||
borderRadius: 8,
|
|
||||||
padding: 14,
|
|
||||||
marginTop: 12,
|
|
||||||
marginBottom: 14,
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<div style={{ fontWeight: 800, color: 'var(--danger)', marginBottom: 8 }}>{t('txt_warning')}</div>
|
|
||||||
<div style={{ color: 'var(--text)', lineHeight: 1.55 }}>{t('txt_api_key_warning_body')}</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div className="api-key-credentials-panel">
|
||||||
style={{
|
<div className="api-key-credentials-title">
|
||||||
border: '1px solid color-mix(in srgb, var(--primary) 25%, transparent)',
|
|
||||||
background: 'color-mix(in srgb, var(--primary) 7%, var(--surface))',
|
|
||||||
borderRadius: 8,
|
|
||||||
padding: 14,
|
|
||||||
marginBottom: 10,
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<div style={{ display: 'flex', alignItems: 'center', gap: 8, fontWeight: 800, color: 'var(--primary)', marginBottom: 10 }}>
|
|
||||||
<KeyRound size={15} />
|
<KeyRound size={15} />
|
||||||
<span>{t('txt_oauth_client_credentials')}</span>
|
<span>{t('txt_oauth_client_credentials')}</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -376,7 +359,7 @@ export default function SettingsPage(props: SettingsPageProps) {
|
|||||||
] as [string, string][]).map(([label, value]) => (
|
] as [string, string][]).map(([label, value]) => (
|
||||||
<label key={label} className="field">
|
<label key={label} className="field">
|
||||||
<span>{label}</span>
|
<span>{label}</span>
|
||||||
<div style={{ display: 'grid', gridTemplateColumns: 'minmax(0, 1fr) auto', gap: 8 }}>
|
<div className="api-key-credential-row">
|
||||||
<input className="input" readOnly value={value} onFocus={(e) => (e.currentTarget as HTMLInputElement).select()} />
|
<input className="input" readOnly value={value} onFocus={(e) => (e.currentTarget as HTMLInputElement).select()} />
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ interface VaultPageProps {
|
|||||||
attachmentDownloadPercent: number | null;
|
attachmentDownloadPercent: number | null;
|
||||||
uploadingAttachmentName: string;
|
uploadingAttachmentName: string;
|
||||||
attachmentUploadPercent: number | null;
|
attachmentUploadPercent: number | null;
|
||||||
|
mobileSidebarToggleKey: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -131,12 +132,9 @@ export default function VaultPage(props: VaultPageProps) {
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const onToggleSidebar = () => {
|
if (!props.mobileSidebarToggleKey) return;
|
||||||
setMobileSidebarOpen((open) => !open);
|
setMobileSidebarOpen((open) => !open);
|
||||||
};
|
}, [props.mobileSidebarToggleKey]);
|
||||||
window.addEventListener('nodewarden:toggle-sidebar', onToggleSidebar);
|
|
||||||
return () => window.removeEventListener('nodewarden:toggle-sidebar', onToggleSidebar);
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const onQuickAdd = () => {
|
const onQuickAdd = () => {
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ export default function VaultDetailView(props: VaultDetailViewProps) {
|
|||||||
<div className="card">
|
<div className="card">
|
||||||
<h4>{t('txt_master_password_reprompt_2')}</h4>
|
<h4>{t('txt_master_password_reprompt_2')}</h4>
|
||||||
<div className="detail-sub">{t('txt_this_item_requires_master_password_every_time_before_viewing_details')}</div>
|
<div className="detail-sub">{t('txt_this_item_requires_master_password_every_time_before_viewing_details')}</div>
|
||||||
<div className="actions" style={{ marginTop: '10px' }}>
|
<div className="actions detail-unlock-actions">
|
||||||
<button type="button" className="btn btn-primary" onClick={props.onOpenReprompt}>
|
<button type="button" className="btn btn-primary" onClick={props.onOpenReprompt}>
|
||||||
<Eye size={14} className="btn-icon" /> {t('txt_unlock_details')}
|
<Eye size={14} className="btn-icon" /> {t('txt_unlock_details')}
|
||||||
</button>
|
</button>
|
||||||
@@ -117,7 +117,7 @@ export default function VaultDetailView(props: VaultDetailViewProps) {
|
|||||||
<div className="card">
|
<div className="card">
|
||||||
<h3 className="detail-title">{props.selectedCipher.decName || t('txt_no_name')}</h3>
|
<h3 className="detail-title">{props.selectedCipher.decName || t('txt_no_name')}</h3>
|
||||||
<div className="detail-sub">{props.folderName(props.selectedCipher.folderId)}</div>
|
<div className="detail-sub">{props.folderName(props.selectedCipher.folderId)}</div>
|
||||||
{isArchived && <div className="list-badge" style={{ marginTop: '8px', width: 'fit-content' }}>{t('txt_archived')}</div>}
|
{isArchived && <div className="list-badge archive-badge">{t('txt_archived')}</div>}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{props.selectedCipher.login && (
|
{props.selectedCipher.login && (
|
||||||
|
|||||||
@@ -299,7 +299,7 @@ export default function VaultEditor(props: VaultEditorProps) {
|
|||||||
</DndContext>
|
</DndContext>
|
||||||
{props.draft.loginFido2Credentials.length > 0 && (
|
{props.draft.loginFido2Credentials.length > 0 && (
|
||||||
<>
|
<>
|
||||||
<div className="section-head" style={{ marginTop: '18px' }}>
|
<div className="section-head passkeys-section-head">
|
||||||
<h4>{t('txt_passkeys')}</h4>
|
<h4>{t('txt_passkeys')}</h4>
|
||||||
</div>
|
</div>
|
||||||
<div className="attachment-list">
|
<div className="attachment-list">
|
||||||
|
|||||||
+19
-10
@@ -260,18 +260,24 @@ async function buildPublicSendAccessPayload(password?: string, keyPart?: string
|
|||||||
return payload;
|
return payload;
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function accessPublicSend(accessId: string, keyPart?: string | null, password?: string): Promise<any> {
|
export async function accessPublicSend(
|
||||||
|
accessId: string,
|
||||||
|
keyPart?: string | null,
|
||||||
|
password?: string,
|
||||||
|
options?: { signal?: AbortSignal }
|
||||||
|
): Promise<unknown> {
|
||||||
const payload = await buildPublicSendAccessPayload(password, keyPart);
|
const payload = await buildPublicSendAccessPayload(password, keyPart);
|
||||||
const resp = await fetch(`/api/sends/access/${encodeURIComponent(accessId)}`, {
|
const resp = await fetch(`/api/sends/access/${encodeURIComponent(accessId)}`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify(payload),
|
body: JSON.stringify(payload),
|
||||||
|
signal: options?.signal,
|
||||||
});
|
});
|
||||||
if (!resp.ok) {
|
if (!resp.ok) {
|
||||||
const message = await parseErrorMessage(resp, 'Failed to access send');
|
const message = await parseErrorMessage(resp, 'Failed to access send');
|
||||||
throw createApiError(message, resp.status);
|
throw createApiError(message, resp.status);
|
||||||
}
|
}
|
||||||
return (await parseJson<any>(resp)) || null;
|
return (await parseJson<unknown>(resp)) || null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function accessPublicSendFile(sendId: string, fileId: string, keyPart?: string | null, password?: string): Promise<string> {
|
export async function accessPublicSendFile(sendId: string, fileId: string, keyPart?: string | null, password?: string): Promise<string> {
|
||||||
@@ -290,19 +296,22 @@ export async function accessPublicSendFile(sendId: string, fileId: string, keyPa
|
|||||||
return body.url;
|
return body.url;
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function decryptPublicSend(accessData: any, urlSafeKey: string): Promise<any> {
|
export async function decryptPublicSend(accessData: unknown, urlSafeKey: string): Promise<unknown> {
|
||||||
const sendKeyMaterial = base64UrlToBytes(urlSafeKey);
|
const sendKeyMaterial = base64UrlToBytes(urlSafeKey);
|
||||||
const sendKey = await toSendKeyParts(sendKeyMaterial);
|
const sendKey = await toSendKeyParts(sendKeyMaterial);
|
||||||
const out: any = { ...accessData };
|
const source = accessData && typeof accessData === 'object' ? accessData as Record<string, unknown> : {};
|
||||||
out.decName = await decryptStr(accessData?.name || '', sendKey.enc, sendKey.mac);
|
const text = source.text && typeof source.text === 'object' ? source.text as Record<string, unknown> : null;
|
||||||
if (accessData?.text?.text) {
|
const file = source.file && typeof source.file === 'object' ? source.file as Record<string, unknown> : null;
|
||||||
out.decText = await decryptStr(accessData.text.text, sendKey.enc, sendKey.mac);
|
const out: Record<string, unknown> = { ...source };
|
||||||
|
out.decName = await decryptStr(String(source.name || ''), sendKey.enc, sendKey.mac);
|
||||||
|
if (text?.text) {
|
||||||
|
out.decText = await decryptStr(String(text.text), sendKey.enc, sendKey.mac);
|
||||||
}
|
}
|
||||||
if (accessData?.file?.fileName) {
|
if (file?.fileName) {
|
||||||
try {
|
try {
|
||||||
out.decFileName = await decryptStr(accessData.file.fileName, sendKey.enc, sendKey.mac);
|
out.decFileName = await decryptStr(String(file.fileName), sendKey.enc, sendKey.mac);
|
||||||
} catch {
|
} catch {
|
||||||
out.decFileName = String(accessData.file.fileName);
|
out.decFileName = String(file.fileName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return out;
|
return out;
|
||||||
|
|||||||
+30
-42
@@ -7,25 +7,34 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.public-send-page {
|
.public-send-page {
|
||||||
min-height: 80vh;
|
@apply min-h-[80vh] items-center;
|
||||||
align-items: center;
|
|
||||||
justify-items: center;
|
justify-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.public-send-title {
|
||||||
|
@apply mt-2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.public-send-card {
|
||||||
|
@apply mt-2.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.inline-status-icon {
|
||||||
|
@apply align-text-bottom;
|
||||||
|
}
|
||||||
|
|
||||||
.auth-card {
|
.auth-card {
|
||||||
@apply relative w-full overflow-hidden border bg-panel p-[30px] shadow-elevated;
|
@apply relative w-full overflow-hidden border bg-panel p-[30px] shadow-elevated;
|
||||||
border-color: var(--line);
|
border-color: var(--line);
|
||||||
border-radius: 22px;
|
@apply rounded-[22px];
|
||||||
}
|
}
|
||||||
|
|
||||||
.auth-card h1 {
|
.auth-card h1 {
|
||||||
margin: 0 0 4px 0;
|
@apply m-0 mb-1 text-center;
|
||||||
text-align: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.standalone-shell {
|
.standalone-shell {
|
||||||
@apply grid gap-3.5;
|
@apply grid w-[min(640px,100%)] gap-3.5;
|
||||||
width: min(640px, 100%);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.standalone-brand {
|
.standalone-brand {
|
||||||
@@ -33,9 +42,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.standalone-brand-outside {
|
.standalone-brand-outside {
|
||||||
justify-content: center;
|
@apply mb-0.5 w-full justify-center;
|
||||||
width: 100%;
|
|
||||||
margin-bottom: 2px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.standalone-brand-logo {
|
.standalone-brand-logo {
|
||||||
@@ -44,10 +51,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.standalone-brand-wordmark {
|
.standalone-brand-wordmark {
|
||||||
display: block;
|
@apply block h-auto max-w-full;
|
||||||
height: auto;
|
|
||||||
width: clamp(200px, 30vw, 360px);
|
width: clamp(200px, 30vw, 360px);
|
||||||
max-width: 100%;
|
|
||||||
filter: drop-shadow(0 10px 22px rgba(43, 102, 217, 0.18));
|
filter: drop-shadow(0 10px 22px rgba(43, 102, 217, 0.18));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -56,17 +61,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.standalone-muted {
|
.standalone-muted {
|
||||||
text-align: left;
|
@apply text-left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.jwt-warning-head {
|
.jwt-warning-head {
|
||||||
display: flex;
|
@apply mb-2.5 flex items-center justify-center gap-2.5 text-center;
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
gap: 10px;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
color: #b45309;
|
color: #b45309;
|
||||||
text-align: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.jwt-warning-box {
|
.jwt-warning-box {
|
||||||
@@ -74,29 +74,23 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.jwt-warning-label {
|
.jwt-warning-label {
|
||||||
font-size: 13px;
|
@apply mb-1.5 text-[13px] font-bold;
|
||||||
font-weight: 700;
|
|
||||||
color: #92400e;
|
color: #92400e;
|
||||||
margin-bottom: 6px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.jwt-warning-copy {
|
.jwt-warning-copy {
|
||||||
margin: 0 0 14px;
|
@apply m-0 mb-3.5 leading-[1.6];
|
||||||
color: #475569;
|
color: #475569;
|
||||||
line-height: 1.6;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.jwt-warning-list {
|
.jwt-warning-list {
|
||||||
margin: 0;
|
@apply m-0 pl-[18px] leading-[1.55];
|
||||||
padding-left: 18px;
|
|
||||||
color: #334155;
|
color: #334155;
|
||||||
line-height: 1.55;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.jwt-inline-link {
|
.jwt-inline-link {
|
||||||
|
@apply font-bold no-underline;
|
||||||
color: #1d4ed8;
|
color: #1d4ed8;
|
||||||
font-weight: 700;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.jwt-inline-link:hover {
|
.jwt-inline-link:hover {
|
||||||
@@ -104,16 +98,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.jwt-secret-fields {
|
.jwt-secret-fields {
|
||||||
margin-top: 8px;
|
@apply mt-2 grid gap-1.5;
|
||||||
display: grid;
|
|
||||||
gap: 6px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.jwt-secret-row {
|
.jwt-secret-row {
|
||||||
display: grid;
|
@apply grid items-start gap-2;
|
||||||
grid-template-columns: 88px minmax(0, 1fr);
|
grid-template-columns: 88px minmax(0, 1fr);
|
||||||
gap: 8px;
|
|
||||||
align-items: start;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.jwt-secret-row > span {
|
.jwt-secret-row > span {
|
||||||
@@ -121,7 +111,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.jwt-generator {
|
.jwt-generator {
|
||||||
margin-top: 14px;
|
@apply mt-3.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.jwt-generator-actions {
|
.jwt-generator-actions {
|
||||||
@@ -129,9 +119,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.jwt-copy-hint {
|
.jwt-copy-hint {
|
||||||
|
@apply text-[13px] font-bold;
|
||||||
color: #15803d;
|
color: #15803d;
|
||||||
font-size: 13px;
|
|
||||||
font-weight: 700;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.standalone-footer {
|
.standalone-footer {
|
||||||
@@ -139,9 +128,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.standalone-footer a {
|
.standalone-footer a {
|
||||||
|
@apply font-bold no-underline;
|
||||||
color: #1d4ed8;
|
color: #1d4ed8;
|
||||||
font-weight: 700;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.standalone-footer a:hover {
|
.standalone-footer a:hover {
|
||||||
@@ -149,6 +137,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.standalone-version {
|
.standalone-version {
|
||||||
font-weight: 700;
|
@apply font-bold;
|
||||||
color: #1d4ed8;
|
color: #1d4ed8;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,9 +5,7 @@
|
|||||||
html,
|
html,
|
||||||
body,
|
body,
|
||||||
#root {
|
#root {
|
||||||
margin: 0;
|
@apply m-0 h-full w-full p-0;
|
||||||
padding: 0;
|
|
||||||
@apply h-full w-full;
|
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
background: var(--bg-accent);
|
background: var(--bg-accent);
|
||||||
font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
|
font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
|
||||||
|
|||||||
+12
-21
@@ -7,7 +7,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.field > span {
|
.field > span {
|
||||||
@apply mb-2 block text-sm font-semibold;
|
@apply mb-2 mt-2.5 block text-sm font-semibold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input {
|
.input {
|
||||||
@@ -18,10 +18,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
select.input {
|
select.input {
|
||||||
|
@apply pr-[42px];
|
||||||
appearance: none;
|
appearance: none;
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
-moz-appearance: none;
|
-moz-appearance: none;
|
||||||
padding-right: 42px;
|
|
||||||
background-image:
|
background-image:
|
||||||
linear-gradient(45deg, transparent 50%, #365fa8 50%),
|
linear-gradient(45deg, transparent 50%, #365fa8 50%),
|
||||||
linear-gradient(135deg, #365fa8 50%, transparent 50%);
|
linear-gradient(135deg, #365fa8 50%, transparent 50%);
|
||||||
@@ -33,11 +33,7 @@ select.input {
|
|||||||
}
|
}
|
||||||
|
|
||||||
input[type='file'].input {
|
input[type='file'].input {
|
||||||
height: auto;
|
@apply h-auto min-h-12 px-2.5 py-2 text-sm leading-[1.4];
|
||||||
min-height: 48px;
|
|
||||||
padding: 8px 10px;
|
|
||||||
font-size: 14px;
|
|
||||||
line-height: 1.4;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type='file'].input::file-selector-button {
|
input[type='file'].input::file-selector-button {
|
||||||
@@ -75,7 +71,7 @@ input[type='file'].input::file-selector-button:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.password-wrap .input {
|
.password-wrap .input {
|
||||||
padding-right: 44px;
|
@apply pr-11;
|
||||||
}
|
}
|
||||||
|
|
||||||
.password-toggle {
|
.password-toggle {
|
||||||
@@ -101,8 +97,7 @@ input[type='file'].input::file-selector-button:hover {
|
|||||||
.user-chip,
|
.user-chip,
|
||||||
.side-link,
|
.side-link,
|
||||||
.mobile-tab {
|
.mobile-tab {
|
||||||
position: relative;
|
@apply relative overflow-hidden;
|
||||||
overflow: hidden;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.topbar-actions .btn::before,
|
.topbar-actions .btn::before,
|
||||||
@@ -110,15 +105,9 @@ input[type='file'].input::file-selector-button:hover {
|
|||||||
.side-link::before,
|
.side-link::before,
|
||||||
.mobile-tab::before {
|
.mobile-tab::before {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
@apply absolute left-1/2 top-1/2 h-[110px] w-[110px] rounded-full opacity-0;
|
||||||
left: 50%;
|
|
||||||
top: 50%;
|
|
||||||
width: 110px;
|
|
||||||
height: 110px;
|
|
||||||
border-radius: 999px;
|
|
||||||
background: radial-gradient(circle, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.08) 42%, transparent 72%);
|
background: radial-gradient(circle, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.08) 42%, transparent 72%);
|
||||||
transform: translate(-50%, -50%) scale(0.68);
|
transform: translate(-50%, -50%) scale(0.68);
|
||||||
opacity: 0;
|
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
transition:
|
transition:
|
||||||
opacity var(--dur-fast) var(--ease-smooth),
|
opacity var(--dur-fast) var(--ease-smooth),
|
||||||
@@ -141,7 +130,7 @@ input[type='file'].input::file-selector-button:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.btn-icon {
|
.btn-icon {
|
||||||
flex-shrink: 0;
|
@apply shrink-0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn.full {
|
.btn.full {
|
||||||
@@ -191,6 +180,10 @@ input[type='file'].input::file-selector-button:hover {
|
|||||||
@apply mt-2 text-[13px] leading-normal text-slate-500;
|
@apply mt-2 text-[13px] leading-normal text-slate-500;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.check-line-compact {
|
||||||
|
@apply mb-0;
|
||||||
|
}
|
||||||
|
|
||||||
.auth-support-row {
|
.auth-support-row {
|
||||||
@apply -mt-0.5 mb-3 flex items-center justify-between gap-2.5;
|
@apply -mt-0.5 mb-3 flex items-center justify-between gap-2.5;
|
||||||
}
|
}
|
||||||
@@ -205,7 +198,5 @@ input[type='file'].input::file-selector-button:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.auth-link-btn:disabled {
|
.auth-link-btn:disabled {
|
||||||
color: #94a3b8;
|
@apply cursor-not-allowed text-slate-400 no-underline;
|
||||||
cursor: not-allowed;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
}
|
||||||
|
|||||||
+178
-372
File diff suppressed because it is too large
Load Diff
+32
-105
@@ -1,27 +1,17 @@
|
|||||||
.dialog-mask {
|
.dialog-mask {
|
||||||
position: fixed;
|
@apply fixed inset-0 grid h-dvh w-screen place-items-center p-5 opacity-0;
|
||||||
inset: 0;
|
|
||||||
width: 100vw;
|
|
||||||
height: 100dvh;
|
|
||||||
background: rgba(15, 23, 42, 0.5);
|
background: rgba(15, 23, 42, 0.5);
|
||||||
display: grid;
|
|
||||||
place-items: center;
|
|
||||||
z-index: 1200;
|
z-index: 1200;
|
||||||
padding: 20px;
|
|
||||||
opacity: 0;
|
|
||||||
animation: fade-in var(--dur-medium) var(--ease-smooth) both;
|
animation: fade-in var(--dur-medium) var(--ease-smooth) both;
|
||||||
backdrop-filter: blur(6px);
|
backdrop-filter: blur(6px);
|
||||||
-webkit-backdrop-filter: blur(6px);
|
-webkit-backdrop-filter: blur(6px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog-card {
|
.dialog-card {
|
||||||
|
@apply rounded-[20px] border bg-white p-5 text-center;
|
||||||
width: min(460px, 100%);
|
width: min(460px, 100%);
|
||||||
background: #fff;
|
|
||||||
border-radius: 20px;
|
|
||||||
border: 1px solid var(--line);
|
border: 1px solid var(--line);
|
||||||
box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
|
box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
|
||||||
padding: 20px;
|
|
||||||
text-align: center;
|
|
||||||
transform-origin: 50% 30%;
|
transform-origin: 50% 30%;
|
||||||
animation: dialog-in 240ms var(--ease-out-strong) both;
|
animation: dialog-in 240ms var(--ease-out-strong) both;
|
||||||
}
|
}
|
||||||
@@ -45,20 +35,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.dialog-warning-head {
|
.dialog-warning-head {
|
||||||
display: flex;
|
@apply mb-2 flex items-center justify-center gap-3;
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
gap: 12px;
|
|
||||||
margin-bottom: 8px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog-warning-badge {
|
.dialog-warning-badge {
|
||||||
width: 48px;
|
@apply inline-flex h-12 w-12 items-center justify-center rounded-2xl;
|
||||||
height: 48px;
|
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
border-radius: 16px;
|
|
||||||
background: linear-gradient(180deg, #fff1f2, #ffe4e6);
|
background: linear-gradient(180deg, #fff1f2, #ffe4e6);
|
||||||
color: #dc2626;
|
color: #dc2626;
|
||||||
box-shadow:
|
box-shadow:
|
||||||
@@ -67,10 +48,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.dialog-warning-kicker {
|
.dialog-warning-kicker {
|
||||||
font-size: 12px;
|
@apply text-xs font-extrabold uppercase tracking-[0.16em];
|
||||||
font-weight: 800;
|
|
||||||
letter-spacing: 0.16em;
|
|
||||||
text-transform: uppercase;
|
|
||||||
color: #b91c1c;
|
color: #b91c1c;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -83,69 +61,50 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.dialog-card .field {
|
.dialog-card .field {
|
||||||
text-align: left;
|
@apply text-left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog-title {
|
.dialog-title {
|
||||||
margin: 6px 0;
|
@apply my-1.5 text-3xl;
|
||||||
font-size: 30px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog-message {
|
.dialog-message {
|
||||||
|
@apply mb-2.5;
|
||||||
color: #475467;
|
color: #475467;
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog-card.warning .dialog-title {
|
.dialog-card.warning .dialog-title {
|
||||||
|
@apply mb-2.5;
|
||||||
color: #7f1d1d;
|
color: #7f1d1d;
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog-message.warning {
|
.dialog-message.warning {
|
||||||
margin-bottom: 16px;
|
@apply mb-4 rounded-2xl px-4 py-3.5 leading-[1.65];
|
||||||
padding: 14px 16px;
|
|
||||||
border-radius: 16px;
|
|
||||||
border: 1px solid rgba(220, 38, 38, 0.16);
|
border: 1px solid rgba(220, 38, 38, 0.16);
|
||||||
background: linear-gradient(180deg, rgba(255, 241, 242, 0.94), rgba(255, 247, 237, 0.9));
|
background: linear-gradient(180deg, rgba(255, 241, 242, 0.94), rgba(255, 247, 237, 0.9));
|
||||||
color: #7a2832;
|
color: #7a2832;
|
||||||
line-height: 1.65;
|
|
||||||
box-shadow: 0 10px 28px rgba(248, 113, 113, 0.08) inset;
|
box-shadow: 0 10px 28px rgba(248, 113, 113, 0.08) inset;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog-btn {
|
.dialog-btn {
|
||||||
width: 100%;
|
@apply mt-2 h-[50px] w-full text-xl;
|
||||||
height: 50px;
|
|
||||||
font-size: 20px;
|
|
||||||
margin-top: 8px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog-extra {
|
.dialog-extra {
|
||||||
margin-top: 8px;
|
@apply mt-2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog-divider {
|
.dialog-divider {
|
||||||
height: 1px;
|
@apply my-2 mb-2.5 h-px;
|
||||||
background: var(--line);
|
background: var(--line);
|
||||||
margin: 8px 0 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.import-summary-dialog {
|
.import-summary-dialog {
|
||||||
max-width: 520px;
|
@apply relative max-w-[520px] pt-4 text-left;
|
||||||
text-align: left;
|
|
||||||
position: relative;
|
|
||||||
padding-top: 16px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.import-summary-close {
|
.import-summary-close {
|
||||||
position: absolute;
|
@apply absolute right-2.5 top-2.5 cursor-pointer border-0 bg-transparent text-2xl leading-none text-slate-500;
|
||||||
top: 10px;
|
|
||||||
right: 10px;
|
|
||||||
border: none;
|
|
||||||
background: transparent;
|
|
||||||
color: #64748b;
|
|
||||||
font-size: 24px;
|
|
||||||
line-height: 1;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.import-summary-close:hover {
|
.import-summary-close:hover {
|
||||||
@@ -153,34 +112,29 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.import-summary-table-wrap {
|
.import-summary-table-wrap {
|
||||||
margin-top: 8px;
|
@apply mt-2 overflow-hidden rounded-[10px];
|
||||||
border: 1px solid var(--line);
|
border: 1px solid var(--line);
|
||||||
border-radius: 10px;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.import-summary-table {
|
.import-summary-table {
|
||||||
width: 100%;
|
@apply w-full text-sm;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
font-size: 14px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.import-summary-table th,
|
.import-summary-table th,
|
||||||
.import-summary-table td {
|
.import-summary-table td {
|
||||||
padding: 10px 12px;
|
@apply px-3 py-2.5;
|
||||||
border-bottom: 1px solid var(--line);
|
border-bottom: 1px solid var(--line);
|
||||||
}
|
}
|
||||||
|
|
||||||
.import-summary-table th {
|
.import-summary-table th {
|
||||||
text-align: left;
|
@apply bg-slate-50 text-left;
|
||||||
color: #475467;
|
color: #475467;
|
||||||
background: #f8fafc;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.import-summary-table td:last-child,
|
.import-summary-table td:last-child,
|
||||||
.import-summary-table th:last-child {
|
.import-summary-table th:last-child {
|
||||||
text-align: right;
|
@apply w-24 text-right;
|
||||||
width: 96px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.import-summary-table tbody tr:last-child td {
|
.import-summary-table tbody tr:last-child td {
|
||||||
@@ -188,72 +142,53 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.import-summary-failed-list {
|
.import-summary-failed-list {
|
||||||
margin-top: 10px;
|
@apply mt-2.5 rounded-[10px] px-3 py-2.5 text-[13px];
|
||||||
padding: 10px 12px;
|
|
||||||
border: 1px solid #fecaca;
|
border: 1px solid #fecaca;
|
||||||
border-radius: 10px;
|
|
||||||
background: #fef2f2;
|
background: #fef2f2;
|
||||||
color: #991b1b;
|
color: #991b1b;
|
||||||
font-size: 13px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.import-summary-failed-title {
|
.import-summary-failed-title {
|
||||||
font-weight: 700;
|
@apply mb-1.5 font-bold;
|
||||||
margin-bottom: 6px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.import-summary-failed-list ul {
|
.import-summary-failed-list ul {
|
||||||
margin: 0;
|
@apply m-0 pl-[18px];
|
||||||
padding-left: 18px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.import-summary-failed-list li + li {
|
.import-summary-failed-list li + li {
|
||||||
margin-top: 4px;
|
@apply mt-1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.settings-twofactor-grid {
|
.settings-twofactor-grid {
|
||||||
display: grid;
|
@apply grid gap-3;
|
||||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
gap: 12px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.settings-subcard {
|
.settings-subcard {
|
||||||
|
@apply rounded-xl bg-white p-3;
|
||||||
border: 1px solid var(--line);
|
border: 1px solid var(--line);
|
||||||
border-radius: 12px;
|
|
||||||
padding: 12px;
|
|
||||||
background: #fff;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.settings-subcard h3 {
|
.settings-subcard h3 {
|
||||||
margin-top: 0;
|
@apply mb-2.5 mt-0;
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.toast-stack {
|
.toast-stack {
|
||||||
position: fixed;
|
@apply fixed grid list-none gap-2.5 p-0;
|
||||||
top: 16px;
|
top: 16px;
|
||||||
right: 16px;
|
right: 16px;
|
||||||
z-index: 1400;
|
z-index: 1400;
|
||||||
width: min(420px, calc(100vw - 20px));
|
width: min(420px, calc(100vw - 20px));
|
||||||
list-style: none;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
|
||||||
display: grid;
|
|
||||||
gap: 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.toast-item {
|
.toast-item {
|
||||||
position: relative;
|
@apply relative flex items-center justify-between overflow-hidden rounded-[10px] px-3.5 py-3;
|
||||||
border-radius: 10px;
|
|
||||||
border: 1px solid #bbdfc6;
|
border: 1px solid #bbdfc6;
|
||||||
background: #dff4e5;
|
background: #dff4e5;
|
||||||
color: #0f5132;
|
color: #0f5132;
|
||||||
padding: 12px 14px;
|
|
||||||
box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
|
box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
|
||||||
overflow: hidden;
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
animation: toast-in 240ms var(--ease-out-strong) both;
|
animation: toast-in 240ms var(--ease-out-strong) both;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -270,15 +205,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.toast-text {
|
.toast-text {
|
||||||
font-weight: 700;
|
@apply pr-2.5 font-bold;
|
||||||
padding-right: 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.toast-close {
|
.toast-close {
|
||||||
border: none;
|
@apply cursor-pointer border-0 bg-transparent text-xl;
|
||||||
background: transparent;
|
|
||||||
cursor: pointer;
|
|
||||||
font-size: 20px;
|
|
||||||
color: inherit;
|
color: inherit;
|
||||||
transition: transform var(--dur-fast) var(--ease-out-soft), opacity var(--dur-fast) var(--ease-smooth);
|
transition: transform var(--dur-fast) var(--ease-out-soft), opacity var(--dur-fast) var(--ease-smooth);
|
||||||
}
|
}
|
||||||
@@ -289,11 +220,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.toast-progress {
|
.toast-progress {
|
||||||
position: absolute;
|
@apply absolute bottom-0 left-0 h-[3px] w-full;
|
||||||
left: 0;
|
|
||||||
bottom: 0;
|
|
||||||
width: 100%;
|
|
||||||
height: 3px;
|
|
||||||
background: rgba(15, 23, 42, 0.2);
|
background: rgba(15, 23, 42, 0.2);
|
||||||
animation: toast-life 4.5s linear forwards;
|
animation: toast-life 4.5s linear forwards;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
@media (max-width: 1180px) {
|
@media (max-width: 1180px) {
|
||||||
.app-page {
|
.app-page {
|
||||||
padding: 8px;
|
@apply p-2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-shell {
|
.app-shell {
|
||||||
|
@apply rounded-xl;
|
||||||
height: calc(100vh - 16px);
|
height: calc(100vh - 16px);
|
||||||
border-radius: 12px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-main {
|
.app-main {
|
||||||
@@ -13,26 +13,24 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.app-side {
|
.app-side {
|
||||||
|
@apply grid items-start gap-2;
|
||||||
border-right: none;
|
border-right: none;
|
||||||
border-bottom: 1px solid #d9e0ea;
|
border-bottom: 1px solid #d9e0ea;
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
align-items: start;
|
|
||||||
align-self: start;
|
align-self: start;
|
||||||
height: fit-content;
|
height: fit-content;
|
||||||
gap: 8px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-side > .side-link {
|
.app-side > .side-link {
|
||||||
min-height: 0;
|
@apply min-h-0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vault-grid {
|
.vault-grid {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
height: auto;
|
@apply h-auto;
|
||||||
}
|
}
|
||||||
.sidebar {
|
.sidebar {
|
||||||
max-height: 280px;
|
@apply max-h-[280px];
|
||||||
}
|
}
|
||||||
.totp-grid,
|
.totp-grid,
|
||||||
.field-grid {
|
.field-grid {
|
||||||
@@ -53,115 +51,91 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.standalone-title {
|
.standalone-title {
|
||||||
font-size: 24px;
|
@apply text-2xl;
|
||||||
}
|
}
|
||||||
|
|
||||||
.standalone-footer {
|
.standalone-footer {
|
||||||
font-size: 12px;
|
@apply text-xs leading-[1.4];
|
||||||
line-height: 1.4;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 900px) {
|
@media (max-width: 900px) {
|
||||||
.auth-page {
|
.auth-page {
|
||||||
padding: 14px;
|
@apply items-start p-3.5;
|
||||||
align-items: start;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.standalone-shell {
|
.standalone-shell {
|
||||||
width: 100%;
|
@apply w-full max-w-[460px] gap-2.5 pt-3;
|
||||||
max-width: 460px;
|
|
||||||
gap: 10px;
|
|
||||||
padding-top: 12px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.standalone-brand-outside {
|
.standalone-brand-outside {
|
||||||
justify-content: flex-start;
|
@apply justify-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
.standalone-brand-logo {
|
.standalone-brand-logo {
|
||||||
width: 44px;
|
@apply h-11 w-11;
|
||||||
height: 44px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.auth-card {
|
.auth-card {
|
||||||
padding: 20px 16px;
|
@apply rounded-[18px] px-4 py-5;
|
||||||
border-radius: 18px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn.full {
|
.btn.full {
|
||||||
height: 48px;
|
@apply h-12 text-lg;
|
||||||
font-size: 18px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.auth-support-row {
|
.auth-support-row {
|
||||||
align-items: center;
|
@apply flex-row items-center;
|
||||||
flex-direction: row;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-page {
|
.app-page {
|
||||||
padding: 0;
|
@apply p-0;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-shell {
|
.app-shell {
|
||||||
--mobile-topbar-height: 58px;
|
--mobile-topbar-height: 58px;
|
||||||
--mobile-tabbar-height: 70px;
|
--mobile-tabbar-height: 70px;
|
||||||
height: 100dvh;
|
@apply h-dvh max-w-none rounded-none border-0;
|
||||||
max-width: none;
|
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 0;
|
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.topbar {
|
.topbar {
|
||||||
|
@apply relative z-20 px-3;
|
||||||
height: var(--mobile-topbar-height);
|
height: var(--mobile-topbar-height);
|
||||||
padding: 0 12px;
|
|
||||||
position: relative;
|
|
||||||
z-index: 20;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.brand {
|
.brand {
|
||||||
min-width: 0;
|
@apply min-w-0 gap-2.5 text-lg;
|
||||||
gap: 10px;
|
|
||||||
font-size: 18px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.brand-logo {
|
.brand-logo {
|
||||||
width: 34px;
|
@apply h-[34px] w-[34px];
|
||||||
height: 34px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-page-title {
|
.mobile-page-title {
|
||||||
display: inline;
|
@apply inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
.topbar-actions .user-chip,
|
.topbar-actions .user-chip,
|
||||||
.topbar-actions > .btn:not(.mobile-sidebar-toggle):not(.mobile-lock-btn),
|
.topbar-actions > .btn:not(.mobile-sidebar-toggle):not(.mobile-lock-btn),
|
||||||
.topbar-actions > .theme-switch-wrap {
|
.topbar-actions > .theme-switch-wrap {
|
||||||
display: none;
|
@apply hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-sidebar-toggle,
|
.mobile-sidebar-toggle,
|
||||||
.mobile-lock-btn {
|
.mobile-lock-btn {
|
||||||
display: inline-flex;
|
@apply inline-flex h-9 w-9 min-w-9 justify-center gap-0 p-0 text-[0];
|
||||||
width: 36px;
|
|
||||||
min-width: 36px;
|
|
||||||
height: 36px;
|
|
||||||
padding: 0;
|
|
||||||
justify-content: center;
|
|
||||||
font-size: 0;
|
|
||||||
gap: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-sidebar-toggle .btn-icon,
|
.mobile-sidebar-toggle .btn-icon,
|
||||||
.mobile-lock-btn .btn-icon {
|
.mobile-lock-btn .btn-icon {
|
||||||
margin: 0;
|
@apply m-0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-theme-btn {
|
.mobile-theme-btn {
|
||||||
display: inline-flex;
|
@apply inline-flex items-center;
|
||||||
align-items: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-theme-btn .theme-switch {
|
.mobile-theme-btn .theme-switch {
|
||||||
@@ -170,26 +144,21 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.app-main {
|
.app-main {
|
||||||
display: flex;
|
@apply flex min-h-0 flex-col;
|
||||||
flex-direction: column;
|
|
||||||
min-height: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-side {
|
.app-side {
|
||||||
display: none;
|
@apply hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
flex: 1;
|
@apply min-h-0 flex-1;
|
||||||
min-height: 0;
|
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-tabbar {
|
.mobile-tabbar {
|
||||||
display: grid;
|
@apply grid items-center gap-1.5;
|
||||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||||
align-items: center;
|
|
||||||
gap: 6px;
|
|
||||||
min-height: var(--mobile-tabbar-height);
|
min-height: var(--mobile-tabbar-height);
|
||||||
padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
|
padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
|
||||||
border-top: 1px solid var(--line);
|
border-top: 1px solid var(--line);
|
||||||
@@ -197,15 +166,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.mobile-tab {
|
.mobile-tab {
|
||||||
display: grid;
|
@apply grid justify-items-center gap-1 rounded-xl px-1 py-1.5 text-[11px] font-bold no-underline;
|
||||||
justify-items: center;
|
|
||||||
gap: 4px;
|
|
||||||
color: #64748b;
|
color: #64748b;
|
||||||
text-decoration: none;
|
|
||||||
font-size: 11px;
|
|
||||||
font-weight: 700;
|
|
||||||
padding: 6px 4px;
|
|
||||||
border-radius: 12px;
|
|
||||||
transition:
|
transition:
|
||||||
transform 220ms var(--ease-out-soft),
|
transform 220ms var(--ease-out-soft),
|
||||||
background-color var(--dur-fast) var(--ease-smooth),
|
background-color var(--dur-fast) var(--ease-smooth),
|
||||||
@@ -223,30 +185,21 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.vault-grid {
|
.vault-grid {
|
||||||
gap: 10px;
|
@apply gap-2.5 p-0;
|
||||||
padding: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar {
|
.sidebar {
|
||||||
display: none;
|
@apply hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-sidebar-sheet {
|
.mobile-sidebar-sheet {
|
||||||
display: block;
|
@apply fixed left-2.5 right-2.5 z-[55] block overflow-auto rounded-[18px] p-3 opacity-0;
|
||||||
position: fixed;
|
|
||||||
left: 10px;
|
|
||||||
right: 10px;
|
|
||||||
top: calc(var(--mobile-topbar-height) + 10px);
|
top: calc(var(--mobile-topbar-height) + 10px);
|
||||||
bottom: auto;
|
bottom: auto;
|
||||||
max-height: calc(100dvh - 145px);
|
max-height: calc(100dvh - 145px);
|
||||||
z-index: 55;
|
|
||||||
overflow: auto;
|
|
||||||
border: 1px solid #d8dee8;
|
border: 1px solid #d8dee8;
|
||||||
border-radius: 18px;
|
|
||||||
background: #fff;
|
background: #fff;
|
||||||
padding: 12px;
|
|
||||||
box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
|
box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
|
||||||
opacity: 0;
|
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
transform: translate3d(0, 10px, 0) scale(0.98);
|
transform: translate3d(0, 10px, 0) scale(0.98);
|
||||||
@@ -257,37 +210,26 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.mobile-sidebar-sheet.open {
|
.mobile-sidebar-sheet.open {
|
||||||
opacity: 1;
|
@apply opacity-100;
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
pointer-events: auto;
|
pointer-events: auto;
|
||||||
transform: translate3d(0, 0, 0) scale(1);
|
transform: translate3d(0, 0, 0) scale(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-sidebar-head {
|
.mobile-sidebar-head {
|
||||||
display: flex;
|
@apply mb-2.5 flex items-center justify-between gap-2.5;
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
gap: 10px;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-sidebar-title {
|
.mobile-sidebar-title {
|
||||||
font-size: 16px;
|
@apply text-base font-extrabold;
|
||||||
font-weight: 800;
|
|
||||||
color: #0f172a;
|
color: #0f172a;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-sidebar-close {
|
.mobile-sidebar-close {
|
||||||
width: 34px;
|
@apply inline-grid h-[34px] w-[34px] cursor-pointer place-items-center rounded-full p-0;
|
||||||
height: 34px;
|
|
||||||
border: 1px solid #d7dde6;
|
border: 1px solid #d7dde6;
|
||||||
border-radius: 999px;
|
|
||||||
background: #fff;
|
background: #fff;
|
||||||
color: #0f172a;
|
color: #0f172a;
|
||||||
display: inline-grid;
|
|
||||||
place-items: center;
|
|
||||||
cursor: pointer;
|
|
||||||
padding: 0;
|
|
||||||
transition:
|
transition:
|
||||||
transform var(--dur-fast) var(--ease-out-soft),
|
transform var(--dur-fast) var(--ease-out-soft),
|
||||||
background-color var(--dur-fast) var(--ease-smooth),
|
background-color var(--dur-fast) var(--ease-smooth),
|
||||||
@@ -299,37 +241,31 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.mobile-sidebar-sheet .sidebar-block {
|
.mobile-sidebar-sheet .sidebar-block {
|
||||||
margin: 0;
|
@apply m-0 rounded-none border-0 p-0;
|
||||||
padding: 0;
|
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 0;
|
|
||||||
background: transparent;
|
background: transparent;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-sidebar-sheet .tree-btn {
|
.mobile-sidebar-sheet .tree-btn {
|
||||||
margin-bottom: 2px;
|
@apply mb-0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-sidebar-sheet .folder-row {
|
.mobile-sidebar-sheet .folder-row {
|
||||||
align-items: stretch;
|
@apply items-stretch gap-1;
|
||||||
gap: 4px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-sidebar-sheet .folder-row .tree-btn {
|
.mobile-sidebar-sheet .folder-row .tree-btn {
|
||||||
min-height: 42px;
|
@apply min-h-[42px];
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-sidebar-sheet .sidebar-title,
|
.mobile-sidebar-sheet .sidebar-title,
|
||||||
.mobile-sidebar-sheet .sidebar-title-row {
|
.mobile-sidebar-sheet .sidebar-title-row {
|
||||||
padding-bottom: 6px;
|
@apply mb-0 pb-1.5;
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-sidebar-sheet .tree-btn {
|
.mobile-sidebar-sheet .tree-btn {
|
||||||
padding-left: 8px;
|
@apply rounded-[10px] px-2;
|
||||||
padding-right: 8px;
|
|
||||||
border-radius: 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-sidebar-sheet .tree-btn.active {
|
.mobile-sidebar-sheet .tree-btn.active {
|
||||||
@@ -337,56 +273,39 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.mobile-sidebar-sheet .folder-delete-btn {
|
.mobile-sidebar-sheet .folder-delete-btn {
|
||||||
width: 28px;
|
@apply h-[42px] w-7 rounded-lg;
|
||||||
height: 42px;
|
|
||||||
border-radius: 8px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-col {
|
.list-col {
|
||||||
max-width: none;
|
@apply max-w-none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-head {
|
.list-head {
|
||||||
display: grid;
|
@apply grid items-center gap-2;
|
||||||
grid-template-columns: minmax(0, 1fr) auto auto auto;
|
grid-template-columns: minmax(0, 1fr) auto auto auto;
|
||||||
gap: 8px;
|
|
||||||
align-items: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-count {
|
.list-count {
|
||||||
grid-column: auto;
|
grid-column: auto;
|
||||||
width: auto;
|
@apply w-auto whitespace-nowrap text-xs;
|
||||||
font-size: 12px;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-head .search-input-wrap {
|
.list-head .search-input-wrap {
|
||||||
width: 100%;
|
@apply w-full min-w-0;
|
||||||
min-width: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-head .search-input {
|
.list-head .search-input {
|
||||||
width: 100%;
|
@apply h-[42px] w-full min-w-0 rounded-[14px];
|
||||||
min-width: 0;
|
|
||||||
height: 42px;
|
|
||||||
border-radius: 14px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-icon-btn {
|
.list-icon-btn {
|
||||||
width: auto;
|
@apply w-auto min-w-0 gap-1.5 whitespace-nowrap px-3 py-0 text-[13px];
|
||||||
min-width: 0;
|
|
||||||
padding: 0 12px;
|
|
||||||
font-size: 13px;
|
|
||||||
gap: 6px;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolbar.actions {
|
.toolbar.actions {
|
||||||
justify-content: flex-end;
|
@apply justify-end overflow-visible pb-0.5;
|
||||||
flex-wrap: unset;
|
flex-wrap: unset;
|
||||||
gap: var(--actions-gap);
|
gap: var(--actions-gap);
|
||||||
overflow: visible;
|
|
||||||
padding-bottom: 2px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.actions {
|
.actions {
|
||||||
@@ -394,37 +313,21 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.toolbar.actions .btn.small {
|
.toolbar.actions .btn.small {
|
||||||
width: auto;
|
@apply h-[34px] w-auto min-w-0 gap-1.5 whitespace-nowrap rounded-full px-3 py-0 text-[13px];
|
||||||
min-width: 0;
|
|
||||||
height: 34px;
|
|
||||||
padding: 0 12px;
|
|
||||||
font-size: 13px;
|
|
||||||
gap: 6px;
|
|
||||||
border-radius: 999px;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-fab-wrap {
|
.mobile-fab-wrap {
|
||||||
position: fixed;
|
@apply fixed right-3.5 z-[45];
|
||||||
right: 14px;
|
|
||||||
bottom: calc(14px + var(--mobile-tabbar-height) + env(safe-area-inset-bottom));
|
bottom: calc(14px + var(--mobile-tabbar-height) + env(safe-area-inset-bottom));
|
||||||
z-index: 45;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-fab-trigger {
|
.mobile-fab-trigger {
|
||||||
width: 36px;
|
@apply h-14 w-9 gap-0 rounded-full p-0 text-[0];
|
||||||
height: 56px;
|
|
||||||
padding: 0;
|
|
||||||
border-radius: 999px;
|
|
||||||
font-size: 0;
|
|
||||||
gap: 0;
|
|
||||||
box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
|
box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-fab-trigger .btn-icon {
|
.mobile-fab-trigger .btn-icon {
|
||||||
margin: 0;
|
@apply m-0 h-5 w-5;
|
||||||
width: 20px;
|
|
||||||
height: 20px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-fab-wrap .create-menu {
|
.mobile-fab-wrap .create-menu {
|
||||||
@@ -435,18 +338,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.list-panel {
|
.list-panel {
|
||||||
border-radius: 16px;
|
@apply overflow-visible rounded-2xl;
|
||||||
overflow: visible;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-item {
|
.list-item {
|
||||||
padding: 12px;
|
@apply rounded-[14px] p-3;
|
||||||
border-radius: 14px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.row-check {
|
.row-check {
|
||||||
width: 18px;
|
@apply h-[18px] w-[18px];
|
||||||
height: 18px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.vault-grid.mobile-panel-detail .sidebar,
|
.vault-grid.mobile-panel-detail .sidebar,
|
||||||
@@ -454,20 +354,15 @@
|
|||||||
.vault-grid.mobile-panel-edit .sidebar,
|
.vault-grid.mobile-panel-edit .sidebar,
|
||||||
.vault-grid.mobile-panel-edit .list-col {
|
.vault-grid.mobile-panel-edit .list-col {
|
||||||
display: none;
|
display: none;
|
||||||
|
@apply hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-detail-sheet {
|
.mobile-detail-sheet {
|
||||||
display: block;
|
@apply fixed left-0 right-0 z-[35] block overflow-auto opacity-0;
|
||||||
position: fixed;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
top: calc(var(--mobile-topbar-height) + env(safe-area-inset-top));
|
top: calc(var(--mobile-topbar-height) + env(safe-area-inset-top));
|
||||||
bottom: calc(var(--mobile-tabbar-height) + env(safe-area-inset-bottom));
|
bottom: calc(var(--mobile-tabbar-height) + env(safe-area-inset-bottom));
|
||||||
z-index: 35;
|
|
||||||
overflow: auto;
|
|
||||||
background: transparent;
|
background: transparent;
|
||||||
padding: 0 0 18px;
|
padding: 0 0 18px;
|
||||||
opacity: 0;
|
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
transform: translate3d(0, 18px, 0);
|
transform: translate3d(0, 18px, 0);
|
||||||
@@ -478,43 +373,38 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.mobile-detail-sheet.open {
|
.mobile-detail-sheet.open {
|
||||||
opacity: 1;
|
@apply opacity-100;
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
pointer-events: auto;
|
pointer-events: auto;
|
||||||
transform: translate3d(0, 0, 0);
|
transform: translate3d(0, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-panel-head {
|
.mobile-panel-head {
|
||||||
display: flex;
|
@apply mb-2.5 ml-2.5 mr-2.5 flex items-center;
|
||||||
align-items: center;
|
|
||||||
margin: 0 10px 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-panel-back {
|
.mobile-panel-back {
|
||||||
min-height: 40px;
|
@apply min-h-10;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-detail-sheet > .detail-switch-stage,
|
.mobile-detail-sheet > .detail-switch-stage,
|
||||||
.mobile-detail-sheet > .card,
|
.mobile-detail-sheet > .card,
|
||||||
.mobile-detail-sheet > .empty {
|
.mobile-detail-sheet > .empty {
|
||||||
margin-left: 10px;
|
@apply ml-2.5 mr-2.5;
|
||||||
margin-right: 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.detail-col .card,
|
.detail-col .card,
|
||||||
.import-export-panel,
|
.import-export-panel,
|
||||||
.settings-subcard {
|
.settings-subcard {
|
||||||
border-radius: 16px;
|
@apply rounded-2xl;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
padding: 14px 14px;
|
@apply p-3.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-head {
|
.section-head {
|
||||||
align-items: flex-start;
|
@apply flex-col items-start gap-2.5;
|
||||||
gap: 10px;
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.detail-actions {
|
.detail-actions {
|
||||||
|
|||||||
+15
-39
@@ -6,7 +6,7 @@
|
|||||||
@apply relative mx-auto flex max-w-[1600px] flex-col overflow-hidden border bg-panel-soft shadow-elevated;
|
@apply relative mx-auto flex max-w-[1600px] flex-col overflow-hidden border bg-panel-soft shadow-elevated;
|
||||||
height: calc(100vh - 40px);
|
height: calc(100vh - 40px);
|
||||||
border-color: var(--line);
|
border-color: var(--line);
|
||||||
border-radius: 24px;
|
@apply rounded-3xl;
|
||||||
}
|
}
|
||||||
|
|
||||||
.topbar {
|
.topbar {
|
||||||
@@ -20,10 +20,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.brand-wordmark {
|
.brand-wordmark {
|
||||||
display: block;
|
@apply block h-auto max-w-full;
|
||||||
height: auto;
|
|
||||||
width: clamp(210px, 20vw, 290px);
|
width: clamp(210px, 20vw, 290px);
|
||||||
max-width: 100%;
|
|
||||||
filter: drop-shadow(0 12px 24px rgba(43, 102, 217, 0.12));
|
filter: drop-shadow(0 12px 24px rgba(43, 102, 217, 0.12));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -42,19 +40,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.mobile-tabbar {
|
.mobile-tabbar {
|
||||||
display: none;
|
@apply hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-sidebar-toggle {
|
.mobile-sidebar-toggle {
|
||||||
display: none;
|
@apply hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-lock-btn {
|
.mobile-lock-btn {
|
||||||
display: none;
|
@apply hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-theme-btn {
|
.mobile-theme-btn {
|
||||||
display: none;
|
@apply hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.theme-switch-wrap {
|
.theme-switch-wrap {
|
||||||
@@ -62,16 +60,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.theme-switch {
|
.theme-switch {
|
||||||
position: relative;
|
@apply relative inline-block h-8 w-14;
|
||||||
display: inline-block;
|
|
||||||
width: 56px;
|
|
||||||
height: 32px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.theme-switch-input {
|
.theme-switch-input {
|
||||||
opacity: 0;
|
@apply h-0 w-0 opacity-0;
|
||||||
width: 0;
|
|
||||||
height: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.theme-switch-slider {
|
.theme-switch-slider {
|
||||||
@@ -81,11 +74,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.theme-switch-slider::before {
|
.theme-switch-slider::before {
|
||||||
position: absolute;
|
@apply absolute h-[26px] w-[26px] rounded-full;
|
||||||
content: '';
|
content: '';
|
||||||
height: 26px;
|
|
||||||
width: 26px;
|
|
||||||
border-radius: 999px;
|
|
||||||
left: 2px;
|
left: 2px;
|
||||||
bottom: 2px;
|
bottom: 2px;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
@@ -98,24 +88,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.theme-switch .sun svg {
|
.theme-switch .sun svg {
|
||||||
position: absolute;
|
@apply absolute h-[18px] w-[18px];
|
||||||
top: 6px;
|
top: 6px;
|
||||||
left: 32px;
|
left: 32px;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
width: 18px;
|
|
||||||
height: 18px;
|
|
||||||
opacity: 0.95;
|
opacity: 0.95;
|
||||||
transition: transform var(--dur-medium) var(--ease-out-soft), opacity var(--dur-fast) var(--ease-smooth);
|
transition: transform var(--dur-medium) var(--ease-out-soft), opacity var(--dur-fast) var(--ease-smooth);
|
||||||
}
|
}
|
||||||
|
|
||||||
.theme-switch .moon svg {
|
.theme-switch .moon svg {
|
||||||
fill: #5b86d6;
|
fill: #5b86d6;
|
||||||
position: absolute;
|
@apply absolute h-4 w-4;
|
||||||
top: 7px;
|
top: 7px;
|
||||||
left: 7px;
|
left: 7px;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
width: 16px;
|
|
||||||
height: 16px;
|
|
||||||
opacity: 0.88;
|
opacity: 0.88;
|
||||||
transition: transform var(--dur-medium) var(--ease-out-soft), opacity var(--dur-fast) var(--ease-smooth);
|
transition: transform var(--dur-medium) var(--ease-out-soft), opacity var(--dur-fast) var(--ease-smooth);
|
||||||
}
|
}
|
||||||
@@ -143,11 +129,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.topbar-actions .btn {
|
.topbar-actions .btn {
|
||||||
height: 34px;
|
@apply h-[34px] rounded-xl px-3 text-[13px] font-semibold;
|
||||||
border-radius: 12px;
|
|
||||||
padding: 0 12px;
|
|
||||||
font-size: 13px;
|
|
||||||
font-weight: 600;
|
|
||||||
transition-duration: 220ms;
|
transition-duration: 220ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -203,24 +185,18 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.mobile-sidebar-mask {
|
.mobile-sidebar-mask {
|
||||||
position: fixed;
|
@apply pointer-events-none invisible fixed inset-0 opacity-0;
|
||||||
inset: 0;
|
|
||||||
background: rgba(15, 23, 42, 0.36);
|
background: rgba(15, 23, 42, 0.36);
|
||||||
z-index: 54;
|
z-index: 54;
|
||||||
opacity: 0;
|
|
||||||
visibility: hidden;
|
|
||||||
pointer-events: none;
|
|
||||||
transition:
|
transition:
|
||||||
opacity 220ms var(--ease-smooth),
|
opacity 220ms var(--ease-smooth),
|
||||||
visibility 220ms var(--ease-smooth);
|
visibility 220ms var(--ease-smooth);
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-sidebar-mask.open {
|
.mobile-sidebar-mask.open {
|
||||||
opacity: 1;
|
@apply pointer-events-auto visible opacity-100;
|
||||||
visibility: visible;
|
|
||||||
pointer-events: auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-sidebar-head {
|
.mobile-sidebar-head {
|
||||||
display: none;
|
@apply hidden;
|
||||||
}
|
}
|
||||||
|
|||||||
+162
-347
@@ -6,9 +6,8 @@
|
|||||||
.sidebar,
|
.sidebar,
|
||||||
.list-panel,
|
.list-panel,
|
||||||
.card {
|
.card {
|
||||||
@apply border bg-panel shadow-soft;
|
@apply rounded-2xl border bg-panel shadow-soft;
|
||||||
border-color: var(--line);
|
border-color: var(--line);
|
||||||
border-radius: 16px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar {
|
.sidebar {
|
||||||
@@ -25,14 +24,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-title-row {
|
.sidebar-title-row {
|
||||||
display: flex;
|
@apply flex items-center justify-between pb-2;
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
padding-bottom: 8px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-title-row .sidebar-title {
|
.sidebar-title-row .sidebar-title {
|
||||||
margin-bottom: 0;
|
@apply mb-0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.folder-title-actions {
|
.folder-title-actions {
|
||||||
@@ -55,9 +51,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.search-input-wrap {
|
.search-input-wrap {
|
||||||
position: relative;
|
@apply relative min-w-0 flex-auto;
|
||||||
flex: 1 1 auto;
|
|
||||||
min-width: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-input:focus {
|
.search-input:focus {
|
||||||
@@ -67,23 +61,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.search-input-wrap .search-input {
|
.search-input-wrap .search-input {
|
||||||
padding-right: 42px;
|
@apply pr-[42px];
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-clear-btn {
|
.search-clear-btn {
|
||||||
position: absolute;
|
@apply absolute right-[9px] top-1/2 inline-flex h-[22px] w-[22px] cursor-pointer items-center justify-center rounded-full border-0;
|
||||||
top: 50%;
|
|
||||||
right: 9px;
|
|
||||||
width: 22px;
|
|
||||||
height: 22px;
|
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 999px;
|
|
||||||
background: rgba(148, 163, 184, 0.18);
|
background: rgba(148, 163, 184, 0.18);
|
||||||
color: var(--muted);
|
color: var(--muted);
|
||||||
cursor: pointer;
|
|
||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
transition: background-color var(--dur-fast) var(--ease-out-soft), color var(--dur-fast) var(--ease-out-soft), transform var(--dur-fast) var(--ease-out-soft);
|
transition: background-color var(--dur-fast) var(--ease-out-soft), color var(--dur-fast) var(--ease-out-soft), transform var(--dur-fast) var(--ease-out-soft);
|
||||||
}
|
}
|
||||||
@@ -114,39 +99,25 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tree-icon {
|
.tree-icon {
|
||||||
flex-shrink: 0;
|
@apply shrink-0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tree-label {
|
.tree-label {
|
||||||
min-width: 0;
|
@apply min-w-0 overflow-hidden text-ellipsis whitespace-nowrap;
|
||||||
white-space: nowrap;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.folder-row {
|
.folder-row {
|
||||||
display: flex;
|
@apply flex items-center gap-1.5;
|
||||||
align-items: center;
|
|
||||||
gap: 6px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.folder-row .tree-btn {
|
.folder-row .tree-btn {
|
||||||
margin-bottom: 0;
|
@apply mb-0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.folder-delete-btn {
|
.folder-delete-btn {
|
||||||
|
@apply inline-flex h-6 w-6 shrink-0 cursor-pointer items-center justify-center rounded-md border-0 bg-transparent p-0;
|
||||||
border: none;
|
border: none;
|
||||||
background: transparent;
|
|
||||||
color: #64748b;
|
color: #64748b;
|
||||||
width: 24px;
|
|
||||||
height: 24px;
|
|
||||||
padding: 0;
|
|
||||||
cursor: pointer;
|
|
||||||
flex-shrink: 0;
|
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
border-radius: 6px;
|
|
||||||
transition:
|
transition:
|
||||||
color var(--dur-fast) var(--ease-smooth),
|
color var(--dur-fast) var(--ease-smooth),
|
||||||
background-color var(--dur-fast) var(--ease-smooth),
|
background-color var(--dur-fast) var(--ease-smooth),
|
||||||
@@ -169,18 +140,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.toolbar {
|
.toolbar {
|
||||||
margin: 0 0 8px 0;
|
@apply mb-2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolbar.actions {
|
.toolbar.actions {
|
||||||
justify-content: flex-end;
|
@apply justify-end;
|
||||||
gap: var(--actions-gap);
|
gap: var(--actions-gap);
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolbar .btn.small {
|
.toolbar .btn.small {
|
||||||
height: 30px;
|
@apply h-[30px] rounded-full text-xs;
|
||||||
border-radius: 999px;
|
|
||||||
font-size: 12px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-head {
|
.list-head {
|
||||||
@@ -188,40 +157,32 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.list-head .search-input-wrap {
|
.list-head .search-input-wrap {
|
||||||
flex: 1 1 auto;
|
@apply min-w-0 flex-auto;
|
||||||
min-width: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-head .search-input {
|
.list-head .search-input {
|
||||||
height: 42px;
|
@apply h-[42px];
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-head .btn {
|
.list-head .btn {
|
||||||
white-space: nowrap;
|
@apply whitespace-nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-count {
|
.list-count {
|
||||||
flex: 0 0 auto;
|
@apply shrink-0 whitespace-nowrap text-xs;
|
||||||
color: var(--text-muted);
|
color: var(--text-muted);
|
||||||
font-size: 12px;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-icon-btn {
|
.list-icon-btn {
|
||||||
white-space: nowrap;
|
@apply whitespace-nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sort-menu-wrap {
|
.sort-menu-wrap {
|
||||||
position: relative;
|
@apply relative shrink-0;
|
||||||
flex: 0 0 auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.sort-trigger {
|
.sort-trigger {
|
||||||
min-width: 36px;
|
@apply w-9 min-w-9 justify-center gap-0 p-0;
|
||||||
width: 36px;
|
|
||||||
padding: 0;
|
|
||||||
justify-content: center;
|
|
||||||
gap: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.sort-trigger.active {
|
.sort-trigger.active {
|
||||||
@@ -231,34 +192,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sort-menu {
|
.sort-menu {
|
||||||
position: absolute;
|
@apply absolute right-0 z-30 min-w-[156px] rounded-2xl border p-1.5;
|
||||||
top: calc(100% + 6px);
|
top: calc(100% + 6px);
|
||||||
right: 0;
|
|
||||||
z-index: 30;
|
|
||||||
min-width: 156px;
|
|
||||||
padding: 6px;
|
|
||||||
border: 1px solid var(--line);
|
|
||||||
border-radius: 16px;
|
|
||||||
background: var(--panel);
|
background: var(--panel);
|
||||||
|
border-color: var(--line);
|
||||||
box-shadow: var(--shadow-md);
|
box-shadow: var(--shadow-md);
|
||||||
transform-origin: top right;
|
transform-origin: top right;
|
||||||
animation: menu-in 190ms var(--ease-out-strong) both;
|
animation: menu-in 190ms var(--ease-out-strong) both;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sort-menu-item {
|
.sort-menu-item {
|
||||||
width: 100%;
|
@apply flex w-full cursor-pointer items-center justify-between gap-2.5 rounded-[10px] border-0 bg-transparent px-2.5 py-[9px] text-left text-[13px];
|
||||||
border: none;
|
border: none;
|
||||||
background: transparent;
|
|
||||||
border-radius: 10px;
|
|
||||||
padding: 9px 10px;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
gap: 10px;
|
|
||||||
color: #0f172a;
|
color: #0f172a;
|
||||||
font-size: 13px;
|
|
||||||
text-align: left;
|
|
||||||
cursor: pointer;
|
|
||||||
transition:
|
transition:
|
||||||
background-color var(--dur-fast) var(--ease-smooth),
|
background-color var(--dur-fast) var(--ease-smooth),
|
||||||
color var(--dur-fast) var(--ease-smooth),
|
color var(--dur-fast) var(--ease-smooth),
|
||||||
@@ -271,15 +217,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sort-menu-item.active {
|
.sort-menu-item.active {
|
||||||
|
@apply font-bold;
|
||||||
background: rgba(37, 99, 235, 0.1);
|
background: rgba(37, 99, 235, 0.1);
|
||||||
color: var(--primary-strong);
|
color: var(--primary-strong);
|
||||||
font-weight: 700;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.sort-menu-check-placeholder {
|
.sort-menu-check-placeholder {
|
||||||
width: 14px;
|
@apply h-3.5 w-3.5 shrink-0;
|
||||||
height: 14px;
|
|
||||||
flex: 0 0 14px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-panel {
|
.list-panel {
|
||||||
@@ -295,12 +239,10 @@
|
|||||||
|
|
||||||
.list-item::before {
|
.list-item::before {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
@apply absolute inset-0 opacity-0;
|
||||||
inset: 0;
|
|
||||||
background:
|
background:
|
||||||
linear-gradient(90deg, rgba(43, 102, 217, 0.06), transparent 24%, transparent 76%, rgba(14, 165, 233, 0.05)),
|
linear-gradient(90deg, rgba(43, 102, 217, 0.06), transparent 24%, transparent 76%, rgba(14, 165, 233, 0.05)),
|
||||||
radial-gradient(circle at 18px 50%, rgba(255, 255, 255, 0.28), transparent 44%);
|
radial-gradient(circle at 18px 50%, rgba(255, 255, 255, 0.28), transparent 44%);
|
||||||
opacity: 0;
|
|
||||||
transition:
|
transition:
|
||||||
opacity var(--dur-fast) var(--ease-smooth),
|
opacity var(--dur-fast) var(--ease-smooth),
|
||||||
transform 320ms var(--ease-out-soft);
|
transform 320ms var(--ease-out-soft);
|
||||||
@@ -313,6 +255,62 @@
|
|||||||
animation: stagger-rise 520ms var(--ease-out-strong) both;
|
animation: stagger-rise 520ms var(--ease-out-strong) both;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.stagger-delay-0 {
|
||||||
|
@apply [animation-delay:0ms];
|
||||||
|
}
|
||||||
|
|
||||||
|
.stagger-delay-1 {
|
||||||
|
@apply [animation-delay:26ms];
|
||||||
|
}
|
||||||
|
|
||||||
|
.stagger-delay-2 {
|
||||||
|
@apply [animation-delay:52ms];
|
||||||
|
}
|
||||||
|
|
||||||
|
.stagger-delay-3 {
|
||||||
|
@apply [animation-delay:78ms];
|
||||||
|
}
|
||||||
|
|
||||||
|
.stagger-delay-4 {
|
||||||
|
@apply [animation-delay:104ms];
|
||||||
|
}
|
||||||
|
|
||||||
|
.stagger-delay-5 {
|
||||||
|
@apply [animation-delay:130ms];
|
||||||
|
}
|
||||||
|
|
||||||
|
.stagger-delay-6 {
|
||||||
|
@apply [animation-delay:156ms];
|
||||||
|
}
|
||||||
|
|
||||||
|
.stagger-delay-7 {
|
||||||
|
@apply [animation-delay:182ms];
|
||||||
|
}
|
||||||
|
|
||||||
|
.stagger-delay-8 {
|
||||||
|
@apply [animation-delay:208ms];
|
||||||
|
}
|
||||||
|
|
||||||
|
.stagger-delay-9 {
|
||||||
|
@apply [animation-delay:234ms];
|
||||||
|
}
|
||||||
|
|
||||||
|
.stagger-delay-10 {
|
||||||
|
@apply [animation-delay:260ms];
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-unlock-actions {
|
||||||
|
@apply mt-2.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.archive-badge {
|
||||||
|
@apply mt-2 w-fit;
|
||||||
|
}
|
||||||
|
|
||||||
|
.passkeys-section-head {
|
||||||
|
@apply mt-[18px];
|
||||||
|
}
|
||||||
|
|
||||||
.list-item:hover {
|
.list-item:hover {
|
||||||
background: #fcfdff;
|
background: #fcfdff;
|
||||||
border-color: rgba(148, 163, 184, 0.26);
|
border-color: rgba(148, 163, 184, 0.26);
|
||||||
@@ -336,26 +334,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.row-check {
|
.row-check {
|
||||||
width: 16px;
|
@apply relative z-[2] h-4 w-4 cursor-pointer;
|
||||||
height: 16px;
|
|
||||||
position: relative;
|
|
||||||
z-index: 2;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.row-main {
|
.row-main {
|
||||||
flex: 1;
|
@apply relative z-[1] flex min-w-0 flex-1 cursor-pointer items-center gap-2.5 border-0 bg-transparent p-0 text-left;
|
||||||
min-width: 0;
|
|
||||||
border: none;
|
border: none;
|
||||||
background: transparent;
|
|
||||||
padding: 0;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 10px;
|
|
||||||
text-align: left;
|
|
||||||
cursor: pointer;
|
|
||||||
position: relative;
|
|
||||||
z-index: 1;
|
|
||||||
transition: transform 220ms var(--ease-out-soft);
|
transition: transform 220ms var(--ease-out-soft);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -365,69 +349,43 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.list-icon-wrap {
|
.list-icon-wrap {
|
||||||
width: 24px;
|
@apply grid h-6 w-6 shrink-0 place-items-center;
|
||||||
height: 24px;
|
|
||||||
display: grid;
|
|
||||||
place-items: center;
|
|
||||||
flex-shrink: 0;
|
|
||||||
transition: transform 240ms var(--ease-out-soft), filter 240ms var(--ease-out-soft);
|
transition: transform 240ms var(--ease-out-soft), filter 240ms var(--ease-out-soft);
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-icon {
|
.list-icon {
|
||||||
width: 24px;
|
@apply h-6 w-6 rounded-md;
|
||||||
height: 24px;
|
|
||||||
border-radius: 6px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-icon-fallback {
|
.list-icon-fallback {
|
||||||
display: grid;
|
@apply grid place-items-center;
|
||||||
place-items: center;
|
|
||||||
color: #64748b;
|
color: #64748b;
|
||||||
transition: color var(--dur-fast) var(--ease-smooth), transform 240ms var(--ease-out-soft);
|
transition: color var(--dur-fast) var(--ease-smooth), transform 240ms var(--ease-out-soft);
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-icon-fallback svg {
|
.list-icon-fallback svg {
|
||||||
width: 24px;
|
@apply h-6 w-6;
|
||||||
height: 24px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-text {
|
.list-text {
|
||||||
flex: 1;
|
@apply min-w-0 flex-1 overflow-hidden;
|
||||||
min-width: 0;
|
|
||||||
overflow: hidden;
|
|
||||||
transition: transform 220ms var(--ease-out-soft);
|
transition: transform 220ms var(--ease-out-soft);
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-title {
|
.list-title {
|
||||||
display: flex;
|
@apply flex min-w-0 items-center gap-1.5 text-[15px] font-bold;
|
||||||
align-items: center;
|
|
||||||
gap: 6px;
|
|
||||||
color: var(--primary-strong);
|
color: var(--primary-strong);
|
||||||
font-size: 15px;
|
|
||||||
font-weight: 700;
|
|
||||||
min-width: 0;
|
|
||||||
transition: color var(--dur-fast) var(--ease-smooth), letter-spacing 220ms var(--ease-out-soft);
|
transition: color var(--dur-fast) var(--ease-smooth), letter-spacing 220ms var(--ease-out-soft);
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-title-text {
|
.list-title-text {
|
||||||
min-width: 0;
|
@apply min-w-0 overflow-hidden text-ellipsis whitespace-nowrap;
|
||||||
white-space: nowrap;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-badge {
|
.list-badge {
|
||||||
display: inline-flex;
|
@apply inline-flex shrink-0 items-center justify-center rounded-full px-1.5 py-0.5 text-[11px] font-bold leading-none;
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
padding: 2px 6px;
|
|
||||||
border-radius: 999px;
|
|
||||||
font-size: 11px;
|
|
||||||
font-weight: 700;
|
|
||||||
line-height: 1;
|
|
||||||
color: #475569;
|
color: #475569;
|
||||||
background: #e8eef8;
|
background: #e8eef8;
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-badge.danger {
|
.list-badge.danger {
|
||||||
@@ -436,13 +394,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.list-sub {
|
.list-sub {
|
||||||
display: block;
|
@apply mt-0.5 block overflow-hidden text-ellipsis whitespace-nowrap text-[13px];
|
||||||
color: #5f6f85;
|
color: #5f6f85;
|
||||||
margin-top: 2px;
|
|
||||||
font-size: 13px;
|
|
||||||
white-space: nowrap;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
transition: color var(--dur-fast) var(--ease-smooth), transform 220ms var(--ease-out-soft), opacity var(--dur-fast) var(--ease-smooth);
|
transition: color var(--dur-fast) var(--ease-smooth), transform 220ms var(--ease-out-soft), opacity var(--dur-fast) var(--ease-smooth);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -474,12 +427,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.detail-col {
|
.detail-col {
|
||||||
overflow: auto;
|
@apply min-h-0 overflow-auto;
|
||||||
min-height: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-panel-head {
|
.mobile-panel-head {
|
||||||
display: none;
|
@apply hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
@@ -487,7 +439,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.detail-col > .card {
|
.detail-col > .card {
|
||||||
opacity: 1;
|
@apply opacity-100;
|
||||||
animation: none;
|
animation: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -502,36 +454,29 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.detail-switch-stage > .card {
|
.detail-switch-stage > .card {
|
||||||
opacity: 1;
|
@apply opacity-100;
|
||||||
animation: none;
|
animation: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card h4 {
|
.card h4 {
|
||||||
margin-top: 0;
|
@apply mb-3 mt-0;
|
||||||
margin-bottom: 12px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.detail-title {
|
.detail-title {
|
||||||
margin: 0;
|
@apply m-0 overflow-hidden text-ellipsis whitespace-nowrap;
|
||||||
white-space: nowrap;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.detail-sub {
|
.detail-sub {
|
||||||
|
@apply mt-2;
|
||||||
color: #667085;
|
color: #667085;
|
||||||
margin-top: 8px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.password-history-link {
|
.password-history-link {
|
||||||
margin-top: 10px;
|
@apply mt-2.5 cursor-pointer p-0 font-bold;
|
||||||
padding: 0;
|
|
||||||
border: none;
|
border: none;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
color: var(--primary);
|
color: var(--primary);
|
||||||
font: inherit;
|
font: inherit;
|
||||||
font-weight: 700;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.password-history-link:hover {
|
.password-history-link:hover {
|
||||||
@@ -540,12 +485,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.kv-line {
|
.kv-line {
|
||||||
display: flex;
|
@apply flex items-center justify-between gap-2.5 py-2.5;
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
gap: 10px;
|
|
||||||
border-bottom: 1px solid rgba(154, 172, 205, 0.22);
|
border-bottom: 1px solid rgba(154, 172, 205, 0.22);
|
||||||
padding: 10px 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.kv-line:last-child {
|
.kv-line:last-child {
|
||||||
@@ -557,12 +498,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.kv-row {
|
.kv-row {
|
||||||
display: grid;
|
@apply grid items-center gap-2.5 py-2.5;
|
||||||
grid-template-columns: minmax(0px, 80px) minmax(0, 1fr) auto;
|
grid-template-columns: minmax(0px, 80px) minmax(0, 1fr) auto;
|
||||||
align-items: center;
|
|
||||||
gap: 10px;
|
|
||||||
border-bottom: 1px solid rgba(154, 172, 205, 0.22);
|
border-bottom: 1px solid rgba(154, 172, 205, 0.22);
|
||||||
padding: 10px 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.kv-row:last-child {
|
.kv-row:last-child {
|
||||||
@@ -570,32 +508,22 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.password-history-dialog {
|
.password-history-dialog {
|
||||||
width: min(560px, calc(100vw - 32px));
|
@apply w-[min(560px,calc(100vw-32px))];
|
||||||
}
|
}
|
||||||
|
|
||||||
.password-history-head {
|
.password-history-head {
|
||||||
display: flex;
|
@apply mb-3 flex items-center justify-between gap-3;
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
gap: 12px;
|
|
||||||
margin-bottom: 12px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.password-history-head .dialog-title {
|
.password-history-head .dialog-title {
|
||||||
margin: 0;
|
@apply m-0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.password-history-close {
|
.password-history-close {
|
||||||
display: inline-flex;
|
@apply inline-flex h-[34px] w-[34px] cursor-pointer items-center justify-center rounded-full border-0;
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
width: 34px;
|
|
||||||
height: 34px;
|
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 999px;
|
|
||||||
background: transparent;
|
background: transparent;
|
||||||
color: var(--muted-strong);
|
color: var(--muted-strong);
|
||||||
cursor: pointer;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.password-history-close:hover {
|
.password-history-close:hover {
|
||||||
@@ -604,85 +532,59 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.password-history-list {
|
.password-history-list {
|
||||||
display: grid;
|
@apply mb-[18px] mt-2.5 grid gap-3;
|
||||||
gap: 12px;
|
|
||||||
margin: 10px 0 18px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.password-history-item {
|
.password-history-item {
|
||||||
position: relative;
|
@apply relative rounded-[14px] border py-4 pl-4 pr-[54px];
|
||||||
border: 1px solid var(--line);
|
border-color: var(--line);
|
||||||
border-radius: 14px;
|
|
||||||
background: var(--panel-soft);
|
background: var(--panel-soft);
|
||||||
padding: 16px 54px 14px 16px;
|
|
||||||
box-shadow: var(--shadow-sm);
|
box-shadow: var(--shadow-sm);
|
||||||
}
|
}
|
||||||
|
|
||||||
.password-history-value {
|
.password-history-value {
|
||||||
|
@apply text-[22px] leading-[1.15];
|
||||||
color: var(--primary);
|
color: var(--primary);
|
||||||
font-size: 22px;
|
|
||||||
line-height: 1.15;
|
|
||||||
letter-spacing: 0.01em;
|
letter-spacing: 0.01em;
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
}
|
}
|
||||||
|
|
||||||
.password-history-time {
|
.password-history-time {
|
||||||
margin-top: 8px;
|
@apply mt-2;
|
||||||
color: var(--muted);
|
color: var(--muted);
|
||||||
}
|
}
|
||||||
|
|
||||||
.password-history-copy {
|
.password-history-copy {
|
||||||
position: absolute;
|
@apply absolute right-3 top-3;
|
||||||
top: 12px;
|
|
||||||
right: 12px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.password-history-copy-btn {
|
.password-history-copy-btn {
|
||||||
min-width: 36px;
|
@apply h-9 w-9 min-w-9 p-0;
|
||||||
padding: 0;
|
|
||||||
width: 36px;
|
|
||||||
height: 36px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.kv-label {
|
.kv-label {
|
||||||
|
@apply min-w-0 overflow-hidden text-ellipsis whitespace-nowrap;
|
||||||
color: #64748b;
|
color: #64748b;
|
||||||
min-width: 0;
|
|
||||||
white-space: nowrap;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.kv-main {
|
.kv-main {
|
||||||
display: flex;
|
@apply flex min-w-0 items-center justify-start gap-2.5;
|
||||||
align-items: center;
|
|
||||||
gap: 10px;
|
|
||||||
justify-content: flex-start;
|
|
||||||
min-width: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.kv-main > strong {
|
.kv-main > strong {
|
||||||
min-width: 0;
|
@apply min-w-0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.totp-inline {
|
.totp-inline {
|
||||||
display: inline-flex;
|
@apply inline-flex min-w-0 items-center gap-2.5;
|
||||||
align-items: center;
|
|
||||||
gap: 10px;
|
|
||||||
min-width: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.totp-timer {
|
.totp-timer {
|
||||||
width: 30px;
|
@apply relative inline-grid h-[30px] w-[30px] shrink-0 place-items-center;
|
||||||
height: 30px;
|
|
||||||
position: relative;
|
|
||||||
display: inline-grid;
|
|
||||||
place-items: center;
|
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.totp-ring {
|
.totp-ring {
|
||||||
width: 30px;
|
@apply h-[30px] w-[30px];
|
||||||
height: 30px;
|
|
||||||
transform: rotate(-90deg);
|
transform: rotate(-90deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -703,41 +605,24 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.totp-timer-value {
|
.totp-timer-value {
|
||||||
position: absolute;
|
@apply absolute inset-0 grid place-items-center text-[11px] font-bold;
|
||||||
inset: 0;
|
|
||||||
display: grid;
|
|
||||||
place-items: center;
|
|
||||||
font-size: 11px;
|
|
||||||
font-weight: 700;
|
|
||||||
color: #0f172a;
|
color: #0f172a;
|
||||||
}
|
}
|
||||||
|
|
||||||
.totp-codes-page {
|
.totp-codes-page {
|
||||||
display: flex;
|
@apply flex min-h-full flex-col;
|
||||||
flex-direction: column;
|
|
||||||
min-height: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.totp-codes-list {
|
.totp-codes-list {
|
||||||
display: grid;
|
@apply grid w-full items-start gap-2.5;
|
||||||
gap: 10px;
|
|
||||||
grid-template-columns: repeat(var(--totp-columns, 1), minmax(320px, 1fr));
|
grid-template-columns: repeat(var(--totp-columns, 1), minmax(320px, 1fr));
|
||||||
align-items: start;
|
|
||||||
width: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.totp-code-row {
|
.totp-code-row {
|
||||||
display: grid;
|
@apply grid w-full min-w-0 max-w-none items-center gap-2.5 rounded-xl border p-3;
|
||||||
grid-template-columns: auto minmax(0, 1fr) auto;
|
grid-template-columns: auto minmax(0, 1fr) auto;
|
||||||
align-items: center;
|
border-color: #e2e8f0;
|
||||||
gap: 10px;
|
|
||||||
padding: 12px;
|
|
||||||
border: 1px solid #e2e8f0;
|
|
||||||
border-radius: 12px;
|
|
||||||
background: #f8fafc;
|
background: #f8fafc;
|
||||||
width: 100%;
|
|
||||||
min-width: 0;
|
|
||||||
max-width: none;
|
|
||||||
transition:
|
transition:
|
||||||
transform 220ms var(--ease-out-soft),
|
transform 220ms var(--ease-out-soft),
|
||||||
box-shadow var(--dur-fast) var(--ease-out-soft),
|
box-shadow var(--dur-fast) var(--ease-out-soft),
|
||||||
@@ -747,38 +632,25 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.totp-code-row.is-dragging {
|
.totp-code-row.is-dragging {
|
||||||
z-index: 2;
|
@apply z-[2];
|
||||||
border-color: rgba(37, 99, 235, 0.3);
|
border-color: rgba(37, 99, 235, 0.3);
|
||||||
background: color-mix(in srgb, var(--panel) 88%, white 12%);
|
background: color-mix(in srgb, var(--panel) 88%, white 12%);
|
||||||
box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
|
box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
|
||||||
}
|
}
|
||||||
|
|
||||||
.totp-code-info {
|
.totp-code-info {
|
||||||
display: flex;
|
@apply flex min-w-0 items-center gap-2.5;
|
||||||
align-items: center;
|
|
||||||
gap: 10px;
|
|
||||||
min-width: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.totp-drag-btn {
|
.totp-drag-btn {
|
||||||
min-width: 24px;
|
@apply relative h-[34px] w-6 min-w-6 cursor-grab self-center overflow-visible rounded-[10px] p-0 opacity-[0.82];
|
||||||
width: 24px;
|
|
||||||
height: 34px;
|
|
||||||
padding: 0;
|
|
||||||
gap: 0;
|
|
||||||
color: var(--muted);
|
color: var(--muted);
|
||||||
cursor: grab;
|
|
||||||
align-self: center;
|
|
||||||
touch-action: none;
|
touch-action: none;
|
||||||
-webkit-user-select: none;
|
-webkit-user-select: none;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
border-color: transparent;
|
border-color: transparent;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
border-radius: 10px;
|
|
||||||
position: relative;
|
|
||||||
overflow: visible;
|
|
||||||
opacity: 0.82;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.totp-drag-btn:hover {
|
.totp-drag-btn:hover {
|
||||||
@@ -798,109 +670,76 @@
|
|||||||
|
|
||||||
.totp-drag-btn::before {
|
.totp-drag-btn::before {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
@apply absolute -inset-2.5 rounded-xl;
|
||||||
inset: -10px;
|
|
||||||
border-radius: 12px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.totp-drag-btn .btn-icon {
|
.totp-drag-btn .btn-icon {
|
||||||
opacity: 0.9;
|
@apply opacity-90;
|
||||||
}
|
}
|
||||||
|
|
||||||
.totp-code-main {
|
.totp-code-main {
|
||||||
display: flex;
|
@apply flex min-w-0 shrink-0 items-center gap-1.5;
|
||||||
align-items: center;
|
|
||||||
gap: 6px;
|
|
||||||
min-width: 0;
|
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.totp-code-main strong {
|
.totp-code-main strong {
|
||||||
font-size: 22px;
|
@apply whitespace-nowrap text-[22px] leading-none;
|
||||||
line-height: 1;
|
|
||||||
letter-spacing: 0.04em;
|
letter-spacing: 0.04em;
|
||||||
white-space: nowrap;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.totp-code-meta {
|
.totp-code-meta {
|
||||||
min-width: 0;
|
@apply min-w-0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.totp-code-name,
|
.totp-code-name,
|
||||||
.totp-code-username {
|
.totp-code-username {
|
||||||
overflow: hidden;
|
@apply overflow-hidden text-ellipsis whitespace-nowrap;
|
||||||
text-overflow: ellipsis;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.totp-code-name {
|
.totp-code-name {
|
||||||
font-size: 15px;
|
@apply text-[15px] font-bold;
|
||||||
font-weight: 700;
|
|
||||||
color: #0f172a;
|
color: #0f172a;
|
||||||
}
|
}
|
||||||
|
|
||||||
.totp-code-username {
|
.totp-code-username {
|
||||||
margin-top: 2px;
|
@apply mt-0.5 text-[13px];
|
||||||
font-size: 13px;
|
|
||||||
color: #64748b;
|
color: #64748b;
|
||||||
}
|
}
|
||||||
|
|
||||||
.totp-copy-btn {
|
.totp-copy-btn {
|
||||||
min-width: 28px;
|
@apply h-7 w-7 min-w-7 shrink-0 gap-0 rounded-full p-0;
|
||||||
width: 28px;
|
|
||||||
height: 28px;
|
|
||||||
padding: 0;
|
|
||||||
border-radius: 999px;
|
|
||||||
flex-shrink: 0;
|
|
||||||
gap: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.value-ellipsis {
|
.value-ellipsis {
|
||||||
display: block;
|
@apply block max-w-full overflow-hidden text-ellipsis whitespace-nowrap;
|
||||||
max-width: 100%;
|
|
||||||
white-space: nowrap;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.kv-actions {
|
.kv-actions {
|
||||||
display: flex;
|
@apply flex shrink-0 flex-wrap items-center justify-end gap-2;
|
||||||
align-items: center;
|
|
||||||
justify-content: flex-end;
|
|
||||||
gap: 8px;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.attachment-list {
|
.attachment-list {
|
||||||
display: grid;
|
@apply grid gap-0;
|
||||||
gap: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.attachment-head {
|
.attachment-head {
|
||||||
margin-bottom: 8px;
|
@apply mb-2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.attachment-head h4 {
|
.attachment-head h4 {
|
||||||
margin-bottom: 0;
|
@apply mb-0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.attachment-add-btn {
|
.attachment-add-btn {
|
||||||
min-width: 32px;
|
@apply min-w-8 px-2 py-0;
|
||||||
padding: 0 8px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.attachment-file-input {
|
.attachment-file-input {
|
||||||
display: none;
|
@apply hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.attachment-row {
|
.attachment-row {
|
||||||
display: flex;
|
@apply flex items-center justify-between gap-2.5 py-2.5;
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
gap: 10px;
|
|
||||||
border-bottom: 1px solid #ecf0f5;
|
border-bottom: 1px solid #ecf0f5;
|
||||||
padding: 10px 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.attachment-row:last-child {
|
.attachment-row:last-child {
|
||||||
@@ -908,25 +747,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.attachment-main {
|
.attachment-main {
|
||||||
display: flex;
|
@apply flex min-w-0 items-center gap-2;
|
||||||
align-items: center;
|
|
||||||
gap: 8px;
|
|
||||||
min-width: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.attachment-text {
|
.attachment-text {
|
||||||
min-width: 0;
|
@apply grid min-w-0 gap-0.5;
|
||||||
display: grid;
|
|
||||||
gap: 2px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.attachment-text span {
|
.attachment-text span {
|
||||||
|
@apply text-xs;
|
||||||
color: #64748b;
|
color: #64748b;
|
||||||
font-size: 12px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.attachment-row.is-removed {
|
.attachment-row.is-removed {
|
||||||
opacity: 0.6;
|
@apply opacity-60;
|
||||||
}
|
}
|
||||||
|
|
||||||
.attachment-row.is-removed .attachment-text strong {
|
.attachment-row.is-removed .attachment-text strong {
|
||||||
@@ -934,20 +768,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.attachment-queue-title {
|
.attachment-queue-title {
|
||||||
font-size: 12px;
|
@apply px-0 pb-0.5 pt-2 text-xs font-bold;
|
||||||
color: #64748b;
|
color: #64748b;
|
||||||
font-weight: 700;
|
|
||||||
padding: 8px 0 2px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.boolean-text {
|
.boolean-text {
|
||||||
min-width: 0;
|
@apply min-w-0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom-field-card {
|
.custom-field-card {
|
||||||
display: grid;
|
@apply grid gap-2 py-2.5;
|
||||||
gap: 8px;
|
|
||||||
padding: 10px 0;
|
|
||||||
border-bottom: 1px solid #ecf0f5;
|
border-bottom: 1px solid #ecf0f5;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -957,59 +787,44 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.custom-field-label {
|
.custom-field-label {
|
||||||
display: block;
|
@apply block overflow-hidden text-ellipsis whitespace-nowrap text-xs font-bold leading-[1.2];
|
||||||
color: #64748b;
|
color: #64748b;
|
||||||
font-size: 12px;
|
|
||||||
font-weight: 700;
|
|
||||||
line-height: 1.2;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom-field-body {
|
.custom-field-body {
|
||||||
display: grid;
|
@apply grid items-center gap-2.5;
|
||||||
grid-template-columns: minmax(0, 1fr) auto;
|
grid-template-columns: minmax(0, 1fr) auto;
|
||||||
gap: 10px;
|
|
||||||
align-items: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom-field-value {
|
.custom-field-value {
|
||||||
min-width: 0;
|
@apply min-w-0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom-field-value > .input {
|
.custom-field-value > .input {
|
||||||
width: 100%;
|
@apply w-full;
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom-field-check {
|
.custom-field-check {
|
||||||
margin-bottom: 0;
|
@apply mb-0 inline-flex items-center gap-2;
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 8px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom-field-check span {
|
.custom-field-check span {
|
||||||
|
@apply text-sm font-semibold;
|
||||||
color: #334155;
|
color: #334155;
|
||||||
font-size: 14px;
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom-field-remove {
|
.custom-field-remove {
|
||||||
white-space: nowrap;
|
@apply whitespace-nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notes {
|
.notes {
|
||||||
white-space: pre-wrap;
|
@apply min-h-12 whitespace-pre-wrap;
|
||||||
overflow-wrap: anywhere;
|
overflow-wrap: anywhere;
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
color: #334155;
|
color: #334155;
|
||||||
min-height: 48px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.empty {
|
.empty {
|
||||||
|
@apply grid min-h-[120px] place-items-center;
|
||||||
color: #667085;
|
color: #667085;
|
||||||
display: grid;
|
|
||||||
place-items: center;
|
|
||||||
min-height: 120px;
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user