第6项:统一业务控件、主题与移动布局,保留原生输入和焦点契约
This commit is contained in:
1 parent
ff8b05973a
commit
2a4fb47227
77 files changed
+3609
-2451
No files matched your search
@@ -3,6 +3,7 @@ import { type LedgerClient } from '../../lib/api';
|
||||
import { Calc, Fees, type MemberRow } from '../../shared';
|
||||
import { Button, Choice, Dialog, Field } from './controls';
|
||||
import { errorText, memberOptions, readForm, type Notice, type Shop } from './settingsModel';
|
||||
import { LedgerButton, LedgerDataTable, LedgerInput } from '../../components/BusinessControls';
|
||||
|
||||
interface Cost {
|
||||
name: string;
|
||||
@@ -108,7 +109,7 @@ export function Costs({
|
||||
</div>
|
||||
<label className="shop-cost-search">
|
||||
搜索成本
|
||||
<input
|
||||
<LedgerInput
|
||||
type="search"
|
||||
id="shop-cost-search"
|
||||
placeholder="输入成本名称"
|
||||
@@ -120,52 +121,50 @@ export function Costs({
|
||||
<div id="shop-cost-list">
|
||||
{visible.length ? (
|
||||
<div className="table-wrap">
|
||||
<table className="shop-cost-table">
|
||||
<thead>
|
||||
<tr>
|
||||
{['成本名称', '金额/单价', '付款人', '计费方式', '状态', '操作'].map(text => (
|
||||
<th key={text}>{text}</th>
|
||||
))}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{visible.map(([kind, row]) => (
|
||||
<tr key={kind} data-cost-row={kind}>
|
||||
<td>
|
||||
<strong>{row.name}</strong>
|
||||
</td>
|
||||
<td>¥{row.amount}</td>
|
||||
<td>
|
||||
{row.payer === 'order'
|
||||
? '订单归属人'
|
||||
: members.find(m => m.member === row.payer)?.label || '待确认'}
|
||||
</td>
|
||||
<td>{row.byQuantity ? '单价 × 数量' : '每单一次'}</td>
|
||||
<td>{row.enabled ? '启用' : '停用'}</td>
|
||||
<td>
|
||||
<div className="actions">
|
||||
<Button
|
||||
action="shop-cost-edit"
|
||||
className="quiet"
|
||||
data-kind={kind}
|
||||
onClick={() => open('edit', kind)}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
<Button
|
||||
action="shop-cost-delete"
|
||||
className="danger"
|
||||
data-kind={kind}
|
||||
onClick={() => open('delete', kind)}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
))}
|
||||
</tbody>
|
||||
</table>
|
||||
<LedgerDataTable
|
||||
className="shop-cost-table"
|
||||
columns={[
|
||||
{ title: '成本名称' },
|
||||
{ title: '金额/单价' },
|
||||
{ title: '付款人' },
|
||||
{ title: '计费方式' },
|
||||
{ title: '状态' },
|
||||
{ title: '操作' },
|
||||
]}
|
||||
rows={visible.map(([kind, row]) => ({
|
||||
key: kind,
|
||||
attributes: { 'data-cost-row': kind },
|
||||
cells: [
|
||||
<>
|
||||
<strong>{row.name}</strong>
|
||||
</>,
|
||||
<>¥{row.amount}</>,
|
||||
row.payer === 'order' ? '订单归属人' : members.find(m => m.member === row.payer)?.label || '待确认',
|
||||
row.byQuantity ? '单价 × 数量' : '每单一次',
|
||||
row.enabled ? '启用' : '停用',
|
||||
<>
|
||||
<div className="actions">
|
||||
<Button
|
||||
action="shop-cost-edit"
|
||||
className="quiet"
|
||||
data-kind={kind}
|
||||
onClick={() => open('edit', kind)}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
<Button
|
||||
action="shop-cost-delete"
|
||||
className="danger"
|
||||
data-kind={kind}
|
||||
onClick={() => open('delete', kind)}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
</div>
|
||||
</>,
|
||||
],
|
||||
}))}
|
||||
/>
|
||||
</div>
|
||||
) : (
|
||||
<p className="empty">
|
||||
@@ -251,9 +250,13 @@ export function Costs({
|
||||
<Button action="shop-cost-close" className="quiet" onClick={close} disabled={saving}>
|
||||
取消
|
||||
</Button>
|
||||
<button type="submit" className={editor.action === 'delete' ? 'danger' : 'primary'} disabled={saving}>
|
||||
<LedgerButton
|
||||
type="submit"
|
||||
className={editor.action === 'delete' ? 'danger' : 'primary'}
|
||||
disabled={saving}
|
||||
>
|
||||
{editor.action === 'delete' ? '确认删除' : '保存成本'}
|
||||
</button>
|
||||
</LedgerButton>
|
||||
</div>
|
||||
</form>
|
||||
</Dialog>
|
||||
|
||||
@@ -2,6 +2,7 @@ import { forwardRef, useCallback, useEffect, useImperativeHandle, useRef, useSta
|
||||
import type { ApiError, LedgerClient } from '../../lib/api';
|
||||
import { Button, Choice, Dialog, Field } from './controls';
|
||||
import { errorText, readForm, type LeaveChecks, type Notice } from './settingsModel';
|
||||
import { LedgerButton, LedgerDataTable, LedgerInput } from '../../components/BusinessControls';
|
||||
|
||||
interface Employee {
|
||||
member: string;
|
||||
@@ -312,9 +313,9 @@ export const Employees = forwardRef<
|
||||
defaultValue={filter.status}
|
||||
disabled={guarded}
|
||||
/>
|
||||
<button type="submit" disabled={guarded}>
|
||||
<LedgerButton type="submit" disabled={guarded}>
|
||||
搜索
|
||||
</button>
|
||||
</LedgerButton>
|
||||
<Button action="employee-reload" className="quiet" disabled={guarded} onClick={load}>
|
||||
刷新
|
||||
</Button>
|
||||
@@ -333,97 +334,97 @@ export const Employees = forwardRef<
|
||||
<p className="empty">没有符合条件的员工。</p>
|
||||
) : (
|
||||
<div className="table-wrap">
|
||||
<table className="employee-table">
|
||||
<thead>
|
||||
<tr>
|
||||
{['账号名称', '经办人名称(开单人)', '手机号/原登录名', '账号状态', '历史记录', '操作'].map(
|
||||
name => (
|
||||
<th key={name}>{name}</th>
|
||||
),
|
||||
)}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{rows.employees.map(item => (
|
||||
<tr key={item.member} data-employee={item.member}>
|
||||
<td>
|
||||
<strong>{item.label}</strong>
|
||||
<div className="small muted">{item.member === 'owner' ? '店主' : '员工'}</div>
|
||||
</td>
|
||||
<td>{item.operatorName || item.label}</td>
|
||||
<td>
|
||||
{item.loginName}
|
||||
<div className="small muted">{item.passwordSet ? '已设置密码' : '尚未设置密码'}</div>
|
||||
</td>
|
||||
<td>
|
||||
<span className={'badge ' + (item.enabled ? '' : 'warn')}>
|
||||
{item.enabled ? '已启用' : '已停用'}
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<p className="small muted employee-delete-reason">{deleteReason(item)}</p>
|
||||
{!!item.businessUsage.length && (
|
||||
<details>
|
||||
<summary className="small">关联记录</summary>
|
||||
<ul className="small">
|
||||
{item.businessUsage.map(i => (
|
||||
<li key={i.source}>
|
||||
{i.label || i.source}:{i.count} 条
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</details>
|
||||
)}
|
||||
</td>
|
||||
<td>
|
||||
<div className="actions">
|
||||
<LedgerDataTable
|
||||
className="employee-table"
|
||||
columns={[
|
||||
{ title: '账号名称' },
|
||||
{ title: '经办人名称(开单人)' },
|
||||
{ title: '手机号/原登录名' },
|
||||
{ title: '账号状态' },
|
||||
{ title: '历史记录' },
|
||||
{ title: '操作' },
|
||||
]}
|
||||
rows={rows.employees.map(item => ({
|
||||
key: item.member,
|
||||
attributes: { 'data-employee': item.member },
|
||||
cells: [
|
||||
<>
|
||||
<strong>{item.label}</strong>
|
||||
<div className="small muted">{item.member === 'owner' ? '店主' : '员工'}</div>
|
||||
</>,
|
||||
item.operatorName || item.label,
|
||||
<>
|
||||
{item.loginName}
|
||||
<div className="small muted">{item.passwordSet ? '已设置密码' : '尚未设置密码'}</div>
|
||||
</>,
|
||||
<>
|
||||
<span className={'badge ' + (item.enabled ? '' : 'warn')}>
|
||||
{item.enabled ? '已启用' : '已停用'}
|
||||
</span>
|
||||
</>,
|
||||
<>
|
||||
<p className="small muted employee-delete-reason">{deleteReason(item)}</p>
|
||||
{!!item.businessUsage.length && (
|
||||
<details>
|
||||
<summary className="small">关联记录</summary>
|
||||
<ul className="small">
|
||||
{item.businessUsage.map(i => (
|
||||
<li key={i.source}>
|
||||
{i.label || i.source}:{i.count} 条
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</details>
|
||||
)}
|
||||
</>,
|
||||
<>
|
||||
<div className="actions">
|
||||
<Button
|
||||
action="employee-edit"
|
||||
data-member={item.member}
|
||||
onClick={() => open('update', item)}
|
||||
disabled={guarded}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
{item.canDeactivate ? (
|
||||
<Button
|
||||
action="employee-edit"
|
||||
action="employee-deactivate"
|
||||
className="quiet"
|
||||
data-member={item.member}
|
||||
onClick={() => open('update', item)}
|
||||
disabled={guarded}
|
||||
onClick={() => open('deactivate', item)}
|
||||
>
|
||||
编辑
|
||||
停用
|
||||
</Button>
|
||||
{item.canDeactivate ? (
|
||||
<Button
|
||||
action="employee-deactivate"
|
||||
className="quiet"
|
||||
data-member={item.member}
|
||||
disabled={guarded}
|
||||
onClick={() => open('deactivate', item)}
|
||||
>
|
||||
停用
|
||||
</Button>
|
||||
) : item.member !== 'owner' && !item.enabled ? (
|
||||
<Button
|
||||
action="employee-reactivate"
|
||||
data-member={item.member}
|
||||
disabled={guarded}
|
||||
onClick={() => open('reactivate', item)}
|
||||
>
|
||||
启用
|
||||
</Button>
|
||||
) : null}
|
||||
{item.member !== 'owner' && (
|
||||
<Button
|
||||
action="employee-delete"
|
||||
className="quiet"
|
||||
data-member={item.member}
|
||||
disabled={guarded || !item.canDelete}
|
||||
aria-label={'删除' + item.label}
|
||||
title={deleteReason(item)}
|
||||
onClick={() => open('delete', item)}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
))}
|
||||
</tbody>
|
||||
</table>
|
||||
) : item.member !== 'owner' && !item.enabled ? (
|
||||
<Button
|
||||
action="employee-reactivate"
|
||||
data-member={item.member}
|
||||
disabled={guarded}
|
||||
onClick={() => open('reactivate', item)}
|
||||
>
|
||||
启用
|
||||
</Button>
|
||||
) : null}
|
||||
{item.member !== 'owner' && (
|
||||
<Button
|
||||
action="employee-delete"
|
||||
className="quiet"
|
||||
data-member={item.member}
|
||||
disabled={guarded || !item.canDelete}
|
||||
aria-label={'删除' + item.label}
|
||||
title={deleteReason(item)}
|
||||
onClick={() => open('delete', item)}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
</>,
|
||||
],
|
||||
}))}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
@@ -519,9 +520,9 @@ export const Employees = forwardRef<
|
||||
>
|
||||
取消
|
||||
</Button>
|
||||
<button type="submit" className="primary" disabled={guarded || stale}>
|
||||
<LedgerButton type="submit" className="primary" disabled={guarded || stale}>
|
||||
{adding ? '添加员工' : '保存修改'}
|
||||
</button>
|
||||
</LedgerButton>
|
||||
</div>
|
||||
</form>
|
||||
</>
|
||||
@@ -534,7 +535,7 @@ export const Employees = forwardRef<
|
||||
<p className="note">{statusMessage[status]}</p>
|
||||
<form id="employee-status-form" onSubmit={submit} data-stale={stale || undefined}>
|
||||
<label className="check">
|
||||
<input type="checkbox" name="verified" required disabled={guarded || stale} />
|
||||
<LedgerInput type="checkbox" name="verified" required disabled={guarded || stale} />
|
||||
已核对员工,确认{statusName[status]}账号。
|
||||
</label>
|
||||
{actions}
|
||||
@@ -547,13 +548,13 @@ export const Employees = forwardRef<
|
||||
>
|
||||
取消
|
||||
</Button>
|
||||
<button
|
||||
<LedgerButton
|
||||
type="submit"
|
||||
className={status === 'delete' ? 'danger' : 'primary'}
|
||||
disabled={guarded || stale}
|
||||
>
|
||||
确认{statusName[status]}
|
||||
</button>
|
||||
</LedgerButton>
|
||||
</div>
|
||||
</form>
|
||||
</>
|
||||
|
||||
@@ -2,6 +2,7 @@ import { useRef, useState, type FormEvent } from 'react';
|
||||
import { type LedgerClient } from '../../lib/api';
|
||||
import { Button, Field } from './controls';
|
||||
import { errorText, readForm, type Printing, type Notice } from './settingsModel';
|
||||
import { LedgerButton, LedgerTable } from '../../components/BusinessControls';
|
||||
|
||||
const metrics = [
|
||||
['rows', '表格最少行数', 3, 12],
|
||||
@@ -100,9 +101,9 @@ export function PrintingPanel({
|
||||
: '当前生效设置;修改后请点击保存。'}
|
||||
</p>
|
||||
</div>
|
||||
<button type="submit" form="print-settings" className="primary" disabled={saving || client.busy}>
|
||||
<LedgerButton type="submit" form="print-settings" className="primary" disabled={saving || client.busy}>
|
||||
保存打印设置
|
||||
</button>
|
||||
</LedgerButton>
|
||||
</div>
|
||||
<form
|
||||
id="print-settings"
|
||||
@@ -155,7 +156,7 @@ export function PrintingPanel({
|
||||
<p id="print-mini-contact" hidden={!printing.contact}>
|
||||
{printing.contact}
|
||||
</p>
|
||||
<table>
|
||||
<LedgerTable>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>商品名称</td>
|
||||
@@ -173,7 +174,7 @@ export function PrintingPanel({
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</LedgerTable>
|
||||
<p>合计金额{'\u3000'}¥1,200.00</p>
|
||||
<p>大写:壹仟贰佰元整</p>
|
||||
<p>注意事项 · 珠宝首饰保养须知</p>
|
||||
|
||||
@@ -9,6 +9,7 @@ import { Employees } from './Employees';
|
||||
import { PrintingPanel } from './Printing';
|
||||
import { ShopForm } from './Shop';
|
||||
import './settings.css';
|
||||
import { LedgerButton } from '../../components/BusinessControls';
|
||||
|
||||
export interface SettingsProps {
|
||||
client: LedgerClient;
|
||||
@@ -137,7 +138,7 @@ export function SettingsPage({
|
||||
/>
|
||||
</div>
|
||||
<div className="form-actions">
|
||||
<button disabled={client.busy}>修改并重新登录</button>
|
||||
<LedgerButton disabled={client.busy}>修改并重新登录</LedgerButton>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
@@ -3,6 +3,7 @@ import type { LedgerClient } from '../../lib/api';
|
||||
import { Calc, type MemberRow } from '../../shared';
|
||||
import { Choice, Field } from './controls';
|
||||
import { errorText, memberOptions, readForm, type Shop, type Notice } from './settingsModel';
|
||||
import { LedgerButton } from '../../components/BusinessControls';
|
||||
|
||||
function shopValues(shop: Shop, today: string) {
|
||||
const month = today.slice(0, 7);
|
||||
@@ -202,9 +203,9 @@ export function ShopForm({
|
||||
{error}
|
||||
</div>
|
||||
<div className="form-actions">
|
||||
<button className="primary" type="submit" disabled={busy || client.busy || !!client.pending()}>
|
||||
<LedgerButton className="primary" type="submit" disabled={busy || client.busy || !!client.pending()}>
|
||||
保存店铺配置
|
||||
</button>
|
||||
</LedgerButton>
|
||||
</div>
|
||||
</form>
|
||||
</>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { useLayoutEffect, useRef } from 'react';
|
||||
import type { ButtonHTMLAttributes, InputHTMLAttributes, ReactNode, SelectHTMLAttributes } from 'react';
|
||||
import { LedgerButton, LedgerDialog, LedgerInput, LedgerSelect } from '../../components/BusinessControls';
|
||||
export function Field({ label, ...props }: InputHTMLAttributes<HTMLInputElement> & { label: string }) {
|
||||
return (
|
||||
<label>
|
||||
{label}
|
||||
<input type="text" {...props} />
|
||||
<LedgerInput type="text" {...props} />
|
||||
</label>
|
||||
);
|
||||
}
|
||||
@@ -16,18 +16,18 @@ export function Choice({
|
||||
return (
|
||||
<label>
|
||||
{label}
|
||||
<select {...props}>
|
||||
<LedgerSelect {...props}>
|
||||
{options.map(([value, name]) => (
|
||||
<option key={value} value={value}>
|
||||
{name}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
</LedgerSelect>
|
||||
</label>
|
||||
);
|
||||
}
|
||||
export function Button({ action, ...props }: ButtonHTMLAttributes<HTMLButtonElement> & { action: string }) {
|
||||
return <button type="button" data-action={action} {...props} />;
|
||||
return <LedgerButton type="button" data-action={action} {...props} />;
|
||||
}
|
||||
export function Dialog({
|
||||
id,
|
||||
@@ -40,16 +40,9 @@ export function Dialog({
|
||||
close: () => void;
|
||||
children: ReactNode;
|
||||
}) {
|
||||
const ref = useRef<HTMLDialogElement>(null);
|
||||
useLayoutEffect(() => {
|
||||
const node = ref.current!;
|
||||
node.showModal();
|
||||
node.querySelector<HTMLInputElement>('input:not([type=checkbox])')?.focus();
|
||||
return () => node.close();
|
||||
}, []);
|
||||
return (
|
||||
<dialog
|
||||
ref={ref}
|
||||
<LedgerDialog
|
||||
initialFocusSelector="input:not([type=checkbox])"
|
||||
id={id}
|
||||
aria-labelledby={labelledBy}
|
||||
onCancel={event => {
|
||||
@@ -58,6 +51,6 @@ export function Dialog({
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
</dialog>
|
||||
</LedgerDialog>
|
||||
);
|
||||
}
|
||||
@@ -3,14 +3,14 @@
|
||||
display: grid;
|
||||
gap: 18px;
|
||||
line-height: 1.55;
|
||||
color: #243d34;
|
||||
color: var(--ink);
|
||||
}
|
||||
.settings-page .panel {
|
||||
min-width: 0;
|
||||
padding: clamp(16px, 2vw, 28px);
|
||||
border: 1px solid #d9e4df;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
background: #fff;
|
||||
background: var(--white);
|
||||
}
|
||||
.settings-page .team-settings {
|
||||
order: 0;
|
||||
@@ -34,7 +34,7 @@
|
||||
.settings-page h1,
|
||||
.settings-page h2,
|
||||
.settings-page h3 {
|
||||
color: #193c2e;
|
||||
color: var(--green);
|
||||
margin: 0 0 8px;
|
||||
}
|
||||
.settings-page h1 {
|
||||
@@ -55,7 +55,7 @@
|
||||
}
|
||||
.settings-page .muted,
|
||||
.settings-page .eyebrow {
|
||||
color: #536b61;
|
||||
color: var(--muted);
|
||||
}
|
||||
.settings-page .eyebrow {
|
||||
font-size: 12px;
|
||||
@@ -63,7 +63,7 @@
|
||||
}
|
||||
.settings-page .note,
|
||||
.settings-page .badge {
|
||||
background: #edf5f0;
|
||||
background: var(--soft);
|
||||
border-radius: 6px;
|
||||
padding: 8px;
|
||||
}
|
||||
@@ -72,11 +72,11 @@
|
||||
white-space: nowrap;
|
||||
}
|
||||
.settings-page .warn {
|
||||
background: #fbf0db;
|
||||
background: var(--internal-bg);
|
||||
}
|
||||
.settings-page .danger-text,
|
||||
.settings-page .error {
|
||||
color: #982f28;
|
||||
color: var(--danger);
|
||||
}
|
||||
.settings-page fieldset {
|
||||
border: 0;
|
||||
@@ -98,7 +98,7 @@
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
min-height: 38px;
|
||||
border: 1px solid #bdcec4;
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: 6px;
|
||||
padding: 6px 9px;
|
||||
background: white;
|
||||
@@ -107,10 +107,10 @@
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.settings-page input:read-only {
|
||||
background: #f6f8f6;
|
||||
background: var(--soft);
|
||||
}
|
||||
.settings-page button {
|
||||
border: 1px solid #b7c9be;
|
||||
border: 1px solid var(--border-strong);
|
||||
color: inherit;
|
||||
background: white;
|
||||
cursor: pointer;
|
||||
@@ -119,20 +119,20 @@
|
||||
font: inherit;
|
||||
}
|
||||
.settings-page button.primary {
|
||||
background: #23583d;
|
||||
background: var(--green);
|
||||
color: white;
|
||||
border-color: transparent;
|
||||
}
|
||||
.settings-page button.danger {
|
||||
color: #982f28;
|
||||
border-color: #d8a8a0;
|
||||
color: var(--danger);
|
||||
border-color: color-mix(in srgb, var(--danger) 38%, var(--white));
|
||||
}
|
||||
.settings-page button:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: default;
|
||||
}
|
||||
.settings-page :is(button, input, select, summary):focus-visible {
|
||||
outline: 2px solid #377951;
|
||||
outline: 2px solid var(--green-hover);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
.settings-page .grid,
|
||||
@@ -170,19 +170,19 @@
|
||||
.settings-page th {
|
||||
padding: 8px;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid #dbe5df;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.settings-page th {
|
||||
font-size: 13px;
|
||||
white-space: nowrap;
|
||||
color: #4c6658;
|
||||
color: var(--muted);
|
||||
}
|
||||
.settings-page .empty {
|
||||
padding: 12px;
|
||||
color: #52685d;
|
||||
color: var(--muted);
|
||||
}
|
||||
.settings-page .shop-cost-manager {
|
||||
border-top: 1px solid #e3e9e3;
|
||||
border-top: 1px solid var(--border);
|
||||
margin-top: 22px;
|
||||
padding-top: 14px;
|
||||
}
|
||||
@@ -190,13 +190,13 @@
|
||||
max-width: 320px;
|
||||
}
|
||||
.settings-page .paper-mini {
|
||||
background: #fcfaf4;
|
||||
border: 1px solid #d8d2c2;
|
||||
background: var(--white);
|
||||
border: 1px solid var(--border-strong);
|
||||
padding: 16px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.settings-page .paper-mini td {
|
||||
border: 1px solid #ccc6b6;
|
||||
border: 1px solid var(--border-strong);
|
||||
font-size: 12px;
|
||||
}
|
||||
.settings-page dialog {
|
||||
@@ -205,13 +205,13 @@
|
||||
overflow: auto;
|
||||
box-sizing: border-box;
|
||||
padding: 24px;
|
||||
border: 1px solid #cbdbd0;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
color: inherit;
|
||||
box-shadow: 0 25px 65px #11281940;
|
||||
box-shadow: 0 25px 65px color-mix(in srgb, var(--ink) 25%, transparent);
|
||||
}
|
||||
.settings-page dialog::backdrop {
|
||||
background: #132a1e66;
|
||||
background: color-mix(in srgb, var(--ink) 40%, transparent);
|
||||
}
|
||||
.settings-page .dialog-close {
|
||||
float: right;
|
||||
@@ -224,15 +224,15 @@
|
||||
z-index: 10;
|
||||
max-width: 90vw;
|
||||
pointer-events: none;
|
||||
background: #ecf4ef;
|
||||
color: #234d33;
|
||||
border: 1px solid #bacfc1;
|
||||
background: var(--soft);
|
||||
color: var(--green);
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: 8px;
|
||||
padding: 10px 15px;
|
||||
}
|
||||
.settings-page .settings-notice.error {
|
||||
color: #8f302a;
|
||||
background: #fff4f1;
|
||||
color: var(--danger);
|
||||
background: color-mix(in srgb, var(--danger) 6%, var(--white));
|
||||
}
|
||||
@media (max-width: 850px) {
|
||||
.settings-page .three,
|
||||
|
||||
Reference in new issue
Block a user