Merge pull request 'fix(web): 整理发布管理页,生产已同步时不再提供启动同步' (#44) from fix/release-page-layout into main
build / build (push) Successful in 1m46s
build / build (push) Successful in 1m46s
This commit was merged in pull request #44.
This commit is contained in:
@@ -410,53 +410,6 @@ export function ModulePage({
|
||||
return (
|
||||
<div className="release-module">
|
||||
<ReleaseTargets />
|
||||
<details className="release-legacy">
|
||||
<summary>文档级发布(旧流程,折叠保留):单篇文档发布成功不等于整库发布成功</summary>
|
||||
<ReleaseManagement
|
||||
reviewPage={reviewPage}
|
||||
reviewLoading={reviewLoading}
|
||||
reviewError={reviewError}
|
||||
reviewingId={reviewingId}
|
||||
batchPage={batchPage}
|
||||
batchDetail={batchDetail}
|
||||
batchLoading={batchLoading}
|
||||
batchError={batchError}
|
||||
mutatingBatchId={mutatingBatchId}
|
||||
onReview={onReview}
|
||||
onBatchReview={onBatchReview}
|
||||
reviewBatchMessage={reviewBatchMessage}
|
||||
onReviewRefresh={onReviewRefresh}
|
||||
onCreateBatch={onCreateBatch}
|
||||
onSealBatch={onSealBatch}
|
||||
onSelectBatch={onSelectBatch}
|
||||
onBatchRefresh={onBatchRefresh}
|
||||
releaseCapabilities={releaseCapabilities}
|
||||
releasePlan={releasePlan}
|
||||
releaseChangeSet={releaseChangeSet}
|
||||
changeSetBusy={changeSetBusy}
|
||||
changeSetError={changeSetError}
|
||||
onGenerateChangeSet={onGenerateChangeSet}
|
||||
onConfirmChangeSet={onConfirmChangeSet}
|
||||
selectedDeleteIDs={selectedDeleteIDs}
|
||||
onToggleDelete={onToggleDelete}
|
||||
executionPage={executionPage}
|
||||
executionDetail={executionDetail}
|
||||
executionChain={executionChain}
|
||||
executionLoading={executionLoading}
|
||||
executionError={executionError}
|
||||
onSelectExecution={onSelectExecution}
|
||||
onExecutionRefresh={onExecutionRefresh}
|
||||
pendingReleaseAction={pendingReleaseAction}
|
||||
releaseActionPhrase={releaseActionPhrase}
|
||||
releaseActionBusy={releaseActionBusy}
|
||||
releaseActionError={releaseActionError}
|
||||
releaseActionMessage={releaseActionMessage}
|
||||
onStartReleaseAction={onStartReleaseAction}
|
||||
onReleaseActionPhrase={onReleaseActionPhrase}
|
||||
onSubmitReleaseAction={onSubmitReleaseAction}
|
||||
onCancelReleaseAction={onCancelReleaseAction}
|
||||
/>
|
||||
</details>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
import { afterEach, expect, it, vi } from 'vitest'
|
||||
import { renderToStaticMarkup } from 'react-dom/server'
|
||||
import { associateLegacySource, LegacySourceAssociation } from './LegacySourceAssociation'
|
||||
|
||||
afterEach(() => vi.unstubAllGlobals())
|
||||
const reply = (status: number, data: unknown) => new Response(JSON.stringify(data), { status })
|
||||
|
||||
it('only sends exact snapshot and scope; association is not publishing', async () => {
|
||||
const fetchMock = vi
|
||||
.fn()
|
||||
.mockResolvedValue(
|
||||
reply(200, { associated: true, published: false, snapshot_id: 'snapshot', source_id: 'a'.repeat(64) })
|
||||
)
|
||||
vi.stubGlobal('fetch', fetchMock)
|
||||
expect(await associateLegacySource('internal', 'snapshot')).toBe('a'.repeat(64))
|
||||
expect(fetchMock.mock.calls).toHaveLength(1)
|
||||
expect(fetchMock.mock.calls[0][0]).toBe('/api/v1/library/source-associations')
|
||||
expect(JSON.parse(fetchMock.mock.calls[0][1].body)).toEqual({ scope: 'internal', snapshot_id: 'snapshot' })
|
||||
})
|
||||
|
||||
it('rejects wrong-snapshot and incomplete readback, and shows evidence errors', async () => {
|
||||
for (const value of [
|
||||
{ associated: true, published: false, snapshot_id: 'wrong', source_id: 'a'.repeat(64) },
|
||||
{ associated: true, snapshot_id: 'snapshot' },
|
||||
]) {
|
||||
vi.stubGlobal('fetch', vi.fn().mockResolvedValue(reply(200, value)))
|
||||
await expect(associateLegacySource('internal', 'snapshot')).rejects.toThrow('来源关联回执')
|
||||
}
|
||||
vi.stubGlobal('fetch', vi.fn().mockResolvedValue(reply(409, { error: 'original capture identity mismatch' })))
|
||||
await expect(associateLegacySource('internal', 'snapshot')).rejects.toThrow('original capture identity mismatch')
|
||||
})
|
||||
|
||||
it('hides association controls from non-admin and distinguishes it from publication', () => {
|
||||
expect(
|
||||
renderToStaticMarkup(
|
||||
<LegacySourceAssociation scope="internal" snapshots={[]} admin={false} onBound={async () => {}} />
|
||||
)
|
||||
).toBe('')
|
||||
const html = renderToStaticMarkup(
|
||||
<LegacySourceAssociation scope="internal" snapshots={[]} admin onBound={async () => {}} />
|
||||
)
|
||||
expect(html).toContain('只追加治理关联')
|
||||
expect(html).toContain('disabled')
|
||||
expect(html).toContain('核验原证据并关联')
|
||||
})
|
||||
@@ -1,83 +0,0 @@
|
||||
import { useState } from 'react'
|
||||
import type { LibrarySnapshot } from './librarySnapshots'
|
||||
|
||||
export async function associateLegacySource(scope: string, snapshotID: string): Promise<string> {
|
||||
const response = await fetch('/api/v1/library/source-associations', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json', Accept: 'application/json' },
|
||||
body: JSON.stringify({ scope, snapshot_id: snapshotID }),
|
||||
})
|
||||
const value = (await response.json().catch(() => null)) as Record<string, unknown> | null
|
||||
if (!response.ok)
|
||||
throw new Error(typeof value?.error === 'string' ? value.error : `来源关联失败(HTTP ${response.status})`)
|
||||
if (
|
||||
value?.associated !== true ||
|
||||
value.published !== false ||
|
||||
value.snapshot_id !== snapshotID ||
|
||||
typeof value.source_id !== 'string' ||
|
||||
!/^[a-f0-9]{64}$/.test(value.source_id)
|
||||
) {
|
||||
throw new Error('来源关联回执不完整或快照身份不符')
|
||||
}
|
||||
return value.source_id
|
||||
}
|
||||
|
||||
export function LegacySourceAssociation({
|
||||
scope,
|
||||
snapshots,
|
||||
admin,
|
||||
onBound,
|
||||
}: {
|
||||
scope: string
|
||||
snapshots: LibrarySnapshot[]
|
||||
admin: boolean
|
||||
onBound: () => Promise<void>
|
||||
}) {
|
||||
const [snapshotID, setSnapshotID] = useState('')
|
||||
const [pending, setPending] = useState(false)
|
||||
const [notice, setNotice] = useState('')
|
||||
if (!admin) return null
|
||||
const choices = snapshots.filter((item) => item.scope === scope)
|
||||
const bind = async () => {
|
||||
if (pending || !choices.some((item) => item.snapshot_id === snapshotID)) return
|
||||
setPending(true)
|
||||
setNotice('')
|
||||
try {
|
||||
const sourceID = await associateLegacySource(scope, snapshotID)
|
||||
setNotice(`来源证据已核验关联:${sourceID}。没有发布内容;发布授权与写入闸门仍独立检查。`)
|
||||
await onBound()
|
||||
} catch (error) {
|
||||
setNotice(error instanceof Error ? error.message : '来源关联失败')
|
||||
} finally {
|
||||
setPending(false)
|
||||
}
|
||||
}
|
||||
return (
|
||||
<details className="rel-source-identity">
|
||||
<summary>关联旧封存的原始来源证据(管理员)</summary>
|
||||
<p>
|
||||
只追加治理关联,保留原快照与摘要。服务端核对原捕获响应、执行器指纹及清单;备份、来源不符或证据缺失均拒绝,不凭同一范围认领。
|
||||
</p>
|
||||
<label>
|
||||
待核验的历史快照
|
||||
<select
|
||||
aria-label="待核验的历史快照"
|
||||
value={snapshotID}
|
||||
disabled={pending}
|
||||
onChange={(event) => setSnapshotID(event.target.value)}
|
||||
>
|
||||
<option value="">选择准确快照摘要</option>
|
||||
{choices.map((item) => (
|
||||
<option key={item.snapshot_id} value={item.snapshot_id}>
|
||||
{item.snapshot_id}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
</label>
|
||||
<button type="button" disabled={pending || !snapshotID} onClick={() => void bind()}>
|
||||
{pending ? '核验中…' : '核验原证据并关联'}
|
||||
</button>
|
||||
{notice ? <p role="status">{notice}</p> : null}
|
||||
</details>
|
||||
)
|
||||
}
|
||||
@@ -892,6 +892,36 @@ describe('ReleaseTargetsView(确认稿布局)', () => {
|
||||
expect(known).not.toMatch(/建立目标权威基线(维护隔离)<\/button>/)
|
||||
})
|
||||
|
||||
it('生产生效版本就是当前测试封存时,主按钮是不可点的“已同步”,前进方向换成重新封存', () => {
|
||||
const html = render({
|
||||
sync: { canSign: true, pendingGrant: false, onGrant: vi.fn(), canStart: true, pending: false, onStart: vi.fn() },
|
||||
overview: {
|
||||
...overview,
|
||||
gate: { sync_allowed: true, reasons: [] },
|
||||
production: {
|
||||
state: 'known',
|
||||
version: {
|
||||
id: 'v-same',
|
||||
kind: 'production_effective',
|
||||
snapshot_id: internalSnapshot.snapshot_id,
|
||||
version_label: '',
|
||||
source_job_id: 'libsync-1',
|
||||
evidence: {},
|
||||
created_by: 'admin',
|
||||
created_at: '2026-10-29T09:00:00Z',
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
// 闸口放行也不许再把同一份内容同步一遍
|
||||
expect(html).not.toContain('▶ 启动同步')
|
||||
expect(html).toMatch(/<button[^>]*class="rel-primary rel-synced"[^>]*disabled[^>]*>✓ 已同步/)
|
||||
expect(html).toContain('生产已是当前测试封存')
|
||||
expect(html).toMatch(/class="rel-secondary"[^>]*>重新封存测试版本/)
|
||||
// 已同步时签发授权没有意义,不出现签发入口
|
||||
expect(html).not.toContain('签发同步授权(30 分钟)')
|
||||
})
|
||||
|
||||
it('闸口全满足时“启动同步”真的可点,并给出执行说明', () => {
|
||||
const html = render({
|
||||
sync: { canSign: false, pendingGrant: false, onGrant: vi.fn(), canStart: true, pending: false, onStart: vi.fn() },
|
||||
|
||||
+76
-69
@@ -1,4 +1,3 @@
|
||||
import { LegacySourceAssociation } from './LegacySourceAssociation'
|
||||
import { useCallback, useEffect, useRef, useState } from 'react'
|
||||
import {
|
||||
createLibraryRestoreAuthorization,
|
||||
@@ -981,10 +980,6 @@ interface ReadyProps {
|
||||
prebackup: LibraryOverview['prebackup']
|
||||
gate: LibraryOverview['gate']
|
||||
authorization: LibraryOverview['authorization']
|
||||
canCapture: boolean
|
||||
canWrite: boolean
|
||||
pendingCapture: boolean
|
||||
onCapture: () => void
|
||||
onOpen: () => void
|
||||
sync: ReleaseSyncActions
|
||||
baseline: ReleaseBaselineActions
|
||||
@@ -1006,16 +1001,12 @@ function ReadyBody({
|
||||
sync,
|
||||
baseline,
|
||||
verification,
|
||||
canCapture,
|
||||
canWrite,
|
||||
pendingCapture,
|
||||
onCapture,
|
||||
onOpen,
|
||||
}: ReadyProps) {
|
||||
const snapshot = view.snapshot
|
||||
return (
|
||||
<>
|
||||
<div className="rel-grid">
|
||||
<div>
|
||||
<ProtectionCard
|
||||
production={production}
|
||||
productionNote={productionNote}
|
||||
@@ -1043,17 +1034,6 @@ function ReadyBody({
|
||||
</header>
|
||||
<StageBar view={view} />
|
||||
</div>
|
||||
<div className="rel-panel rel-seal">
|
||||
<div>
|
||||
<h2>测试库封存</h2>
|
||||
<p>
|
||||
{snapshot
|
||||
? `最近一次封存 ${stamp(snapshot.created_at)},快照 ${snapshot.snapshot_id.slice(0, 12)}。封存只读测试库,不影响生产。`
|
||||
: '还没有测试库封存。封存会短暂停住测试写入者,导出完整版本后恢复。'}
|
||||
</p>
|
||||
</div>
|
||||
<span className="rel-hint">{canCapture ? '封存入口在页面顶部“下一步”。' : captureHint(view, canWrite)}</span>
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
}
|
||||
@@ -1884,7 +1864,22 @@ export function ReleaseTargetsView(props: ViewProps) {
|
||||
|
||||
const sealed = Boolean(view.snapshot)
|
||||
const authorizationActive = authorization.state === 'active'
|
||||
// 主按钮永远是"同步"或"查看当前任务";准备动作(封存/基线/恢复验证/授权)
|
||||
// 生产生效版本就是这份测试封存时,再同步只会把同一份内容重写一遍(还要停机维护),
|
||||
// 所以主按钮改成不可点的"已同步",前进方向换成封存新版本。闸口放行与否不影响这个判断。
|
||||
const inSync =
|
||||
!runningJob &&
|
||||
productionClass === 'known' &&
|
||||
Boolean(target?.snapshot_id) &&
|
||||
production?.version?.snapshot_id === target?.snapshot_id
|
||||
const captureAction = {
|
||||
label: pendingCapture ? '封存中…' : sealed ? '重新封存测试版本' : '封存测试版本',
|
||||
hint: sealed
|
||||
? '生产已是当前测试封存,无需同步;测试库有新内容时先封存新版本。'
|
||||
: '还没有测试库封存。封存只读导出测试库(短暂停住测试写入者),不影响生产。',
|
||||
disabled: pendingCapture,
|
||||
run: onCapture,
|
||||
}
|
||||
// 主按钮永远是"同步"、"已同步"或"查看当前任务";准备动作(封存/基线/授权)
|
||||
// 作为次要按钮按状态出现,页面因此只有一个前进方向。
|
||||
const primaryAction = runningJob
|
||||
? {
|
||||
@@ -1893,38 +1888,44 @@ export function ReleaseTargetsView(props: ViewProps) {
|
||||
disabled: false,
|
||||
run: () => document.getElementById('rel-progress')?.scrollIntoView?.({ behavior: 'smooth', block: 'start' }),
|
||||
}
|
||||
: {
|
||||
label: sync.pending ? '投递中…' : '▶ 启动同步',
|
||||
hint: sync.canStart
|
||||
? '先固定测试版本,再备份目标并写入;失败会停在维护窗口。'
|
||||
: `暂不能启动:${gate.reasons.join(';') || '条件未满足'}`,
|
||||
disabled: !sync.canStart || sync.pending,
|
||||
run: sync.onStart,
|
||||
}
|
||||
: inSync
|
||||
? {
|
||||
label: '✓ 已同步',
|
||||
hint: canCapture ? captureAction.hint : `生产已是当前测试封存,无需同步。${captureHint(view, canWrite)}`,
|
||||
disabled: true,
|
||||
run: () => {},
|
||||
}
|
||||
: {
|
||||
label: sync.pending ? '投递中…' : '▶ 启动同步',
|
||||
hint: sync.canStart
|
||||
? '先固定测试版本,再备份目标并写入;失败会停在维护窗口。'
|
||||
: `暂不能启动:${gate.reasons.join(';') || '条件未满足'}`,
|
||||
disabled: !sync.canStart || sync.pending,
|
||||
run: sync.onStart,
|
||||
}
|
||||
const prepAction = !sealed
|
||||
? canCapture
|
||||
? {
|
||||
label: pendingCapture ? '封存中…' : '封存测试版本',
|
||||
hint: '只读导出测试库,生成一份可发布的整库版本。',
|
||||
disabled: pendingCapture,
|
||||
run: onCapture,
|
||||
}
|
||||
? captureAction
|
||||
: { label: '尚无封存', hint: captureHint(view, canWrite), disabled: true, run: () => {} }
|
||||
: productionClass === 'nonempty' && baseline.canStart
|
||||
? {
|
||||
label: baseline.pending ? '投递中…' : '建立目标权威基线(维护隔离)',
|
||||
hint: '生产目标非空但还没有权威版本,先登记一份基线。',
|
||||
disabled: baseline.pending,
|
||||
run: baseline.onStart,
|
||||
}
|
||||
: !authorizationActive && sync.canSign
|
||||
? {
|
||||
label: sync.pendingGrant ? '签发中…' : '签发同步授权(30 分钟)',
|
||||
hint: '授权后才允许写生产;一次授权只对当前目标+快照有效。',
|
||||
disabled: sync.pendingGrant,
|
||||
run: sync.onGrant,
|
||||
}
|
||||
: inSync
|
||||
? canCapture
|
||||
? captureAction
|
||||
: null
|
||||
: productionClass === 'nonempty' && baseline.canStart
|
||||
? {
|
||||
label: baseline.pending ? '投递中…' : '建立目标权威基线(维护隔离)',
|
||||
hint: '生产目标非空但还没有权威版本,先登记一份基线。',
|
||||
disabled: baseline.pending,
|
||||
run: baseline.onStart,
|
||||
}
|
||||
: !authorizationActive && sync.canSign
|
||||
? {
|
||||
label: sync.pendingGrant ? '签发中…' : '签发同步授权(30 分钟)',
|
||||
hint: '授权后才允许写生产;一次授权只对当前目标+快照有效。',
|
||||
disabled: sync.pendingGrant,
|
||||
run: sync.onGrant,
|
||||
}
|
||||
: null
|
||||
|
||||
const productionText =
|
||||
productionClass === 'known' && production?.version
|
||||
@@ -1988,8 +1989,13 @@ export function ReleaseTargetsView(props: ViewProps) {
|
||||
<div className="rel-panel rel-status">
|
||||
<p className="rel-scope-state">
|
||||
{scopeName(scope)} ·{' '}
|
||||
{active ? `${jobKindText(view.job?.kind)}进行中` : sealed ? '已封存,同步按条件放行' : '尚无测试封存'}
|
||||
{sealed ? '(需要新版本时点上方“封存测试版本”)' : ''}
|
||||
{active
|
||||
? `${jobKindText(view.job?.kind)}进行中`
|
||||
: inSync
|
||||
? '生产已是当前测试封存'
|
||||
: sealed
|
||||
? '已封存,同步按条件放行'
|
||||
: '尚无测试封存'}
|
||||
</p>
|
||||
<dl className="rel-status-grid">
|
||||
<div>
|
||||
@@ -1998,6 +2004,15 @@ export function ReleaseTargetsView(props: ViewProps) {
|
||||
{sealed ? `快照 ${view.snapshot!.snapshot_id.slice(0, 12)}` : '尚无'}
|
||||
</dd>
|
||||
<small>{sealed ? stamp(view.snapshot!.created_at) : '先封存测试版本'}</small>
|
||||
{/* 封存入口跟着"测试封存"这一格走:主操作区已经放了封存按钮时不再重复;
|
||||
不能封存时把接口给的真实原因写在这里,而不是只藏在按钮 title 里。 */}
|
||||
{runningJob || prepAction === captureAction ? null : canCapture ? (
|
||||
<button type="button" className="rel-link rel-cell-action" onClick={onCapture} disabled={pendingCapture}>
|
||||
{captureAction.label}
|
||||
</button>
|
||||
) : (
|
||||
<small className="rel-unknown">{captureHint(view, canWrite)}</small>
|
||||
)}
|
||||
</div>
|
||||
<div>
|
||||
<dt>生产当前</dt>
|
||||
@@ -2010,9 +2025,11 @@ export function ReleaseTargetsView(props: ViewProps) {
|
||||
<small>
|
||||
{authorizationActive
|
||||
? `有效至 ${stamp(authorization.expires_at ?? '')}`
|
||||
: sync.canSign
|
||||
? '可在下方签发'
|
||||
: '需管理员签发'}
|
||||
: inSync
|
||||
? '已同步,无需签发'
|
||||
: sync.canSign
|
||||
? '可在下方签发'
|
||||
: '需管理员签发'}
|
||||
</small>
|
||||
</div>
|
||||
<div>
|
||||
@@ -2045,7 +2062,7 @@ export function ReleaseTargetsView(props: ViewProps) {
|
||||
) : null}
|
||||
<button
|
||||
type="button"
|
||||
className="rel-primary"
|
||||
className={inSync ? 'rel-primary rel-synced' : 'rel-primary'}
|
||||
onClick={primaryAction.run}
|
||||
disabled={primaryAction.disabled}
|
||||
title={primaryAction.hint}
|
||||
@@ -2056,12 +2073,13 @@ export function ReleaseTargetsView(props: ViewProps) {
|
||||
版本与快照
|
||||
</button>
|
||||
</div>
|
||||
{gate.reasons.length > 0 ? (
|
||||
{/* 已同步时闸口缺项(多半只是授权过期)跟下一步无关:不催、不自动展开,缺项仍在折叠区里可查。 */}
|
||||
{gate.reasons.length > 0 && !inSync ? (
|
||||
<p className="rel-hint">还差 {gate.reasons.length} 项条件,展开“发布前检查”查看原因。</p>
|
||||
) : null}
|
||||
</div>
|
||||
|
||||
<details className="rel-check" id="rel-check" open={gate.reasons.length > 0}>
|
||||
<details className="rel-check" id="rel-check" open={gate.reasons.length > 0 && !inSync}>
|
||||
<summary>
|
||||
发布前检查
|
||||
{gate.reasons.length > 0 ? `(${gate.reasons.length} 项未满足)` : '(已满足)'}
|
||||
@@ -2127,10 +2145,6 @@ export function ReleaseTargetsView(props: ViewProps) {
|
||||
sync={sync}
|
||||
baseline={baseline}
|
||||
verification={verification}
|
||||
canCapture={canCapture}
|
||||
canWrite={canWrite}
|
||||
pendingCapture={pendingCapture}
|
||||
onCapture={onCapture}
|
||||
onOpen={() => onDrawer(true)}
|
||||
/>
|
||||
)}
|
||||
@@ -2560,13 +2574,6 @@ export function ReleaseTargets() {
|
||||
onCapture={() => void startCapture()}
|
||||
onRecover={(windowJobID) => void recover(windowJobID)}
|
||||
/>
|
||||
<LegacySourceAssociation
|
||||
key={scope}
|
||||
scope={scope}
|
||||
snapshots={page?.snapshots ?? []}
|
||||
admin={role === 'admin'}
|
||||
onBound={() => load()}
|
||||
/>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
+255
-162
@@ -1,11 +1,13 @@
|
||||
/* 发布管理:按已确认稿的布局与色系(浅底、青绿主色、白色圆角面板)。 */
|
||||
/* 发布管理:沿用全站工作台视觉(styles.css 的钴蓝 + 中性灰 token)。
|
||||
以前这一页自带一套青绿色并用 !important 压过全局按钮,看起来像另一个系统;
|
||||
现在只在这里起别名,颜色一律回到全局 token,语义色(绿=完成、红=失败)也取全局。 */
|
||||
.release-targets {
|
||||
--rel-ink: #26394a;
|
||||
--rel-muted: #7b8d9a;
|
||||
--rel-line: #dce6ed;
|
||||
--rel-teal: #269e88;
|
||||
--rel-teal-dark: #228b75;
|
||||
--rel-teal-soft: #eaf8f3;
|
||||
--rel-ink: var(--ink-strong);
|
||||
--rel-muted: var(--ink-mute);
|
||||
--rel-line: var(--border-base);
|
||||
--rel-accent: var(--c-primary);
|
||||
--rel-accent-hover: var(--c-primary-hover);
|
||||
--rel-accent-soft: var(--bg-active);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
@@ -15,11 +17,13 @@
|
||||
}
|
||||
.release-targets h2 {
|
||||
margin: 0;
|
||||
font-size: 18px;
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.release-targets h3 {
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.rel-head {
|
||||
display: flex;
|
||||
@@ -42,27 +46,44 @@
|
||||
.release-targets button {
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
background: #fff;
|
||||
border: 1px solid #d6e2e8;
|
||||
border-radius: 7px;
|
||||
padding: 7px 14px;
|
||||
color: #41596b;
|
||||
background: var(--bg-panel);
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: var(--r-md);
|
||||
padding: 6px 14px;
|
||||
color: var(--ink-base);
|
||||
}
|
||||
.release-targets button:hover:not(:disabled) {
|
||||
background: #edf8f5;
|
||||
background: var(--bg-hover);
|
||||
}
|
||||
.release-targets button:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.55;
|
||||
}
|
||||
.release-targets button:focus-visible {
|
||||
outline: none;
|
||||
box-shadow: var(--c-focus-ring);
|
||||
}
|
||||
.rel-primary {
|
||||
background: var(--rel-teal) !important;
|
||||
border-color: var(--rel-teal) !important;
|
||||
background: var(--rel-accent) !important;
|
||||
border-color: var(--rel-accent) !important;
|
||||
color: #fff !important;
|
||||
font-weight: 600;
|
||||
}
|
||||
.rel-primary:hover:not(:disabled) {
|
||||
background: var(--rel-accent-hover) !important;
|
||||
border-color: var(--rel-accent-hover) !important;
|
||||
}
|
||||
/* "已同步"是结论不是失效按钮:不走半透明禁用态,用完成色说清楚已经到位。 */
|
||||
.rel-primary.rel-synced,
|
||||
.rel-primary.rel-synced:disabled {
|
||||
opacity: 1;
|
||||
cursor: default;
|
||||
background: var(--c-done-bg) !important;
|
||||
border-color: var(--c-done-border) !important;
|
||||
color: var(--c-done) !important;
|
||||
}
|
||||
.rel-secondary {
|
||||
background: #fff;
|
||||
background: var(--bg-panel);
|
||||
}
|
||||
.rel-tabs {
|
||||
display: flex;
|
||||
@@ -70,54 +91,63 @@
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.rel-tab {
|
||||
width: 310px;
|
||||
width: 300px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
padding: 13px 18px !important;
|
||||
padding: 12px 16px !important;
|
||||
text-align: left;
|
||||
border-radius: 9px !important;
|
||||
border-radius: var(--r-lg) !important;
|
||||
border: 1px solid var(--rel-line) !important;
|
||||
box-shadow: var(--shadow-card);
|
||||
}
|
||||
.rel-tab strong {
|
||||
font-size: 16px;
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
color: var(--ink-strong);
|
||||
}
|
||||
.rel-tab.selected {
|
||||
background: var(--rel-teal-soft) !important;
|
||||
border: 2px solid var(--rel-teal) !important;
|
||||
background: var(--rel-accent-soft) !important;
|
||||
border-color: var(--rel-accent) !important;
|
||||
box-shadow: inset 0 0 0 1px var(--rel-accent);
|
||||
}
|
||||
.rel-tab.selected strong {
|
||||
color: var(--rel-accent);
|
||||
}
|
||||
.rel-pill {
|
||||
border-radius: 5px;
|
||||
border-radius: 999px;
|
||||
font-size: 12px;
|
||||
padding: 2px 9px;
|
||||
padding: 1px 9px;
|
||||
white-space: nowrap;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
.rel-pill.green {
|
||||
color: #228368;
|
||||
background: #e6f5ef;
|
||||
border-color: #bfe6d8;
|
||||
color: var(--c-done);
|
||||
background: var(--c-done-bg);
|
||||
border-color: var(--c-done-border);
|
||||
}
|
||||
.rel-pill.blue {
|
||||
color: #387eb8;
|
||||
background: #eaf3fc;
|
||||
border-color: #c6ddf1;
|
||||
color: var(--c-run);
|
||||
background: var(--c-run-bg);
|
||||
border-color: var(--c-run-border);
|
||||
}
|
||||
.rel-pill.gray {
|
||||
color: #7c8d99;
|
||||
background: #eff3f6;
|
||||
border-color: #dde5ea;
|
||||
color: var(--c-dead);
|
||||
background: var(--c-dead-bg);
|
||||
border-color: var(--border-base);
|
||||
}
|
||||
.rel-pill.red {
|
||||
color: #b4381f;
|
||||
background: #fdecea;
|
||||
border-color: #f3c6bc;
|
||||
color: var(--c-fail);
|
||||
background: var(--c-fail-bg);
|
||||
border-color: var(--c-fail-border);
|
||||
}
|
||||
.rel-panel {
|
||||
background: #fff;
|
||||
background: var(--bg-panel);
|
||||
border: 1px solid var(--rel-line);
|
||||
border-radius: 12px;
|
||||
padding: 20px 22px;
|
||||
border-radius: var(--r-lg);
|
||||
box-shadow: var(--shadow-card);
|
||||
padding: 18px 20px;
|
||||
min-width: 0;
|
||||
}
|
||||
.rel-between {
|
||||
@@ -129,7 +159,7 @@
|
||||
}
|
||||
.rel-panel-head {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
margin-bottom: 12px;
|
||||
@@ -140,18 +170,18 @@
|
||||
color: var(--rel-muted);
|
||||
}
|
||||
.rel-jobhead h2 {
|
||||
font-size: 19px;
|
||||
font-size: 16px;
|
||||
}
|
||||
.rel-versionline {
|
||||
margin: 12px 0 0;
|
||||
color: #496579;
|
||||
font-size: 14px;
|
||||
color: var(--ink-base);
|
||||
font-size: 13px;
|
||||
}
|
||||
.rel-versionline b {
|
||||
color: var(--rel-teal-dark);
|
||||
color: var(--rel-accent);
|
||||
}
|
||||
.rel-unknown {
|
||||
color: #9aa9b4 !important;
|
||||
color: var(--ink-faint) !important;
|
||||
font-weight: 500;
|
||||
}
|
||||
.rel-metrics {
|
||||
@@ -161,8 +191,8 @@
|
||||
margin: 16px 0 0;
|
||||
}
|
||||
.rel-metrics div {
|
||||
border: 1px solid #e6edf2;
|
||||
border-radius: 9px;
|
||||
border: 1px solid var(--border-soft);
|
||||
border-radius: var(--r-md);
|
||||
padding: 10px 12px;
|
||||
}
|
||||
.rel-metrics dt {
|
||||
@@ -173,21 +203,22 @@
|
||||
margin: 4px 0 0;
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.rel-checklist {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
gap: 22px;
|
||||
flex-wrap: wrap;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
margin: 14px 0 0;
|
||||
padding: 11px 14px;
|
||||
border-radius: 9px;
|
||||
background: #f2faf6;
|
||||
padding: 12px 14px;
|
||||
border-radius: var(--r-md);
|
||||
background: var(--bg-soft);
|
||||
font-size: 13px;
|
||||
color: #228368;
|
||||
color: var(--c-done);
|
||||
}
|
||||
.rel-checklist .unknown {
|
||||
color: #8a9aa6;
|
||||
color: var(--ink-faint);
|
||||
}
|
||||
.rel-footnote {
|
||||
margin: 12px 0 0;
|
||||
@@ -216,8 +247,8 @@
|
||||
.rel-drawer-table th,
|
||||
.rel-parts th {
|
||||
text-align: left;
|
||||
background: #f8fafb;
|
||||
color: #8a9aa6;
|
||||
background: var(--bg-soft);
|
||||
color: var(--rel-muted);
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
padding: 9px 12px;
|
||||
@@ -227,7 +258,7 @@
|
||||
.rel-drawer-table td,
|
||||
.rel-parts td {
|
||||
padding: 10px 12px;
|
||||
border-top: 1px solid #eef2f5;
|
||||
border-top: 1px solid var(--border-soft);
|
||||
vertical-align: top;
|
||||
}
|
||||
.rel-table-empty {
|
||||
@@ -238,8 +269,8 @@
|
||||
}
|
||||
.rel-protection dl {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr;
|
||||
gap: 8px 14px;
|
||||
grid-template-columns: 11.5em 1fr;
|
||||
gap: 8px 16px;
|
||||
margin: 0 0 12px;
|
||||
font-size: 13px;
|
||||
}
|
||||
@@ -249,6 +280,8 @@
|
||||
.rel-protection dd {
|
||||
margin: 0;
|
||||
color: var(--rel-ink);
|
||||
font-variant-numeric: tabular-nums;
|
||||
word-break: break-all;
|
||||
}
|
||||
.rel-hint {
|
||||
margin: 0 0 10px;
|
||||
@@ -259,39 +292,39 @@
|
||||
.rel-warn {
|
||||
margin: 12px 0 0;
|
||||
font-size: 12px;
|
||||
color: #986b24;
|
||||
background: #fff8e8;
|
||||
border: 1px solid #ead7b0;
|
||||
border-radius: 7px;
|
||||
color: var(--c-warn);
|
||||
background: var(--c-warn-bg);
|
||||
border: 1px solid var(--c-warn-border);
|
||||
border-radius: var(--r-md);
|
||||
padding: 8px 10px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.rel-notice {
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
color: #986b24;
|
||||
background: #fff8e8;
|
||||
border: 1px solid #ead7b0;
|
||||
border-radius: 8px;
|
||||
color: var(--c-warn);
|
||||
background: var(--c-warn-bg);
|
||||
border: 1px solid var(--c-warn-border);
|
||||
border-radius: var(--r-md);
|
||||
padding: 9px 12px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.rel-blocked {
|
||||
border: 1px solid #f3c2b8;
|
||||
background: #fff6f3;
|
||||
border-radius: 10px;
|
||||
border: 1px solid var(--c-fail-border);
|
||||
background: var(--c-fail-bg);
|
||||
border-radius: var(--r-lg);
|
||||
padding: 12px 16px;
|
||||
}
|
||||
.rel-blocked strong {
|
||||
display: block;
|
||||
color: #a03a1e;
|
||||
color: var(--c-fail);
|
||||
font-size: 13px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
.rel-blocked p {
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
color: #7c2d12;
|
||||
color: var(--c-fail);
|
||||
}
|
||||
|
||||
/* 阶段条 */
|
||||
@@ -300,7 +333,7 @@
|
||||
align-items: stretch;
|
||||
gap: 8px;
|
||||
list-style: none;
|
||||
margin: 16px 0 6px;
|
||||
margin: 4px 0 8px;
|
||||
padding: 0;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
@@ -310,11 +343,11 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
padding: 11px 12px;
|
||||
border-radius: 8px;
|
||||
background: #f5f8fa;
|
||||
border: 1px solid #e1e8ed;
|
||||
color: #8a9aa6;
|
||||
padding: 10px 12px;
|
||||
border-radius: var(--r-md);
|
||||
background: var(--bg-soft);
|
||||
border: 1px solid var(--border-soft);
|
||||
color: var(--ink-faint);
|
||||
font-size: 13px;
|
||||
}
|
||||
.rel-step strong {
|
||||
@@ -325,13 +358,14 @@
|
||||
font-size: 11px;
|
||||
}
|
||||
.rel-step.done {
|
||||
color: #25886b;
|
||||
background: #f0faf5;
|
||||
color: var(--c-done);
|
||||
background: var(--c-done-bg);
|
||||
border-color: var(--c-done-border);
|
||||
}
|
||||
.rel-step.live {
|
||||
color: #167f70;
|
||||
background: #e9f8f4;
|
||||
border-color: #4eb49f;
|
||||
color: var(--c-run);
|
||||
background: var(--c-run-bg);
|
||||
border-color: var(--c-run-border);
|
||||
font-weight: 700;
|
||||
}
|
||||
.rel-step-mark {
|
||||
@@ -350,22 +384,6 @@
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* 仅剩的次级操作:封存测试版本 */
|
||||
.rel-seal {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
flex-wrap: wrap;
|
||||
background: #fbfdfe;
|
||||
}
|
||||
.rel-seal p {
|
||||
margin: 6px 0 0;
|
||||
font-size: 12px;
|
||||
color: var(--rel-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* 同步中 */
|
||||
.rel-jobmeta {
|
||||
margin: 8px 0 0;
|
||||
@@ -374,7 +392,7 @@
|
||||
}
|
||||
.rel-progress-foot {
|
||||
margin-top: 12px;
|
||||
border-top: 1px solid #eef2f5;
|
||||
border-top: 1px solid var(--border-soft);
|
||||
padding-top: 10px;
|
||||
font-size: 12px;
|
||||
color: var(--rel-muted);
|
||||
@@ -383,14 +401,14 @@
|
||||
border: 0 !important;
|
||||
background: transparent !important;
|
||||
padding: 2px 4px !important;
|
||||
color: #2b7fa6 !important;
|
||||
color: var(--rel-accent) !important;
|
||||
font-size: 12px;
|
||||
}
|
||||
.rel-datacard {
|
||||
border: 1px solid #dce6ed;
|
||||
border-radius: 10px;
|
||||
border: 1px solid var(--rel-line);
|
||||
border-radius: var(--r-lg);
|
||||
padding: 14px 16px;
|
||||
background: #fff;
|
||||
background: var(--bg-panel);
|
||||
}
|
||||
.rel-datacard header {
|
||||
display: flex;
|
||||
@@ -405,19 +423,20 @@
|
||||
}
|
||||
.rel-datacount strong {
|
||||
font-size: 24px;
|
||||
color: #9aa9b4;
|
||||
color: var(--ink-faint);
|
||||
margin-right: 4px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.rel-progress {
|
||||
height: 6px;
|
||||
border-radius: 8px;
|
||||
background: #edf1f4;
|
||||
background: var(--bg-softer);
|
||||
overflow: hidden;
|
||||
}
|
||||
.rel-progress span {
|
||||
display: block;
|
||||
height: 100%;
|
||||
background: var(--rel-teal);
|
||||
background: var(--rel-accent);
|
||||
}
|
||||
.rel-datadetail {
|
||||
margin: 10px 0 0;
|
||||
@@ -434,27 +453,27 @@
|
||||
padding: 4px 11px;
|
||||
}
|
||||
.rel-filters .chosen {
|
||||
color: #168b73;
|
||||
background: #ebf8f3;
|
||||
border-color: #a6d7c8;
|
||||
color: var(--rel-accent);
|
||||
background: var(--rel-accent-soft);
|
||||
border-color: var(--c-run-border);
|
||||
}
|
||||
.rel-log {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
background: #f9fbfc;
|
||||
border-top: 1px solid #eef2f5;
|
||||
background: var(--bg-soft);
|
||||
border-top: 1px solid var(--border-soft);
|
||||
padding: 10px 12px;
|
||||
font-size: 12px;
|
||||
color: #7b8e9c;
|
||||
color: var(--rel-muted);
|
||||
}
|
||||
|
||||
/* 版本与快照抽屉 */
|
||||
.rel-drawer-backdrop {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(20, 52, 74, 0.4);
|
||||
background: rgb(0 0 0 / 32%);
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
z-index: 40;
|
||||
@@ -463,9 +482,9 @@
|
||||
width: min(1024px, 92vw);
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
background: #fff;
|
||||
border-left: 1px solid #dce6ed;
|
||||
box-shadow: -12px 0 32px rgba(19, 44, 61, 0.18);
|
||||
background: var(--bg-panel);
|
||||
border-left: 1px solid var(--rel-line);
|
||||
box-shadow: var(--shadow-float);
|
||||
padding: 22px 26px 28px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -493,13 +512,13 @@
|
||||
margin-top: 2px;
|
||||
}
|
||||
.rel-drawer-table tr.selected td {
|
||||
background: #f4fbf8;
|
||||
background: var(--rel-accent-soft);
|
||||
}
|
||||
.rel-snapshot {
|
||||
border: 1px solid #cfe6dd;
|
||||
border-radius: 10px;
|
||||
border: 1px solid var(--rel-line);
|
||||
border-radius: var(--r-lg);
|
||||
padding: 16px 18px;
|
||||
background: #fbfefd;
|
||||
background: var(--bg-soft);
|
||||
}
|
||||
.rel-snapshot header {
|
||||
display: flex;
|
||||
@@ -515,9 +534,9 @@
|
||||
margin: 12px 0;
|
||||
}
|
||||
.rel-snapshot-grid div {
|
||||
border: 1px solid #e2eef7;
|
||||
border-radius: 8px;
|
||||
background: #fff;
|
||||
border: 1px solid var(--border-soft);
|
||||
border-radius: var(--r-md);
|
||||
background: var(--bg-panel);
|
||||
padding: 9px 11px;
|
||||
}
|
||||
.rel-snapshot-grid dt {
|
||||
@@ -534,12 +553,12 @@
|
||||
.rel-parts summary {
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
color: #2b7fa6;
|
||||
color: var(--rel-accent);
|
||||
}
|
||||
.rel-parts table {
|
||||
margin-top: 8px;
|
||||
border: 1px solid #e6edf2;
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--border-soft);
|
||||
border-radius: var(--r-md);
|
||||
overflow: hidden;
|
||||
}
|
||||
.rel-drawer-actions {
|
||||
@@ -548,12 +567,12 @@
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.rel-danger {
|
||||
border-color: #e7b4a8 !important;
|
||||
color: #b4381f !important;
|
||||
border-color: var(--c-fail-border) !important;
|
||||
color: var(--c-fail) !important;
|
||||
}
|
||||
.rel-drawer-foot {
|
||||
margin-top: auto;
|
||||
border-top: 1px solid #eef2f5;
|
||||
border-top: 1px solid var(--border-soft);
|
||||
padding-top: 14px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -602,7 +621,7 @@
|
||||
margin: 2px 0 0;
|
||||
font-style: normal;
|
||||
font-size: 11px;
|
||||
color: var(--rel-muted, #7b8d9a);
|
||||
color: var(--ink-faint);
|
||||
}
|
||||
|
||||
.rel-scope-note {
|
||||
@@ -617,13 +636,13 @@
|
||||
margin: 0 0 12px;
|
||||
}
|
||||
.rel-drawer-kinds div {
|
||||
border: 1px solid var(--rel-line, #dce6ed);
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--rel-line);
|
||||
border-radius: var(--r-md);
|
||||
padding: 8px 10px;
|
||||
}
|
||||
.rel-drawer-kinds dt {
|
||||
font-size: 11px;
|
||||
color: var(--rel-muted, #7b8d9a);
|
||||
color: var(--rel-muted);
|
||||
}
|
||||
.rel-drawer-kinds dd {
|
||||
margin: 3px 0 0;
|
||||
@@ -645,12 +664,12 @@
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
border-bottom: 1px dashed var(--rel-line, #dce6ed);
|
||||
border-bottom: 1px dashed var(--rel-line);
|
||||
padding: 4px 0;
|
||||
font-size: 12px;
|
||||
}
|
||||
.rel-maintenance-rows span {
|
||||
color: var(--rel-muted, #7b8d9a);
|
||||
color: var(--rel-muted);
|
||||
}
|
||||
.rel-maintenance-rows b {
|
||||
font-variant-numeric: tabular-nums;
|
||||
@@ -687,9 +706,9 @@
|
||||
padding: 4px 10px;
|
||||
}
|
||||
.rel-history-filters button.active {
|
||||
color: #168b73;
|
||||
background: #ebf8f3;
|
||||
border-color: #a6d7c8;
|
||||
color: var(--rel-accent);
|
||||
background: var(--rel-accent-soft);
|
||||
border-color: var(--c-run-border);
|
||||
}
|
||||
.rel-history-pager {
|
||||
display: flex;
|
||||
@@ -706,33 +725,44 @@
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
font-size: 11px;
|
||||
background: #f7fafc;
|
||||
border: 1px solid #e6edf2;
|
||||
border-radius: 7px;
|
||||
background: var(--bg-soft);
|
||||
border: 1px solid var(--border-soft);
|
||||
border-radius: var(--r-md);
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
/* 发布管理精简版:一个状态卡 + 一个主按钮,其余收进折叠区。 */
|
||||
.rel-status {
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
gap: 16px;
|
||||
padding: 18px 20px;
|
||||
}
|
||||
.rel-scope-state {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--ink-base);
|
||||
}
|
||||
/* 四格状态是一条从测试到生产的链:用竖分隔线排成一行,不再各自加框。 */
|
||||
.rel-status-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
||||
gap: 14px;
|
||||
gap: 14px 0;
|
||||
margin: 0;
|
||||
}
|
||||
.rel-status-grid div {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
padding: 10px 12px;
|
||||
background: var(--card);
|
||||
padding: 2px 16px;
|
||||
min-width: 0;
|
||||
}
|
||||
.rel-status-grid > div:first-child {
|
||||
padding-left: 0;
|
||||
}
|
||||
.rel-status-grid > div + div {
|
||||
border-left: 1px solid var(--border-soft);
|
||||
}
|
||||
.rel-status-grid dt {
|
||||
font-size: 12px;
|
||||
color: var(--muted-foreground);
|
||||
color: var(--ink-mute);
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.rel-status-grid dd {
|
||||
@@ -740,23 +770,30 @@
|
||||
font-weight: 600;
|
||||
font-size: 15px;
|
||||
word-break: break-all;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.rel-status-grid small {
|
||||
display: block;
|
||||
margin-top: 4px;
|
||||
color: var(--muted-foreground);
|
||||
color: var(--ink-mute);
|
||||
font-size: 12px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.rel-status-grid .rel-cell-action {
|
||||
margin: 4px 0 0 -4px;
|
||||
}
|
||||
.rel-status-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding-top: 14px;
|
||||
border-top: 1px solid var(--border-soft);
|
||||
}
|
||||
.rel-next {
|
||||
flex: 1 1 320px;
|
||||
margin: 0;
|
||||
color: var(--muted-foreground);
|
||||
color: var(--ink-mute);
|
||||
font-size: 13px;
|
||||
}
|
||||
.rel-next span {
|
||||
@@ -764,27 +801,83 @@
|
||||
margin-right: 8px;
|
||||
padding: 1px 8px;
|
||||
border-radius: 999px;
|
||||
background: var(--accent);
|
||||
color: var(--foreground);
|
||||
background: var(--bg-active);
|
||||
color: var(--rel-accent);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* 折叠区统一成一种样式:卡片 + 自绘箭头,取代浏览器默认的小三角。 */
|
||||
.rel-check,
|
||||
.rel-advanced {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 4px 16px 12px;
|
||||
background: var(--card);
|
||||
border: 1px solid var(--rel-line);
|
||||
border-radius: var(--r-lg);
|
||||
padding: 0 18px;
|
||||
background: var(--bg-panel);
|
||||
box-shadow: var(--shadow-card);
|
||||
}
|
||||
.rel-check summary,
|
||||
.rel-advanced summary {
|
||||
.rel-check > summary,
|
||||
.rel-advanced > summary {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
cursor: pointer;
|
||||
padding: 10px 0;
|
||||
padding: 13px 0;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--ink-strong);
|
||||
}
|
||||
.rel-check > summary::-webkit-details-marker,
|
||||
.rel-advanced > summary::-webkit-details-marker {
|
||||
display: none;
|
||||
}
|
||||
.rel-check > summary::before,
|
||||
.rel-advanced > summary::before {
|
||||
content: '';
|
||||
flex: none;
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-right: 1.5px solid var(--ink-mute);
|
||||
border-bottom: 1.5px solid var(--ink-mute);
|
||||
transform: rotate(-45deg);
|
||||
transition: transform 0.15s ease;
|
||||
}
|
||||
.rel-check[open] > summary::before,
|
||||
.rel-advanced[open] > summary::before {
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
.rel-check[open],
|
||||
.rel-advanced[open] {
|
||||
padding-bottom: 16px;
|
||||
}
|
||||
.rel-check .rel-gate,
|
||||
.rel-check .rel-checklist {
|
||||
margin: 6px 0 10px;
|
||||
}
|
||||
/* 恢复验证是嵌在检查区里的子块:给它统一行距,按钮不再贴着上面的报告折叠。 */
|
||||
.rel-verification {
|
||||
margin-top: 14px;
|
||||
padding-top: 14px;
|
||||
border-top: 1px solid var(--border-soft);
|
||||
}
|
||||
.rel-verification > * + * {
|
||||
margin-top: 8px;
|
||||
}
|
||||
.rel-verification > p.rel-hint {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.rel-advanced > * + * {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
/* 放在文件末尾:要压过上面同优先级的桌面规则。 */
|
||||
@media (max-width: 760px) {
|
||||
.rel-status-grid div,
|
||||
.rel-status-grid > div:first-child {
|
||||
padding: 0;
|
||||
}
|
||||
.rel-status-grid > div + div {
|
||||
border-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user