Merge pull request 'fix(design-system): 스타일·토큰·story·검사를 토큰 계약에 맞춘다' (#56) from donghyeon.kang/fix/r9-design-tokens-stories into main
frontend-quality-gates / merge / static checks (push) Successful in 1m12s
frontend-quality-gates / merge / tests (push) Failing after 10m10s
frontend-quality-gates / merge / browser tests (push) Successful in 6m1s
frontend-quality-gates / FE-GATE-017 / diagram-review (push) Skipped
frontend-quality-gates / FE-GATE-014 / config-compatibility (push) Skipped
frontend-quality-gates / FE-GATE-028 / manual-accessibility-review (push) Skipped
frontend-quality-gates / FE-GATE-026 / lab-performance (push) Skipped
frontend-quality-gates / FE-GATE-015 / immutable-release-candidate (push) Skipped
frontend-quality-gates / external-vulnerability-provider (push) Skipped
frontend-quality-gates / external-provenance-provider (push) Skipped
frontend-quality-gates / promote-verified-immutable-candidate (push) Skipped
frontend-quality-gates / deploy-promoted-release (push) Skipped
frontend-quality-gates / FE-GATE-019 / hosting-header (push) Skipped
frontend-quality-gates / FE-GATE-021 / runbook-boot-config (push) Skipped
frontend-quality-gates / FE-GATE-022 / runbook-chunk-mismatch (push) Skipped
frontend-quality-gates / FE-GATE-023 / runbook-api-degradation (push) Skipped
frontend-quality-gates / FE-GATE-024 / runbook-telemetry (push) Skipped
frontend-quality-gates / FE-GATE-025 / runbook-release-rollback (push) Skipped
frontend-quality-gates / FE-GATE-018 / field-web-vitals (push) Skipped
frontend-quality-gates / main / self-tests and removal drills (push) Failing after 2m3s
frontend-quality-gates / merge / static checks (push) Successful in 1m12s
frontend-quality-gates / merge / tests (push) Failing after 10m10s
frontend-quality-gates / merge / browser tests (push) Successful in 6m1s
frontend-quality-gates / FE-GATE-017 / diagram-review (push) Skipped
frontend-quality-gates / FE-GATE-014 / config-compatibility (push) Skipped
frontend-quality-gates / FE-GATE-028 / manual-accessibility-review (push) Skipped
frontend-quality-gates / FE-GATE-026 / lab-performance (push) Skipped
frontend-quality-gates / FE-GATE-015 / immutable-release-candidate (push) Skipped
frontend-quality-gates / external-vulnerability-provider (push) Skipped
frontend-quality-gates / external-provenance-provider (push) Skipped
frontend-quality-gates / promote-verified-immutable-candidate (push) Skipped
frontend-quality-gates / deploy-promoted-release (push) Skipped
frontend-quality-gates / FE-GATE-019 / hosting-header (push) Skipped
frontend-quality-gates / FE-GATE-021 / runbook-boot-config (push) Skipped
frontend-quality-gates / FE-GATE-022 / runbook-chunk-mismatch (push) Skipped
frontend-quality-gates / FE-GATE-023 / runbook-api-degradation (push) Skipped
frontend-quality-gates / FE-GATE-024 / runbook-telemetry (push) Skipped
frontend-quality-gates / FE-GATE-025 / runbook-release-rollback (push) Skipped
frontend-quality-gates / FE-GATE-018 / field-web-vitals (push) Skipped
frontend-quality-gates / main / self-tests and removal drills (push) Failing after 2m3s
This commit was merged in pull request #56.
This commit is contained in:
@@ -203,7 +203,7 @@ export function AsyncSurface({
|
||||
return (
|
||||
<section aria-busy={state.overlay.refreshing || state.overlay.mutationPending}>
|
||||
{state.indicator ? (
|
||||
<div role="status" aria-live="polite">
|
||||
<div className="async-surface__status" role="status" aria-live="polite">
|
||||
<span>
|
||||
{message(
|
||||
state.indicator === "stale-degraded"
|
||||
|
||||
@@ -0,0 +1,411 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { useRef, useState } from "react";
|
||||
|
||||
import { deriveAsyncState } from "../../application/view-models/async-state.ts";
|
||||
import { createFailure } from "../../contracts/errors.ts";
|
||||
import {
|
||||
AccessSurface,
|
||||
Breadcrumbs,
|
||||
Button,
|
||||
Card,
|
||||
CloseIcon,
|
||||
CollectionPage,
|
||||
ConfirmationDialog,
|
||||
DataTable,
|
||||
DetailPage,
|
||||
DirtyNavigationDialog,
|
||||
DisclosureGroup,
|
||||
Drawer,
|
||||
EmptySurface,
|
||||
ErrorIcon,
|
||||
ErrorSummary,
|
||||
Field,
|
||||
Form,
|
||||
FormActions,
|
||||
FormFailureStatus,
|
||||
FormField,
|
||||
FormPage,
|
||||
FormSaveFeedback,
|
||||
IconButton,
|
||||
InfoIcon,
|
||||
LinkButton,
|
||||
MenuIcon,
|
||||
NextIcon,
|
||||
PageHeader,
|
||||
Pagination,
|
||||
PaginationBar,
|
||||
Popover,
|
||||
PreviousIcon,
|
||||
SearchField,
|
||||
SearchFilterToolbar,
|
||||
SearchIcon,
|
||||
Separator,
|
||||
Spinner,
|
||||
StandardPage,
|
||||
StatusPage,
|
||||
SuccessIcon,
|
||||
WarningIcon,
|
||||
} from "./index.ts";
|
||||
|
||||
/**
|
||||
* 1112/04-10. Every screen component the design-system barrel exports has a
|
||||
* story (tests/unit/design-system-story-coverage.test.ts), so its states can
|
||||
* be opened, and tests/storybook/galleries.spec.ts scans each story with axe
|
||||
* in both colour schemes. The galleries (galleries.stories.tsx) show the
|
||||
* primitives together; these show the rest one group at a time.
|
||||
* Example copy is Korean in every locale, like the galleries (08-07).
|
||||
*/
|
||||
const meta = {
|
||||
title: "Platform/Catalog",
|
||||
parameters: {
|
||||
layout: "fullscreen",
|
||||
page: true,
|
||||
},
|
||||
} satisfies Meta;
|
||||
|
||||
export default meta;
|
||||
type Story = StoryObj<typeof meta>;
|
||||
|
||||
function Page(props: Readonly<{ title: string; description: string; children: React.ReactNode }>) {
|
||||
return (
|
||||
<section className="ui-page" lang="ko-KR">
|
||||
<PageHeader title={props.title} description={props.description} />
|
||||
{props.children}
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
export const Overlays: Story = {
|
||||
render: () => <OverlayCatalog />,
|
||||
};
|
||||
|
||||
function OverlayCatalog() {
|
||||
const [confirming, setConfirming] = useState(false);
|
||||
const [drawerOpen, setDrawerOpen] = useState(false);
|
||||
const drawerTrigger = useRef<HTMLButtonElement | null>(null);
|
||||
return (
|
||||
<Page title="겹치는 화면" description="확인 대화 상자, 서랍, 팝오버는 Escape로 닫고 연 곳으로 포커스를 돌립니다.">
|
||||
<div className="ui-cluster">
|
||||
<Button variant="danger" onClick={() => setConfirming(true)}>
|
||||
항목 삭제
|
||||
</Button>
|
||||
<Button ref={drawerTrigger} variant="secondary" onClick={() => setDrawerOpen(true)}>
|
||||
서랍 열기
|
||||
</Button>
|
||||
<Popover triggerLabel="도움말">
|
||||
<p>팝오버는 짧은 보조 설명을 담습니다.</p>
|
||||
</Popover>
|
||||
</div>
|
||||
<ConfirmationDialog
|
||||
open={confirming}
|
||||
title="이 항목을 삭제할까요?"
|
||||
description="삭제한 항목은 되돌릴 수 없습니다."
|
||||
confirmLabel="삭제"
|
||||
cancelLabel="취소"
|
||||
danger
|
||||
onConfirm={() => setConfirming(false)}
|
||||
onCancel={() => setConfirming(false)}
|
||||
/>
|
||||
<Drawer
|
||||
open={drawerOpen}
|
||||
onClose={() => setDrawerOpen(false)}
|
||||
returnFocusRef={drawerTrigger}
|
||||
title="필터"
|
||||
closeLabel="서랍 닫기"
|
||||
>
|
||||
<p>서랍 안의 내용입니다.</p>
|
||||
</Drawer>
|
||||
</Page>
|
||||
);
|
||||
}
|
||||
|
||||
export const NavigationAndControls: Story = {
|
||||
render: () => <NavigationCatalog />,
|
||||
};
|
||||
|
||||
function NavigationCatalog() {
|
||||
const [page, setPage] = useState(2);
|
||||
const [query, setQuery] = useState("보고서");
|
||||
return (
|
||||
<Page title="탐색과 입력" description="링크 버튼, 아이콘 버튼, 검색 입력, 이동 경로, 페이지 탐색입니다.">
|
||||
<Breadcrumbs
|
||||
label="이동 경로"
|
||||
items={[{ label: "홈", href: "#home" }, { label: "보고서", href: "#reports" }, { label: "이번 달" }]}
|
||||
/>
|
||||
<div className="ui-cluster">
|
||||
<LinkButton href="#reports">보고서 보기</LinkButton>
|
||||
<LinkButton href="#archive" variant="secondary">
|
||||
보관함
|
||||
</LinkButton>
|
||||
<IconButton accessibleName="메뉴 열기" variant="secondary">
|
||||
<MenuIcon />
|
||||
</IconButton>
|
||||
<Spinner label="불러오는 중" />
|
||||
</div>
|
||||
<Separator />
|
||||
<SearchField
|
||||
label="검색어"
|
||||
value={query}
|
||||
onChange={(event) => setQuery(event.currentTarget.value)}
|
||||
clearLabel="검색어 지우기"
|
||||
onClear={() => setQuery("")}
|
||||
/>
|
||||
<Field label="직접 그린 입력" description="Field는 레이블·설명·오류를 입력과 잇습니다.">
|
||||
{({ controlId, describedBy, invalid }) => (
|
||||
<input
|
||||
aria-describedby={describedBy}
|
||||
aria-invalid={invalid || undefined}
|
||||
className="ui-field__input"
|
||||
id={controlId}
|
||||
/>
|
||||
)}
|
||||
</Field>
|
||||
<Pagination
|
||||
label="페이지"
|
||||
page={page}
|
||||
pageCount={5}
|
||||
previousLabel="이전 페이지"
|
||||
nextLabel="다음 페이지"
|
||||
pageLabel={(candidate) => `${candidate}쪽`}
|
||||
onChange={setPage}
|
||||
/>
|
||||
</Page>
|
||||
);
|
||||
}
|
||||
|
||||
export const Icons: Story = {
|
||||
render: () => (
|
||||
<Page title="의미 아이콘" description="아이콘은 장식이고, 뜻은 옆 글자나 버튼 이름이 전합니다.">
|
||||
<ul className="ui-cluster">
|
||||
{[
|
||||
["닫기", <CloseIcon key="close" />],
|
||||
["오류", <ErrorIcon key="error" />],
|
||||
["정보", <InfoIcon key="info" />],
|
||||
["메뉴", <MenuIcon key="menu" />],
|
||||
["다음", <NextIcon key="next" />],
|
||||
["이전", <PreviousIcon key="previous" />],
|
||||
["검색", <SearchIcon key="search" />],
|
||||
["성공", <SuccessIcon key="success" />],
|
||||
["경고", <WarningIcon key="warning" />],
|
||||
].map(([label, icon]) => (
|
||||
<li className="ui-cluster" key={label as string}>
|
||||
{icon}
|
||||
<span>{label}</span>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</Page>
|
||||
),
|
||||
};
|
||||
|
||||
const ROWS = Object.freeze([
|
||||
{ id: "r-1", name: "1월 보고서", owner: "운영팀" },
|
||||
{ id: "r-2", name: "2월 보고서", owner: "재무팀" },
|
||||
]);
|
||||
|
||||
export const Patterns: Story = {
|
||||
render: () => <PatternCatalog />,
|
||||
};
|
||||
|
||||
function PatternCatalog() {
|
||||
const [page, setPage] = useState(1);
|
||||
return (
|
||||
<Page title="화면 패턴" description="표, 검색 도구 막대, 접기 묶음, 페이지 막대, 접근 상태입니다.">
|
||||
<SearchFilterToolbar
|
||||
label="보고서 찾기"
|
||||
search={<SearchField label="검색어" clearLabel="검색어 지우기" onClear={() => {}} />}
|
||||
resetLabel="필터 초기화"
|
||||
onReset={() => setPage(1)}
|
||||
resultCount="2개 항목"
|
||||
/>
|
||||
<DataTable
|
||||
caption="보고서 목록"
|
||||
columns={[
|
||||
{ id: "name", header: "이름", cell: (row) => row.name },
|
||||
{ id: "owner", header: "담당", cell: (row) => row.owner },
|
||||
]}
|
||||
rows={ROWS}
|
||||
rowKey={(row) => row.id}
|
||||
empty={<EmptySurface title="보고서가 없습니다." />}
|
||||
/>
|
||||
<PaginationBar
|
||||
label="보고서 페이지"
|
||||
page={page}
|
||||
pageCount={3}
|
||||
previousLabel="이전 페이지"
|
||||
nextLabel="다음 페이지"
|
||||
pageLabel={(candidate) => `${candidate}쪽`}
|
||||
onChange={setPage}
|
||||
range="1–2 / 2"
|
||||
/>
|
||||
<DisclosureGroup
|
||||
label="자주 묻는 질문"
|
||||
items={[
|
||||
{ id: "q-1", title: "보고서는 언제 만들어지나요?", content: <p>매월 첫날 만들어집니다.</p> },
|
||||
{ id: "q-2", title: "누가 볼 수 있나요?", content: <p>담당 팀이 볼 수 있습니다.</p> },
|
||||
]}
|
||||
/>
|
||||
<div className="component-grid component-grid--three">
|
||||
<AccessSurface kind="auth-required" headingLevel={2} onAction={() => {}} />
|
||||
<AccessSurface kind="forbidden" headingLevel={2} onAction={() => {}} />
|
||||
<AccessSurface kind="not-found" headingLevel={2} onAction={() => {}} />
|
||||
</div>
|
||||
</Page>
|
||||
);
|
||||
}
|
||||
|
||||
// One story per page template: each draws the page's own h1.
|
||||
export const StandardTemplate: Story = {
|
||||
render: () => (
|
||||
<div lang="ko-KR">
|
||||
<StandardPage
|
||||
heading={{ eyebrow: "템플릿", title: "기본 페이지", description: "제목, 행동, 본문, 보조 정보 자리입니다." }}
|
||||
actions={[{ kind: "button", label: "행동", onAction: () => {} }]}
|
||||
aside={<p>보조 정보</p>}
|
||||
>
|
||||
<p>본문</p>
|
||||
</StandardPage>
|
||||
</div>
|
||||
),
|
||||
};
|
||||
|
||||
export const CollectionTemplate: Story = {
|
||||
render: () => (
|
||||
<div lang="ko-KR">
|
||||
<CollectionPage
|
||||
heading={{ title: "목록 페이지", description: "도구 막대, 결과 수, 목록, 페이지 탐색 자리입니다." }}
|
||||
actions={[{ kind: "link", label: "새 보고서", href: "#new", variant: "primary" }]}
|
||||
resultCount="2개 항목"
|
||||
>
|
||||
<ul aria-label="보고서">
|
||||
{ROWS.map((row) => (
|
||||
<li key={row.id}>{row.name}</li>
|
||||
))}
|
||||
</ul>
|
||||
</CollectionPage>
|
||||
</div>
|
||||
),
|
||||
};
|
||||
|
||||
export const DetailTemplate: Story = {
|
||||
render: () => (
|
||||
<div lang="ko-KR">
|
||||
<DetailPage
|
||||
heading={{ title: "상세 페이지", description: "속성, 본문, 위험한 작업 자리입니다." }}
|
||||
metadata={<p>담당: 운영팀</p>}
|
||||
destructiveAction={<Button variant="danger">삭제</Button>}
|
||||
>
|
||||
<p>상세 내용</p>
|
||||
</DetailPage>
|
||||
</div>
|
||||
),
|
||||
};
|
||||
|
||||
export const FormTemplate: Story = {
|
||||
render: () => <FormCatalog />,
|
||||
};
|
||||
|
||||
const SAVE_ERROR = createFailure("RATE_LIMITED", "EXAMPLE", 0);
|
||||
|
||||
function FormCatalog() {
|
||||
const [submitted, setSubmitted] = useState(false);
|
||||
return (
|
||||
<div lang="ko-KR">
|
||||
<FormPage
|
||||
heading={{ title: "폼 페이지", description: "오류 요약, 입력, 저장 결과, 저장 버튼 자리입니다." }}
|
||||
feedback={<FormFailureStatus failure={submitted ? SAVE_ERROR : null} onAction={() => setSubmitted(false)} />}
|
||||
errorSummary={
|
||||
<ErrorSummary
|
||||
fieldErrors={submitted ? { name: "이름을 입력해 주세요." } : {}}
|
||||
fieldLabels={{ name: "이름" }}
|
||||
fieldId={(name) => `catalog-${name}`}
|
||||
/>
|
||||
}
|
||||
fields={
|
||||
<Form id="catalog-form" pending={false} onSubmit={(event) => {
|
||||
event.preventDefault();
|
||||
setSubmitted(true);
|
||||
}}>
|
||||
<FormField id="catalog-name" label="이름" required />
|
||||
</Form>
|
||||
}
|
||||
formActions={
|
||||
<FormActions>
|
||||
<Button form="catalog-form" type="submit">
|
||||
저장
|
||||
</Button>
|
||||
</FormActions>
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export const StatusTemplate: Story = {
|
||||
render: () => (
|
||||
<div lang="ko-KR">
|
||||
<StatusPage
|
||||
variant="unauthenticated"
|
||||
heading={{ title: "로그인이 필요합니다.", description: "이 화면을 보려면 로그인해 주세요." }}
|
||||
primaryAction={{ kind: "button", label: "로그인", onAction: () => {} }}
|
||||
secondaryAction={{ kind: "link", label: "홈으로", href: "#home", variant: "secondary" }}
|
||||
supportReference="build-1:incident-1"
|
||||
/>
|
||||
</div>
|
||||
),
|
||||
};
|
||||
|
||||
/** What FormSaveFeedback and DirtyNavigationDialog read, drawn without a form. */
|
||||
export const FormFeedback: Story = {
|
||||
render: () => <FormFeedbackCatalog />,
|
||||
};
|
||||
|
||||
function FormFeedbackCatalog() {
|
||||
const [leaving, setLeaving] = useState(false);
|
||||
return (
|
||||
<Page title="저장 결과" description="결과를 모르는 저장, 다시 로그인, 저장하지 않고 떠나기 안내입니다.">
|
||||
<Card title="결과를 모르는 저장">
|
||||
<FormSaveFeedback
|
||||
form={{
|
||||
effectUnknown: true,
|
||||
otherSaveRunning: false,
|
||||
mutationState: deriveAsyncState({
|
||||
data: { id: "saved" },
|
||||
hasMutationEffectUnknown: true,
|
||||
isUnknownEffectResendable: true,
|
||||
}),
|
||||
failure: null,
|
||||
result: "effect-unknown",
|
||||
notice: null,
|
||||
supportReference: "request-1",
|
||||
submitForm: async () => undefined,
|
||||
confirmUnknownEffect: async () => {},
|
||||
resendUnknownEffect: async () => null,
|
||||
}}
|
||||
/>
|
||||
</Card>
|
||||
<Card title="다시 로그인">
|
||||
<FormSaveFeedback
|
||||
form={{
|
||||
effectUnknown: false,
|
||||
otherSaveRunning: false,
|
||||
mutationState: undefined,
|
||||
failure: createFailure("AUTH_REQUIRED", "EXAMPLE", 0),
|
||||
result: "reauth-required",
|
||||
notice: null,
|
||||
supportReference: undefined,
|
||||
submitForm: async () => undefined,
|
||||
confirmUnknownEffect: async () => {},
|
||||
resendUnknownEffect: async () => null,
|
||||
}}
|
||||
/>
|
||||
</Card>
|
||||
<Button variant="secondary" onClick={() => setLeaving(true)}>
|
||||
저장하지 않고 떠나기
|
||||
</Button>
|
||||
<DirtyNavigationDialog
|
||||
guard={{ blocked: leaving, stay: () => setLeaving(false), leave: () => setLeaving(false) }}
|
||||
/>
|
||||
</Page>
|
||||
);
|
||||
}
|
||||
@@ -13,7 +13,9 @@ import {
|
||||
Checkbox,
|
||||
Dialog,
|
||||
EmptySurface,
|
||||
ErrorSummary,
|
||||
ForbiddenSurface,
|
||||
FormFailureStatus,
|
||||
LoadingSurface,
|
||||
Menu,
|
||||
NotFoundSurface,
|
||||
@@ -364,6 +366,15 @@ function ScreenStateGallery() {
|
||||
data: ["기존 데이터"],
|
||||
isFetching: true,
|
||||
});
|
||||
// 1112/04-10. The write states a page draws through AsyncSurface.
|
||||
const unknownState = deriveAsyncState({
|
||||
data: ["보낸 변경"],
|
||||
hasMutationEffectUnknown: true,
|
||||
isUnknownEffectResendable: true,
|
||||
});
|
||||
const conflictState = deriveAsyncState({ data: ["입력한 변경"], hasMutationConflict: true });
|
||||
const staleState = deriveAsyncState({ data: ["지난 데이터"], isStale: true, isDegraded: true });
|
||||
const savingState = deriveAsyncState({ data: ["입력한 변경"], isMutationPending: true });
|
||||
|
||||
return (
|
||||
// 08-07. Example copy is Korean in every locale (outside the catalog).
|
||||
@@ -413,6 +424,58 @@ function ScreenStateGallery() {
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section className="gallery-section" aria-labelledby="write-states-title">
|
||||
<header className="gallery-section__header">
|
||||
<h2 id="write-states-title">저장 상태</h2>
|
||||
<p>결과를 모르는 저장, 충돌, 오래된 데이터, 저장 중을 입력을 지운 채가 아니라 그 위에 알립니다.</p>
|
||||
</header>
|
||||
<div className="component-grid component-grid--two">
|
||||
<Card title="결과를 모르는 저장">
|
||||
<AsyncSurface
|
||||
headingLevel={4}
|
||||
state={unknownState}
|
||||
supportReference="request-1"
|
||||
onReconcileUnknownEffect={() => setLastAction("저장된 것으로 확인했습니다.")}
|
||||
onResendUnknownEffect={() => setLastAction("같은 요청을 다시 보냈습니다.")}
|
||||
/>
|
||||
</Card>
|
||||
<Card title="충돌">
|
||||
<AsyncSurface
|
||||
headingLevel={4}
|
||||
state={conflictState}
|
||||
onResolveConflict={() => setLastAction("최신 상태를 다시 불러옵니다.")}
|
||||
>
|
||||
<div className="state-preview-content">입력은 유지됩니다.</div>
|
||||
</AsyncSurface>
|
||||
</Card>
|
||||
<Card title="오래된 데이터">
|
||||
<AsyncSurface headingLevel={4} state={staleState} onRetry={() => setLastAction("다시 불러옵니다.")}>
|
||||
<div className="state-preview-content">지난 데이터를 계속 보여 줍니다.</div>
|
||||
</AsyncSurface>
|
||||
</Card>
|
||||
<Card title="저장 중">
|
||||
<AsyncSurface headingLevel={4} state={savingState}>
|
||||
<div className="state-preview-content">입력한 변경</div>
|
||||
</AsyncSurface>
|
||||
</Card>
|
||||
<Card title="입력과 무관한 저장 실패">
|
||||
<FormFailureStatus
|
||||
headingLevel={4}
|
||||
failure={createFailure("RATE_LIMITED", "EXAMPLE", 0)}
|
||||
onAction={() => setLastAction("잠시 뒤 다시 저장합니다.")}
|
||||
/>
|
||||
</Card>
|
||||
<Card title="입력 오류 요약">
|
||||
<ErrorSummary
|
||||
headingLevel={4}
|
||||
fieldErrors={{ name: "이름을 입력해 주세요." }}
|
||||
fieldLabels={{ name: "이름" }}
|
||||
fieldId={(name) => `gallery-${name}`}
|
||||
/>
|
||||
</Card>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section className="gallery-section" aria-labelledby="access-states-title">
|
||||
<header className="gallery-section__header">
|
||||
<h2 id="access-states-title">접근과 탐색 상태</h2>
|
||||
|
||||
@@ -2,24 +2,25 @@
|
||||
--button-primary-background: var(--color-action);
|
||||
--button-primary-content: var(--color-on-action);
|
||||
--button-primary-hover: var(--color-action-hover);
|
||||
--button-primary-pressed: var(--color-action-pressed);
|
||||
--field-border: var(--color-border-strong);
|
||||
--field-border-invalid: var(--color-danger);
|
||||
--dialog-elevation: var(--elevation-dialog);
|
||||
/* 1106/08-03. The modal scrim: the content colour at this weight.
|
||||
`--dialog-backdrop` is the translucent scrim `::backdrop` paints.
|
||||
/* 1106/08-03. The modal scrim: the content colour at the scrim opacity
|
||||
(`--opacity-scrim`). `--dialog-backdrop` is the translucent scrim
|
||||
`::backdrop` paints.
|
||||
`--dialog-backdrop-on-surface` is that scrim already laid over the page
|
||||
surface, an opaque colour, for the root background under the scrollbar
|
||||
gutter while a modal is open (primitives.css). The two agree because a
|
||||
browser blends a translucent colour over another in sRGB. */
|
||||
--dialog-backdrop-weight: 55%;
|
||||
--dialog-backdrop: color-mix(
|
||||
in oklab,
|
||||
var(--color-content) var(--dialog-backdrop-weight),
|
||||
var(--color-content) calc(var(--opacity-scrim) * 100%),
|
||||
transparent
|
||||
);
|
||||
--dialog-backdrop-on-surface: color-mix(
|
||||
in srgb,
|
||||
var(--color-content) var(--dialog-backdrop-weight),
|
||||
var(--color-content) calc(var(--opacity-scrim) * 100%),
|
||||
var(--color-surface)
|
||||
);
|
||||
--navigation-active-background: color-mix(
|
||||
|
||||
@@ -6,12 +6,52 @@
|
||||
--palette-slate-500: oklch(0.48 0.025 247);
|
||||
--palette-slate-800: oklch(0.25 0.025 247);
|
||||
--palette-slate-950: oklch(0.16 0.02 255);
|
||||
/* Cool greys of the dark theme (hue 255). */
|
||||
--palette-night-100: oklch(0.94 0.012 255);
|
||||
--palette-night-300: oklch(0.74 0.025 255);
|
||||
--palette-night-450: oklch(0.58 0.025 255);
|
||||
--palette-night-650: oklch(0.36 0.025 255);
|
||||
--palette-night-800: oklch(0.25 0.025 255);
|
||||
--palette-night-850: oklch(0.235 0.025 255);
|
||||
--palette-night-900: oklch(0.205 0.022 255);
|
||||
--palette-blue-50: oklch(0.95 0.03 255);
|
||||
--palette-blue-150: oklch(0.83 0.1 245);
|
||||
--palette-blue-200: oklch(0.83 0.09 250);
|
||||
--palette-blue-250: oklch(0.79 0.12 245);
|
||||
--palette-blue-300: oklch(0.75 0.08 250);
|
||||
--palette-blue-500: oklch(0.7 0.14 250);
|
||||
--palette-blue-550: oklch(0.55 0.09 250);
|
||||
--palette-blue-600: oklch(0.55 0.18 255);
|
||||
--palette-blue-700: oklch(0.48 0.2 255);
|
||||
--palette-blue-800: oklch(0.38 0.16 255);
|
||||
--palette-blue-900: oklch(0.27 0.045 255);
|
||||
/* The focus ring hue. */
|
||||
--palette-sky-200: oklch(0.82 0.15 220);
|
||||
--palette-sky-600: oklch(0.52 0.15 230);
|
||||
/* Success. */
|
||||
--palette-green-50: oklch(0.95 0.04 155);
|
||||
--palette-green-200: oklch(0.83 0.1 155);
|
||||
--palette-green-400: oklch(0.72 0.1 155);
|
||||
--palette-green-600: oklch(0.53 0.1 155);
|
||||
--palette-green-800: oklch(0.35 0.12 155);
|
||||
--palette-green-900: oklch(0.27 0.045 155);
|
||||
/* Warning. */
|
||||
--palette-amber-50: oklch(0.96 0.05 80);
|
||||
--palette-amber-200: oklch(0.88 0.1 80);
|
||||
--palette-amber-400: oklch(0.75 0.12 80);
|
||||
--palette-amber-600: oklch(0.58 0.11 80);
|
||||
--palette-amber-800: oklch(0.38 0.12 70);
|
||||
--palette-amber-900: oklch(0.29 0.045 80);
|
||||
--palette-red-50: oklch(0.96 0.035 25);
|
||||
--palette-red-200: oklch(0.84 0.11 25);
|
||||
--palette-red-300: oklch(0.76 0.16 25);
|
||||
--palette-red-400: oklch(0.72 0.12 25);
|
||||
--palette-red-500: oklch(0.68 0.19 25);
|
||||
--palette-red-550: oklch(0.56 0.13 25);
|
||||
--palette-red-600: oklch(0.55 0.2 25);
|
||||
--palette-red-700: oklch(0.47 0.2 25);
|
||||
--palette-red-800: oklch(0.42 0.18 25);
|
||||
--palette-red-900: oklch(0.28 0.055 25);
|
||||
|
||||
--space-1: 0.25rem;
|
||||
--space-2: 0.5rem;
|
||||
@@ -21,6 +61,8 @@
|
||||
--space-6: 1.5rem;
|
||||
--space-8: 2rem;
|
||||
--space-12: 3rem;
|
||||
--space-14: 3.5rem;
|
||||
--space-16: 4rem;
|
||||
|
||||
--font-size-xs: 0.75rem;
|
||||
--font-size-sm: 0.875rem;
|
||||
@@ -28,6 +70,9 @@
|
||||
--font-size-lg: 1.125rem;
|
||||
--font-size-xl: 1.25rem;
|
||||
--font-size-2xl: 1.5rem;
|
||||
--font-size-3xl: 2rem;
|
||||
--font-size-4xl: 3.5rem;
|
||||
--line-height-compact: 1.05;
|
||||
--line-height-tight: 1.25;
|
||||
--line-height-normal: 1.5;
|
||||
--line-height-relaxed: 1.7;
|
||||
@@ -40,6 +85,7 @@
|
||||
--radius-md: 0.75rem;
|
||||
--radius-full: 999px;
|
||||
|
||||
--shadow-sticky: 0 1px 8px rgb(15 23 42 / 8%);
|
||||
--shadow-panel: 0 8px 28px rgb(15 23 42 / 8%);
|
||||
--shadow-popover: 0 14px 40px rgb(15 23 42 / 16%);
|
||||
--shadow-dialog: 0 24px 70px rgb(15 23 42 / 25%);
|
||||
|
||||
@@ -14,24 +14,27 @@
|
||||
--color-danger: var(--palette-red-600);
|
||||
--color-danger-hover: var(--palette-red-700);
|
||||
--color-on-action: var(--palette-white);
|
||||
--color-focus: oklch(0.52 0.15 230);
|
||||
--color-focus: var(--palette-sky-600);
|
||||
--color-disabled-content: color-mix(in oklab, var(--color-content) 55%, transparent);
|
||||
--color-disabled-surface: var(--color-surface-muted);
|
||||
--color-info-content: oklch(0.38 0.16 255);
|
||||
--color-info-surface: oklch(0.95 0.03 255);
|
||||
--color-info-border: oklch(0.75 0.08 250);
|
||||
--color-success-content: oklch(0.35 0.12 155);
|
||||
--color-success-surface: oklch(0.95 0.04 155);
|
||||
--color-success-border: oklch(0.72 0.1 155);
|
||||
--color-warning-content: oklch(0.38 0.12 70);
|
||||
--color-warning-surface: oklch(0.96 0.05 80);
|
||||
--color-warning-border: oklch(0.75 0.12 80);
|
||||
--color-danger-content: oklch(0.42 0.18 25);
|
||||
--color-danger-surface: oklch(0.96 0.035 25);
|
||||
--color-danger-border: oklch(0.72 0.12 25);
|
||||
--color-info-content: var(--palette-blue-800);
|
||||
--color-info-surface: var(--palette-blue-50);
|
||||
--color-info-border: var(--palette-blue-300);
|
||||
--color-success-content: var(--palette-green-800);
|
||||
--color-success-surface: var(--palette-green-50);
|
||||
--color-success-border: var(--palette-green-400);
|
||||
--color-warning-content: var(--palette-amber-800);
|
||||
--color-warning-surface: var(--palette-amber-50);
|
||||
--color-warning-border: var(--palette-amber-400);
|
||||
--color-danger-content: var(--palette-red-800);
|
||||
--color-danger-surface: var(--palette-red-50);
|
||||
--color-danger-border: var(--palette-red-400);
|
||||
|
||||
--font-sans: system-ui, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", sans-serif;
|
||||
/* 08-04. One step per heading level; a product retunes the scale here. */
|
||||
/* 08-04. One step per heading level; a product retunes the scale here.
|
||||
The page title grows with the viewport between two steps. */
|
||||
--font-size-heading-1: clamp(var(--font-size-3xl), 5vw, var(--font-size-4xl));
|
||||
--line-height-heading-1: var(--line-height-compact);
|
||||
--font-size-heading-2: var(--font-size-2xl);
|
||||
--font-size-heading-3: var(--font-size-xl);
|
||||
--font-size-heading-4: var(--font-size-md);
|
||||
@@ -40,6 +43,7 @@
|
||||
--radius-control: var(--radius-sm);
|
||||
--radius-surface: var(--radius-md);
|
||||
--radius-modal: var(--radius-md);
|
||||
--elevation-sticky: var(--shadow-sticky);
|
||||
--elevation-panel: var(--shadow-panel);
|
||||
--elevation-popover: var(--shadow-popover);
|
||||
--elevation-dialog: var(--shadow-dialog);
|
||||
@@ -56,33 +60,33 @@
|
||||
|
||||
:root[data-theme="dark"] {
|
||||
--color-surface: var(--palette-slate-950);
|
||||
--color-surface-muted: oklch(0.25 0.025 255);
|
||||
--color-panel: oklch(0.205 0.022 255);
|
||||
--color-surface-elevated: oklch(0.235 0.025 255);
|
||||
--color-border: oklch(0.36 0.025 255);
|
||||
--color-border-strong: oklch(0.58 0.025 255);
|
||||
--color-content: oklch(0.94 0.012 255);
|
||||
--color-content-muted: oklch(0.74 0.025 255);
|
||||
--color-surface-muted: var(--palette-night-800);
|
||||
--color-panel: var(--palette-night-900);
|
||||
--color-surface-elevated: var(--palette-night-850);
|
||||
--color-border: var(--palette-night-650);
|
||||
--color-border-strong: var(--palette-night-450);
|
||||
--color-content: var(--palette-night-100);
|
||||
--color-content-muted: var(--palette-night-300);
|
||||
--color-content-inverse: var(--palette-slate-950);
|
||||
--color-action: var(--palette-blue-500);
|
||||
--color-action-hover: oklch(0.79 0.12 245);
|
||||
--color-action-pressed: oklch(0.83 0.1 245);
|
||||
--color-action-hover: var(--palette-blue-250);
|
||||
--color-action-pressed: var(--palette-blue-150);
|
||||
--color-danger: var(--palette-red-500);
|
||||
--color-danger-hover: oklch(0.76 0.16 25);
|
||||
--color-danger-hover: var(--palette-red-300);
|
||||
--color-on-action: var(--palette-slate-950);
|
||||
--color-focus: oklch(0.82 0.15 220);
|
||||
--color-focus: var(--palette-sky-200);
|
||||
--color-disabled-content: color-mix(in oklab, var(--color-content) 55%, transparent);
|
||||
--color-disabled-surface: var(--color-surface-muted);
|
||||
--color-info-content: oklch(0.83 0.09 250);
|
||||
--color-info-surface: oklch(0.27 0.045 255);
|
||||
--color-info-border: oklch(0.55 0.09 250);
|
||||
--color-success-content: oklch(0.83 0.1 155);
|
||||
--color-success-surface: oklch(0.27 0.045 155);
|
||||
--color-success-border: oklch(0.53 0.1 155);
|
||||
--color-warning-content: oklch(0.88 0.1 80);
|
||||
--color-warning-surface: oklch(0.29 0.045 80);
|
||||
--color-warning-border: oklch(0.58 0.11 80);
|
||||
--color-danger-content: oklch(0.84 0.11 25);
|
||||
--color-danger-surface: oklch(0.28 0.055 25);
|
||||
--color-danger-border: oklch(0.56 0.13 25);
|
||||
--color-info-content: var(--palette-blue-200);
|
||||
--color-info-surface: var(--palette-blue-900);
|
||||
--color-info-border: var(--palette-blue-550);
|
||||
--color-success-content: var(--palette-green-200);
|
||||
--color-success-surface: var(--palette-green-900);
|
||||
--color-success-border: var(--palette-green-600);
|
||||
--color-warning-content: var(--palette-amber-200);
|
||||
--color-warning-surface: var(--palette-amber-900);
|
||||
--color-warning-border: var(--palette-amber-600);
|
||||
--color-danger-content: var(--palette-red-200);
|
||||
--color-danger-surface: var(--palette-red-900);
|
||||
--color-danger-border: var(--palette-red-550);
|
||||
}
|
||||
|
||||
@@ -43,13 +43,28 @@ export const REQUIRED_SEMANTIC_TOKENS = Object.freeze([
|
||||
"--opacity-skeleton",
|
||||
] as const);
|
||||
|
||||
/**
|
||||
* 1112/04-08. Required semantic tokens no template style reads, and why.
|
||||
* check:design-system requires every other required semantic token to be
|
||||
* read by a style (UI-03). A native `<dialog>` opened with `showModal()` sits
|
||||
* in the browser's top layer, above every z-index, so the template's dialogs
|
||||
* and drawer have no `z-index`; `--layer-modal` orders a product's own modal
|
||||
* surface that is not a `<dialog>`.
|
||||
*/
|
||||
export const SEMANTIC_TOKENS_WITHOUT_TEMPLATE_READER: readonly string[] = Object.freeze([
|
||||
"--layer-modal",
|
||||
]);
|
||||
|
||||
export const REQUIRED_COMPONENT_TOKENS = Object.freeze([
|
||||
"--button-primary-background",
|
||||
"--button-primary-content",
|
||||
"--button-primary-hover",
|
||||
"--button-primary-pressed",
|
||||
"--field-border",
|
||||
"--field-border-invalid",
|
||||
"--dialog-elevation",
|
||||
"--dialog-backdrop",
|
||||
"--dialog-backdrop-on-surface",
|
||||
"--navigation-active-background",
|
||||
"--drawer-width",
|
||||
"--toast-width",
|
||||
|
||||
@@ -99,9 +99,11 @@ export function ErrorSummary<Values extends FormValues>(props: Readonly<{
|
||||
export function FormFailureStatus(props: Readonly<{
|
||||
failure: AppFailure | null;
|
||||
onAction?: () => void;
|
||||
/** 08-05. Below the heading of the card or section that holds it. */
|
||||
headingLevel?: HeadingLevel | undefined;
|
||||
}>) {
|
||||
const { message } = useLocale();
|
||||
const { failure, onAction } = props;
|
||||
const { failure, onAction, headingLevel } = props;
|
||||
if (!failure) return null;
|
||||
return (
|
||||
<TerminalErrorSurface
|
||||
@@ -116,6 +118,7 @@ export function FormFailureStatus(props: Readonly<{
|
||||
}
|
||||
// 0929/08-04. The same support reference a failed query shows.
|
||||
supportReference={failure.requestId}
|
||||
headingLevel={headingLevel}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { useEffect, useState } from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
import { PageHeader } from "../design-system/index.ts";
|
||||
import { LinkButton, StandardPage } from "../design-system/index.ts";
|
||||
import { useLocale } from "../i18n/index.ts";
|
||||
import { useApplicationRuntime } from "../providers/application-provider.tsx";
|
||||
import { activeNavigationRoutes } from "../routes/navigation-policy.ts";
|
||||
@@ -47,53 +46,54 @@ export default function HomePage() {
|
||||
}, [runtime]);
|
||||
|
||||
return (
|
||||
<section className="ui-page">
|
||||
<PageHeader
|
||||
eyebrow={message("home.eyebrow")}
|
||||
title={message("route.APP_HOME.title")}
|
||||
description={message("home.description")}
|
||||
/>
|
||||
<div className="readiness-grid" role="group" aria-label={message("home.readiness")}>
|
||||
{READINESS_ITEMS.map((item) => (
|
||||
<article className="ui-panel" key={item}>
|
||||
<h2>{message(`home.readiness.${item}.title`)}</h2>
|
||||
<p>{message(`home.readiness.${item}.description`)}</p>
|
||||
</article>
|
||||
))}
|
||||
<StandardPage
|
||||
heading={{
|
||||
eyebrow: message("home.eyebrow"),
|
||||
title: message("route.APP_HOME.title"),
|
||||
description: message("home.description"),
|
||||
}}
|
||||
>
|
||||
<div className="home-page__sections">
|
||||
<div className="readiness-grid" role="group" aria-label={message("home.readiness")}>
|
||||
{READINESS_ITEMS.map((item) => (
|
||||
<article className="ui-panel" key={item}>
|
||||
<h2>{message(`home.readiness.${item}.title`)}</h2>
|
||||
<p>{message(`home.readiness.${item}.description`)}</p>
|
||||
</article>
|
||||
))}
|
||||
</div>
|
||||
<p className="ui-runtime-summary" aria-live="polite">
|
||||
{release === "failed"
|
||||
? message("home.runtime.failed")
|
||||
: release
|
||||
? message("home.runtime.summary", {
|
||||
buildId: release.buildId,
|
||||
releaseId: release.releaseId,
|
||||
})
|
||||
: message("home.runtime.checking")}
|
||||
</p>
|
||||
{starterRoutes.length > 0 ? (
|
||||
<section className="ui-panel starter-actions" aria-labelledby="starter-title">
|
||||
<div>
|
||||
<h2 id="starter-title">{message("home.starter.title")}</h2>
|
||||
<p>{message("home.starter.description")}</p>
|
||||
</div>
|
||||
<div className="button-row">
|
||||
{starterRoutes.map((route, index) => (
|
||||
<LinkButton
|
||||
key={route.routeId}
|
||||
to={route.path}
|
||||
variant={index === 0 ? "primary" : "secondary"}
|
||||
>
|
||||
{message("home.starter.open", {
|
||||
title: resolve(`route.${route.routeId}.navigation`),
|
||||
})}
|
||||
</LinkButton>
|
||||
))}
|
||||
</div>
|
||||
</section>
|
||||
) : null}
|
||||
</div>
|
||||
<p className="ui-runtime-summary" aria-live="polite">
|
||||
{release === "failed"
|
||||
? message("home.runtime.failed")
|
||||
: release
|
||||
? message("home.runtime.summary", {
|
||||
buildId: release.buildId,
|
||||
releaseId: release.releaseId,
|
||||
})
|
||||
: message("home.runtime.checking")}
|
||||
</p>
|
||||
{starterRoutes.length > 0 ? (
|
||||
<section className="ui-panel starter-actions" aria-labelledby="starter-title">
|
||||
<div>
|
||||
<h2 id="starter-title">{message("home.starter.title")}</h2>
|
||||
<p>{message("home.starter.description")}</p>
|
||||
</div>
|
||||
<div className="button-row">
|
||||
{starterRoutes.map((route, index) => (
|
||||
<Link
|
||||
key={route.routeId}
|
||||
className={
|
||||
index === 0 ? "ui-button" : "ui-button ui-button--secondary"
|
||||
}
|
||||
to={route.path}
|
||||
>
|
||||
{message("home.starter.open", {
|
||||
title: resolve(`route.${route.routeId}.navigation`),
|
||||
})}
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
</section>
|
||||
) : null}
|
||||
</section>
|
||||
</StandardPage>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -48,8 +48,8 @@
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: clamp(2rem, 5vw, 3.5rem);
|
||||
line-height: 1.05;
|
||||
font-size: var(--font-size-heading-1);
|
||||
line-height: var(--line-height-heading-1);
|
||||
letter-spacing: -0.04em;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,15 +1,22 @@
|
||||
@layer components {
|
||||
/* The home page's blocks below the template heading, a page gap apart. */
|
||||
.home-page__sections {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: var(--space-6);
|
||||
}
|
||||
|
||||
.readiness-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 1rem;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.readiness-grid p,
|
||||
.starter-actions p {
|
||||
margin-block-end: 0;
|
||||
color: var(--color-content-muted);
|
||||
line-height: 1.65;
|
||||
line-height: var(--line-height-relaxed);
|
||||
}
|
||||
|
||||
.starter-actions {
|
||||
@@ -17,23 +24,23 @@
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1.5rem;
|
||||
gap: var(--space-6);
|
||||
}
|
||||
|
||||
.button-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.75rem;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.route-loading {
|
||||
padding-block-start: 4rem;
|
||||
padding-block-start: var(--space-16);
|
||||
}
|
||||
|
||||
.gallery-section {
|
||||
display: grid;
|
||||
gap: 1rem;
|
||||
padding-block: 0.5rem;
|
||||
gap: var(--space-4);
|
||||
padding-block: var(--space-2);
|
||||
}
|
||||
|
||||
.gallery-section__header {
|
||||
@@ -46,14 +53,14 @@
|
||||
}
|
||||
|
||||
.gallery-section__header p {
|
||||
margin-block-start: 0.4rem;
|
||||
margin-block-start: var(--space-2);
|
||||
color: var(--color-content-muted);
|
||||
line-height: 1.6;
|
||||
line-height: var(--line-height-normal);
|
||||
}
|
||||
|
||||
.component-grid {
|
||||
display: grid;
|
||||
gap: 1rem;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.component-grid--two {
|
||||
@@ -67,45 +74,45 @@
|
||||
.component-stack,
|
||||
.example-form {
|
||||
display: grid;
|
||||
gap: 1rem;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.platform-metric-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
|
||||
gap: 1rem;
|
||||
gap: var(--space-4);
|
||||
margin-block: 0;
|
||||
}
|
||||
|
||||
.platform-metric {
|
||||
display: grid;
|
||||
gap: 0.25rem;
|
||||
padding: 0.85rem 1rem;
|
||||
gap: var(--space-1);
|
||||
padding: var(--space-3) var(--space-4);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-surface);
|
||||
background: var(--color-panel);
|
||||
}
|
||||
|
||||
.platform-metric dt {
|
||||
font-size: 0.8125rem;
|
||||
font-size: var(--font-size-sm);
|
||||
color: var(--color-content-muted);
|
||||
}
|
||||
|
||||
.platform-metric dd {
|
||||
display: grid;
|
||||
gap: 0.15rem;
|
||||
gap: var(--space-1);
|
||||
margin-inline-start: 0;
|
||||
}
|
||||
|
||||
.platform-metric__value {
|
||||
font-weight: 600;
|
||||
font-weight: var(--font-weight-semibold);
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.platform-metric__hint,
|
||||
.platform-operation__path {
|
||||
display: block;
|
||||
font-size: 0.8125rem;
|
||||
font-size: var(--font-size-sm);
|
||||
color: var(--color-content-muted);
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
@@ -113,22 +120,22 @@
|
||||
.badge-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
.token-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
|
||||
gap: 0.75rem;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.token-swatch {
|
||||
display: grid;
|
||||
gap: 0.45rem;
|
||||
gap: var(--space-2);
|
||||
min-width: 0;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-control);
|
||||
padding: 0.75rem;
|
||||
padding: var(--space-3);
|
||||
background: var(--color-panel);
|
||||
}
|
||||
|
||||
@@ -141,7 +148,7 @@
|
||||
.token-swatch code {
|
||||
overflow: hidden;
|
||||
color: var(--color-content-muted);
|
||||
font-size: 0.75rem;
|
||||
font-size: var(--font-size-xs);
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
@@ -152,13 +159,13 @@
|
||||
max-width: 100%;
|
||||
box-sizing: border-box;
|
||||
border: 1px solid var(--color-surface-muted);
|
||||
border-radius: 999px;
|
||||
padding: 0.65rem 1rem;
|
||||
border-radius: var(--radius-full);
|
||||
padding: var(--space-3) var(--space-4);
|
||||
color: var(--color-content);
|
||||
background: var(--color-panel);
|
||||
box-shadow: 0 8px 28px color-mix(in oklab, var(--color-content) 10%, transparent);
|
||||
font-size: 0.875rem;
|
||||
font-weight: 650;
|
||||
box-shadow: var(--elevation-panel);
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
}
|
||||
|
||||
.state-surface {
|
||||
@@ -170,24 +177,24 @@
|
||||
justify-content: center;
|
||||
border: 1px solid var(--color-surface-muted);
|
||||
border-radius: var(--radius-surface);
|
||||
padding: 1.25rem;
|
||||
padding: var(--space-5);
|
||||
background: var(--color-surface);
|
||||
}
|
||||
|
||||
.state-surface :is(h2, h3, h4),
|
||||
.state-surface p {
|
||||
margin-block-end: 0.75rem;
|
||||
margin-block-end: var(--space-3);
|
||||
}
|
||||
|
||||
.state-surface > p:not(.state-surface__eyebrow) {
|
||||
color: var(--color-content-muted);
|
||||
line-height: 1.55;
|
||||
line-height: var(--line-height-normal);
|
||||
}
|
||||
|
||||
.state-surface__eyebrow {
|
||||
color: var(--color-action-hover);
|
||||
font-size: 0.75rem;
|
||||
font-weight: 800;
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: var(--font-weight-bold);
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
|
||||
@@ -202,8 +209,22 @@
|
||||
background: var(--color-danger-surface);
|
||||
}
|
||||
|
||||
/* The notice over kept content: its words and actions on one wrapping row,
|
||||
a request reference or a refusal on its own row below. */
|
||||
.async-surface__status {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: var(--space-2) var(--space-3);
|
||||
}
|
||||
|
||||
.async-surface__status > p {
|
||||
flex-basis: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.state-surface--loading {
|
||||
gap: 0.75rem;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.state-surface--loading .ui-skeleton {
|
||||
@@ -212,11 +233,7 @@
|
||||
|
||||
.state-preview-content {
|
||||
border-radius: var(--radius-control);
|
||||
padding: 1rem;
|
||||
padding: var(--space-4);
|
||||
background: var(--color-surface);
|
||||
}
|
||||
|
||||
.app-shell__scrim {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,8 @@
|
||||
}
|
||||
|
||||
.ui-panel {
|
||||
@apply rounded-surface p-6 shadow-sm;
|
||||
@apply rounded-surface p-6;
|
||||
box-shadow: var(--elevation-panel);
|
||||
border: 1px solid var(--color-border);
|
||||
background: var(--color-panel);
|
||||
}
|
||||
@@ -14,7 +15,7 @@
|
||||
.ui-button {
|
||||
@apply rounded-control px-4 py-2 font-semibold;
|
||||
display: inline-flex;
|
||||
min-height: 2.75rem;
|
||||
min-height: var(--size-control-md);
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: 0;
|
||||
@@ -39,6 +40,10 @@
|
||||
cursor: progress;
|
||||
}
|
||||
|
||||
.ui-button--primary:active:not(:disabled, [aria-disabled="true"]) {
|
||||
background: var(--button-primary-pressed);
|
||||
}
|
||||
|
||||
.ui-button--secondary {
|
||||
border: 1px solid var(--color-surface-muted);
|
||||
color: var(--color-content);
|
||||
@@ -71,8 +76,8 @@
|
||||
|
||||
.ui-button--compact {
|
||||
min-height: var(--size-control-sm);
|
||||
padding: 0.4rem 0.75rem;
|
||||
font-size: 0.85rem;
|
||||
padding: var(--space-2) var(--space-3);
|
||||
font-size: var(--font-size-sm);
|
||||
}
|
||||
|
||||
.ui-icon-button {
|
||||
@@ -124,7 +129,14 @@
|
||||
}
|
||||
|
||||
.ui-skeleton {
|
||||
@apply h-24 animate-pulse rounded-surface bg-surface-muted;
|
||||
@apply h-24 rounded-surface bg-surface-muted;
|
||||
animation: ui-skeleton-pulse 2s var(--easing-standard) infinite;
|
||||
}
|
||||
|
||||
@keyframes ui-skeleton-pulse {
|
||||
50% {
|
||||
opacity: var(--opacity-skeleton);
|
||||
}
|
||||
}
|
||||
|
||||
.ui-empty,
|
||||
@@ -134,18 +146,18 @@
|
||||
|
||||
.ui-field {
|
||||
display: grid;
|
||||
gap: 0.45rem;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
.ui-field__label {
|
||||
font-weight: 750;
|
||||
font-weight: var(--font-weight-bold);
|
||||
}
|
||||
|
||||
.ui-field__description,
|
||||
.ui-field__error {
|
||||
margin: 0;
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.5;
|
||||
font-size: var(--font-size-sm);
|
||||
line-height: var(--line-height-normal);
|
||||
}
|
||||
|
||||
.ui-field__description {
|
||||
@@ -154,20 +166,26 @@
|
||||
|
||||
.ui-field__error {
|
||||
color: var(--color-danger);
|
||||
font-weight: 650;
|
||||
font-weight: var(--font-weight-semibold);
|
||||
}
|
||||
|
||||
.ui-field__input {
|
||||
width: 100%;
|
||||
min-height: 2.75rem;
|
||||
min-height: var(--size-control-md);
|
||||
box-sizing: border-box;
|
||||
border: 1px solid var(--field-border);
|
||||
border-radius: var(--radius-control);
|
||||
padding: 0.65rem 0.8rem;
|
||||
padding: var(--space-3) var(--space-3);
|
||||
color: var(--color-content);
|
||||
background: var(--color-panel);
|
||||
}
|
||||
|
||||
.ui-field__input:disabled {
|
||||
color: var(--color-disabled-content);
|
||||
background: var(--color-disabled-surface);
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.ui-field__input[aria-invalid="true"] {
|
||||
border-color: var(--field-border-invalid);
|
||||
}
|
||||
@@ -246,7 +264,7 @@
|
||||
display: block;
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
margin: 0.2rem;
|
||||
margin: var(--space-1);
|
||||
border-radius: var(--radius-full);
|
||||
background: var(--color-content-muted);
|
||||
content: "";
|
||||
@@ -279,12 +297,12 @@
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
flex-direction: column;
|
||||
gap: 1.25rem;
|
||||
gap: var(--space-5);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-surface);
|
||||
padding: 1.25rem;
|
||||
padding: var(--space-5);
|
||||
background: var(--color-panel);
|
||||
box-shadow: 0 8px 28px color-mix(in oklab, var(--color-content) 6%, transparent);
|
||||
box-shadow: var(--elevation-panel);
|
||||
}
|
||||
|
||||
.ui-card__header :is(h2, h3, h4),
|
||||
@@ -293,9 +311,9 @@
|
||||
}
|
||||
|
||||
.ui-card__header p {
|
||||
margin-block-start: 0.4rem;
|
||||
margin-block-start: var(--space-2);
|
||||
color: var(--color-content-muted);
|
||||
line-height: 1.55;
|
||||
line-height: var(--line-height-normal);
|
||||
}
|
||||
|
||||
.ui-card__content {
|
||||
@@ -303,7 +321,7 @@
|
||||
}
|
||||
|
||||
.ui-card__footer {
|
||||
padding-block-start: 1rem;
|
||||
padding-block-start: var(--space-4);
|
||||
border-top: 1px solid var(--color-surface-muted);
|
||||
}
|
||||
|
||||
@@ -311,10 +329,10 @@
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
gap: var(--space-4);
|
||||
border: 1px solid var(--color-surface-muted);
|
||||
border-radius: var(--radius-control);
|
||||
padding: 1rem;
|
||||
padding: var(--space-4);
|
||||
background: var(--color-surface);
|
||||
}
|
||||
|
||||
@@ -340,7 +358,7 @@
|
||||
|
||||
.ui-alert__content,
|
||||
.ui-alert__content p {
|
||||
margin-block: 0.35rem 0;
|
||||
margin-block: var(--space-1) 0;
|
||||
color: var(--color-content-muted);
|
||||
}
|
||||
|
||||
@@ -355,7 +373,7 @@
|
||||
border-radius: var(--radius-control);
|
||||
color: var(--color-content);
|
||||
background: transparent;
|
||||
font-size: 1.35rem;
|
||||
font-size: var(--font-size-xl);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@@ -373,12 +391,12 @@
|
||||
|
||||
.ui-badge {
|
||||
display: inline-flex;
|
||||
border-radius: 999px;
|
||||
padding: 0.3rem 0.65rem;
|
||||
border-radius: var(--radius-full);
|
||||
padding: var(--space-1) var(--space-3);
|
||||
color: var(--color-content);
|
||||
background: var(--color-surface-muted);
|
||||
font-size: 0.8rem;
|
||||
font-weight: 750;
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: var(--font-weight-bold);
|
||||
}
|
||||
|
||||
.ui-badge--info {
|
||||
@@ -407,7 +425,7 @@
|
||||
box-sizing: border-box;
|
||||
overflow: auto;
|
||||
border: 0;
|
||||
border-radius: var(--radius-surface);
|
||||
border-radius: var(--radius-modal);
|
||||
padding: 0;
|
||||
color: var(--color-content);
|
||||
background: var(--color-panel);
|
||||
@@ -714,36 +732,36 @@
|
||||
}
|
||||
|
||||
.ui-dialog__surface {
|
||||
padding: 1.5rem;
|
||||
padding: var(--space-6);
|
||||
}
|
||||
|
||||
.ui-dialog__header {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.ui-dialog__header h2 {
|
||||
margin-block-end: 0.35rem;
|
||||
margin-block-end: var(--space-1);
|
||||
}
|
||||
|
||||
.ui-dialog__header p,
|
||||
.ui-dialog__content p {
|
||||
color: var(--color-content-muted);
|
||||
line-height: 1.6;
|
||||
line-height: var(--line-height-normal);
|
||||
}
|
||||
|
||||
.ui-dialog__content {
|
||||
padding-block: 1rem;
|
||||
padding-block: var(--space-4);
|
||||
}
|
||||
|
||||
.ui-dialog__actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-end;
|
||||
gap: 0.75rem;
|
||||
padding-block-start: 1rem;
|
||||
gap: var(--space-3);
|
||||
padding-block-start: var(--space-4);
|
||||
border-top: 1px solid var(--color-surface-muted);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,38 +7,16 @@
|
||||
}
|
||||
|
||||
.app-shell__header {
|
||||
padding-inline: 0.75rem;
|
||||
padding-inline: var(--space-3);
|
||||
}
|
||||
|
||||
.app-shell__menu-button.ui-icon-button {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
/* The compact navigation is the menu drawer (`app-shell.tsx`). */
|
||||
.app-shell__sidebar {
|
||||
position: fixed;
|
||||
z-index: 50;
|
||||
top: 4.5rem;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
display: none;
|
||||
width: min(18rem, 85vw);
|
||||
height: auto;
|
||||
box-sizing: border-box;
|
||||
box-shadow: 10px 0 30px color-mix(in oklab, var(--color-content) 15%, transparent);
|
||||
}
|
||||
|
||||
.app-shell__sidebar[data-open="true"] {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.app-shell__scrim {
|
||||
position: fixed;
|
||||
z-index: 40;
|
||||
inset: 4.5rem 0 0;
|
||||
display: block;
|
||||
border: 0;
|
||||
background: color-mix(in oklab, var(--color-content) 35%, transparent);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* 08-01. Hidden only in the header: the menu drawer (`app-shell.tsx`)
|
||||
|
||||
@@ -13,10 +13,10 @@
|
||||
|
||||
.skip-link {
|
||||
position: fixed;
|
||||
z-index: 100;
|
||||
top: 0.75rem;
|
||||
left: 0.75rem;
|
||||
padding: 0.75rem 1rem;
|
||||
z-index: var(--layer-navigation);
|
||||
top: var(--space-3);
|
||||
left: var(--space-3);
|
||||
padding: var(--space-3) var(--space-4);
|
||||
border-radius: var(--radius-control);
|
||||
color: var(--color-panel);
|
||||
background: var(--color-content);
|
||||
@@ -44,23 +44,23 @@
|
||||
|
||||
.app-shell__header {
|
||||
position: sticky;
|
||||
z-index: 30;
|
||||
z-index: var(--layer-sticky);
|
||||
top: 0;
|
||||
grid-area: header;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
gap: var(--space-4);
|
||||
min-width: 0;
|
||||
padding: 0.75rem 1.25rem;
|
||||
padding: var(--space-3) var(--space-5);
|
||||
border-bottom: 1px solid var(--color-surface-muted);
|
||||
background: color-mix(in oklab, var(--color-panel) 92%, var(--color-surface));
|
||||
box-shadow: 0 1px 8px color-mix(in oklab, var(--color-content) 8%, transparent);
|
||||
box-shadow: var(--elevation-sticky);
|
||||
}
|
||||
|
||||
.app-shell__brand {
|
||||
overflow: hidden;
|
||||
font-size: 1.05rem;
|
||||
font-weight: 800;
|
||||
font-size: var(--font-size-md);
|
||||
font-weight: var(--font-weight-bold);
|
||||
text-decoration: none;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
@@ -68,25 +68,25 @@
|
||||
|
||||
/* 08-01. The narrow header drops these; the menu drawer carries them. */
|
||||
.app-shell__drawer-brand {
|
||||
margin: 0 0 0.75rem;
|
||||
font-weight: 800;
|
||||
margin: 0 0 var(--space-3);
|
||||
font-weight: var(--font-weight-bold);
|
||||
}
|
||||
|
||||
.app-shell__drawer-preferences {
|
||||
display: grid;
|
||||
gap: 0.75rem;
|
||||
margin-top: 1rem;
|
||||
padding-top: 1rem;
|
||||
gap: var(--space-3);
|
||||
margin-top: var(--space-4);
|
||||
padding-top: var(--space-4);
|
||||
border-top: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.app-shell__menu-button {
|
||||
display: none;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
gap: var(--space-2);
|
||||
border: 1px solid var(--color-surface-muted);
|
||||
border-radius: var(--radius-control);
|
||||
padding: 0.55rem 0.75rem;
|
||||
padding: var(--space-2) var(--space-3);
|
||||
color: var(--color-content);
|
||||
background: var(--color-panel);
|
||||
cursor: pointer;
|
||||
@@ -95,7 +95,7 @@
|
||||
.app-shell__session {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
gap: var(--space-3);
|
||||
margin-inline-start: auto;
|
||||
}
|
||||
|
||||
@@ -120,7 +120,7 @@
|
||||
.theme-selector .ui-field__input,
|
||||
.locale-selector .ui-field__input {
|
||||
min-height: var(--size-control-sm);
|
||||
padding: 0.35rem 2rem 0.35rem 0.65rem;
|
||||
padding: var(--space-1) var(--space-8) var(--space-1) var(--space-3);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@
|
||||
position: absolute;
|
||||
top: calc(100% + 0.25rem);
|
||||
right: 1rem;
|
||||
padding: 0.5rem;
|
||||
padding: var(--space-2);
|
||||
color: var(--color-danger);
|
||||
background: var(--color-panel);
|
||||
}
|
||||
@@ -137,12 +137,12 @@
|
||||
display: inline-flex;
|
||||
width: fit-content;
|
||||
align-items: center;
|
||||
border-radius: 999px;
|
||||
padding: 0.3rem 0.65rem;
|
||||
border-radius: var(--radius-full);
|
||||
padding: var(--space-1) var(--space-3);
|
||||
color: var(--color-content-muted);
|
||||
background: var(--color-surface-muted);
|
||||
font-size: 0.8rem;
|
||||
font-weight: 700;
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: var(--font-weight-bold);
|
||||
}
|
||||
|
||||
.session-status[data-state="authenticated"] {
|
||||
@@ -159,7 +159,7 @@
|
||||
top: 4.5rem;
|
||||
grid-area: sidebar;
|
||||
height: calc(100vh - 4.5rem);
|
||||
padding: 1.25rem 0.75rem;
|
||||
padding: var(--space-5) var(--space-3);
|
||||
border-right: 1px solid var(--color-border);
|
||||
background: var(--color-panel);
|
||||
}
|
||||
@@ -167,7 +167,7 @@
|
||||
.app-navigation {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.25rem;
|
||||
gap: var(--space-1);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
@@ -176,9 +176,9 @@
|
||||
.app-navigation__link {
|
||||
display: block;
|
||||
border-radius: var(--radius-control);
|
||||
padding: 0.75rem 0.9rem;
|
||||
padding: var(--space-3) var(--space-4);
|
||||
color: var(--color-content-muted);
|
||||
font-weight: 650;
|
||||
font-weight: var(--font-weight-semibold);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@@ -190,7 +190,7 @@
|
||||
.app-navigation__link.is-active {
|
||||
color: var(--color-action-hover);
|
||||
background: var(--navigation-active-background);
|
||||
font-weight: 800;
|
||||
font-weight: var(--font-weight-bold);
|
||||
}
|
||||
|
||||
.app-shell__content {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
@layer components {
|
||||
.page-header {
|
||||
max-width: 50rem;
|
||||
padding-block: clamp(1rem, 5vw, 3.5rem) 0.5rem;
|
||||
padding-block: clamp(var(--space-4), 5vw, var(--space-14)) var(--space-2);
|
||||
}
|
||||
|
||||
/* 1112/05-02. Pointer navigation only: a keyboard user keeps the
|
||||
@@ -11,10 +11,10 @@
|
||||
}
|
||||
|
||||
.page-header__eyebrow {
|
||||
margin-block-end: 0.75rem;
|
||||
margin-block-end: var(--space-3);
|
||||
color: var(--color-action);
|
||||
font-size: 0.8rem;
|
||||
font-weight: 800;
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: var(--font-weight-bold);
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
@@ -22,13 +22,13 @@
|
||||
.page-header__description {
|
||||
max-width: 45rem;
|
||||
color: var(--color-content-muted);
|
||||
font-size: 1.05rem;
|
||||
line-height: 1.7;
|
||||
font-size: var(--font-size-md);
|
||||
line-height: var(--line-height-relaxed);
|
||||
}
|
||||
|
||||
.page-template {
|
||||
display: grid;
|
||||
gap: 1.25rem;
|
||||
gap: var(--space-5);
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
@@ -39,9 +39,9 @@
|
||||
}
|
||||
|
||||
.page-template__breadcrumb {
|
||||
padding-block-start: 1rem;
|
||||
padding-block-start: var(--space-4);
|
||||
color: var(--color-content-muted);
|
||||
font-size: 0.9rem;
|
||||
font-size: var(--font-size-sm);
|
||||
}
|
||||
|
||||
.page-template__heading {
|
||||
@@ -49,7 +49,7 @@
|
||||
min-width: 0;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
align-items: end;
|
||||
gap: 1rem;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.page-template__heading .page-header {
|
||||
@@ -65,13 +65,13 @@
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: 0.75rem;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.page-template__layout {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 1.5rem;
|
||||
gap: var(--space-6);
|
||||
}
|
||||
|
||||
.page-template__layout[data-has-aside="true"] {
|
||||
@@ -92,7 +92,7 @@
|
||||
.form-error-summary {
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-surface);
|
||||
padding: 1rem;
|
||||
padding: var(--space-4);
|
||||
background: var(--color-panel);
|
||||
}
|
||||
|
||||
@@ -102,7 +102,7 @@
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: end;
|
||||
gap: 0.75rem;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.collection-page__result-count {
|
||||
@@ -114,17 +114,17 @@
|
||||
.form-page__fields,
|
||||
.form-page__error-summary {
|
||||
display: grid;
|
||||
gap: 1rem;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.collection-page__pagination {
|
||||
margin-block-start: 1.25rem;
|
||||
margin-block-start: var(--space-5);
|
||||
}
|
||||
|
||||
.detail-page__danger {
|
||||
margin-block-start: 2rem;
|
||||
margin-block-start: var(--space-8);
|
||||
border-top: 1px solid var(--color-danger-border);
|
||||
padding-block-start: 1rem;
|
||||
padding-block-start: var(--space-4);
|
||||
}
|
||||
|
||||
.form-error-summary {
|
||||
@@ -133,7 +133,7 @@
|
||||
}
|
||||
|
||||
.form-error-summary :is(h2, h3, h4) {
|
||||
font-size: 1.1rem;
|
||||
font-size: var(--font-size-lg);
|
||||
}
|
||||
|
||||
.form-error-summary p,
|
||||
@@ -142,21 +142,21 @@
|
||||
}
|
||||
|
||||
.form-actions {
|
||||
padding-block-start: 1rem;
|
||||
padding-block-start: var(--space-4);
|
||||
border-top: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.form-actions--sticky {
|
||||
position: sticky;
|
||||
z-index: 10;
|
||||
z-index: var(--layer-sticky);
|
||||
bottom: 0;
|
||||
padding: 0.75rem;
|
||||
padding: var(--space-3);
|
||||
background: color-mix(in oklab, var(--color-panel) 94%, transparent);
|
||||
}
|
||||
|
||||
.status-page {
|
||||
max-width: 48rem;
|
||||
padding-block: 2rem;
|
||||
padding-block: var(--space-8);
|
||||
}
|
||||
|
||||
.status-page__actions {
|
||||
|
||||
Reference in New Issue
Block a user