요청을 만드는 조립기가 질의 인자를 손으로 나열하는데 거기 page 가 없었다. 그래서 숫자를 눌러도, 꺾쇠를 눌러도 서버에는 page 없이 나갔고 늘 1쪽이 돌아왔다. 작업본과 게시 기록 둘 다 그랬다. 이것이 타입 검사를 통과한 이유: 조립기가 입력을 `(input: never)` 로 받아 캐스팅한다. 계약에 인자를 더해도 여기 적지 않으면 컴파일러는 아무 말도 하지 않고 요청만 조용히 그 값을 뺀다. 같은 모양으로 값이 사라지는 결함을 이 저장소에서 여러 번 만났으므로, 요청을 실제로 만들어 page 가 실리는지 확인하는 가드를 함께 둔다 — 되돌리면 깨지는 것을 확인했다. UI: 테두리 있는 흰 버튼을 줄지어 놓으니 화면에서 가장 눈에 띄는 덩어리가 되었다. 봐야 할 것은 목록이다. 상자를 걷어내고 `‹ 1 | 2 | 3 ›` 로 두되 누르는 자리는 40px 로 남긴다 — 보이는 반응은 글자뿐이지만 손가락이 닿는 범위까지 글자만큼 줄이면 터치에서 누르기 어렵다. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011nAjrqNHGPNngN4aUbcyvJ
216 lines
18 KiB
CSS
216 lines
18 KiB
CSS
.studio-app { min-height: 100vh; color: var(--ink); }
|
||
.studio-app .studio-skip-link { position: fixed; z-index: 100; top: 12px; left: 16px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--paper); transform: translateY(-160%); }
|
||
.studio-app .studio-skip-link:focus { transform: translateY(0); }
|
||
.studio-app .studio-header { border-bottom: 1px solid var(--line); background: rgba(252, 252, 251, 0.94); }
|
||
.studio-app .studio-header-inner,
|
||
.studio-app .studio-mobile-navigation,
|
||
.studio-app .studio-main { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
|
||
.studio-app .studio-header-inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 40px; }
|
||
.studio-app .studio-wordmark { display: inline-flex; min-height: 44px; align-items: center; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
|
||
.studio-app .studio-wordmark span { margin-left: 5px; color: var(--signal); font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
|
||
.studio-app .studio-desktop-navigation nav,
|
||
.studio-app .studio-mobile-navigation nav { display: flex; align-items: center; gap: 26px; }
|
||
.studio-app .studio-desktop-navigation a,
|
||
.studio-app .studio-mobile-navigation a { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); font-size: 14px; }
|
||
.studio-app nav a[aria-current="page"] { color: var(--ink); font-weight: 650; }
|
||
.studio-app .studio-menu-trigger { display: none; min-height: 44px; padding-inline: 12px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--paper); color: var(--ink); }
|
||
.studio-app .studio-mobile-navigation { padding-bottom: 16px; }
|
||
.studio-app .studio-main { padding-block: 72px 120px; }
|
||
.studio-app .studio-page-heading { max-width: 760px; padding-bottom: 52px; }
|
||
.studio-app .studio-page-heading h1,
|
||
.studio-app .studio-route-state h1 { margin: 0 0 18px; font-size: clamp(36px, 6vw, 64px); line-height: 1.08; letter-spacing: -0.045em; }
|
||
.studio-app .studio-eyebrow { margin: 0 0 14px; color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.08em; }
|
||
.studio-app .studio-overview-list { border-top: 1px solid var(--line-strong); }
|
||
.studio-app .studio-overview-list section { display: grid; grid-template-columns: 130px minmax(180px, 0.8fr) minmax(260px, 1.4fr) auto; align-items: baseline; gap: 24px; padding-block: 28px; border-bottom: 1px solid var(--line); }
|
||
.studio-app .studio-overview-list h2,
|
||
.studio-app .studio-overview-list p { margin: 0; }
|
||
.studio-app .studio-overview-list a,
|
||
.studio-app .studio-route-state > a { color: var(--signal); font-weight: 650; }
|
||
.studio-app .studio-route-state { max-width: 720px; padding-block: 48px; }
|
||
.studio-app .studio-route-state button { min-height: 44px; margin-top: 18px; padding-inline: 16px; border: 1px solid var(--signal); border-radius: 5px; background: var(--signal); color: #fff; }
|
||
.studio-app .studio-loading { min-height: 180px; }
|
||
.studio-app .studio-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
|
||
/* 모달 dialog 를 화면 가운데에 둔다. UA 기본값(margin:auto)에 맡기면 이 빌드에서는
|
||
좌상단에 붙는다 — 공개 화면의 .search-dialog 가 같은 이유로 position/inset/margin 을
|
||
이미 명시하고 있고, 여기도 같은 방식을 쓴다. max-height/overflow 는 내용이 길어졌을 때
|
||
화면 밖으로 나가지 않게 하는 짝이다. */
|
||
.studio-app .studio-unsaved-dialog { position: fixed; inset: 0; margin: auto; max-height: calc(100dvh - 32px); overflow: auto; width: min(560px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper); color: var(--ink); }
|
||
.studio-app .studio-unsaved-dialog::backdrop { background: rgba(23, 24, 27, 0.48); }
|
||
.studio-app .studio-dialog-body { padding: 30px; }
|
||
.studio-app .studio-dialog-body h2 { margin: 0 0 12px; font-size: 26px; }
|
||
.studio-app .studio-dialog-error { color: #8f2f27; }
|
||
.studio-app .studio-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 28px; }
|
||
.studio-app .studio-dialog-actions button { min-height: 44px; padding-inline: 14px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--paper); color: var(--ink); }
|
||
.studio-app .studio-dialog-actions button:last-child { border-color: var(--signal); background: var(--signal); color: #fff; }
|
||
.studio-app .studio-asset-upload-dialog { position: fixed; inset: 0; margin: auto; max-height: calc(100dvh - 32px); overflow: auto; width: min(560px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper); color: var(--ink); }
|
||
.studio-app .studio-asset-upload-dialog::backdrop { background: rgba(23, 24, 27, 0.48); }
|
||
.studio-app .studio-asset-upload-dialog .studio-dialog-status { min-height: 20px; margin: 16px 0 0; color: var(--muted); font-size: 13px; }
|
||
.studio-app .studio-asset-upload-dialog .studio-field + .studio-field { margin-top: 18px; }
|
||
.studio-app .studio-asset-upload-dialog .studio-field--checkbox { display: flex; align-items: center; gap: 10px; }
|
||
.studio-app .studio-asset-upload-dialog .studio-field--checkbox input { width: 18px; min-width: 18px; min-height: 18px; padding: 0; }
|
||
|
||
.studio-app .studio-page-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; border-bottom: 1px solid var(--line-strong); }
|
||
.studio-app .studio-page-top .studio-page-heading { padding-bottom: 42px; }
|
||
.studio-app .studio-primary-action,
|
||
.studio-app .studio-primary-button,
|
||
.studio-app .studio-secondary-button,
|
||
.studio-app .studio-document-tools button,
|
||
.studio-app .studio-asset-tools button,
|
||
.studio-app .studio-empty-state a { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding-inline: 16px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--paper); color: var(--ink); font-weight: 650; }
|
||
.studio-app .studio-primary-action,
|
||
.studio-app .studio-primary-button { margin-bottom: 42px; border-color: var(--signal); background: var(--signal); color: #fff; }
|
||
.studio-app .studio-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; border-block: 1px solid var(--line); }
|
||
.studio-app .studio-summary-grid div { display: grid; gap: 9px; padding: 22px; border-right: 1px solid var(--line); }
|
||
.studio-app .studio-summary-grid div:last-child { border-right: 0; }
|
||
.studio-app .studio-summary-grid span { color: var(--muted); font-size: 12px; }
|
||
.studio-app .studio-summary-grid strong { font-size: 24px; letter-spacing: -0.03em; }
|
||
.studio-app .studio-work-section { padding-top: 54px; }
|
||
.studio-app .studio-section-title { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line-strong); }
|
||
.studio-app .studio-section-title h2 { margin: 0; font-size: 24px; }
|
||
.studio-app .studio-section-title a { display: inline-flex; min-height: 44px; align-items: center; color: var(--signal); font-size: 13px; font-weight: 650; }
|
||
.studio-app .studio-work-list,
|
||
.studio-app .studio-document-list { border-bottom: 1px solid var(--line); }
|
||
.studio-app .studio-work-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 130px; gap: 24px; align-items: start; padding-block: 24px; border-top: 1px solid var(--line); }
|
||
.studio-app .studio-work-list > :first-child { border-top: 0; }
|
||
.studio-app .studio-row-label { margin: 3px 0 0; color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; }
|
||
.studio-app .studio-work-row h3 { margin: 0; font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
|
||
.studio-app .studio-work-row h3 a { display: inline-flex; min-height: 44px; align-items: flex-start; }
|
||
.studio-app .studio-work-row div p,
|
||
.studio-app .studio-work-row time { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
|
||
.studio-app .studio-empty-inline { margin: 0; padding-block: 26px; color: var(--muted); }
|
||
.studio-app .studio-screen-error { margin-top: 26px; padding: 16px; border-left: 3px solid #a13b31; background: #fff7f4; color: #75271f; }
|
||
|
||
.studio-app .studio-document-tools { display: grid; grid-template-columns: minmax(280px, 1fr) 180px 180px; gap: 16px; padding-block: 28px; border-bottom: 1px solid var(--line-strong); }
|
||
.studio-app .studio-asset-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 28px; border-bottom: 1px solid var(--line-strong); }
|
||
.studio-app .studio-document-tools form,
|
||
.studio-app .studio-document-tools label,
|
||
.studio-app .studio-asset-tools form,
|
||
.studio-app .studio-asset-tools label { display: grid; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 650; }
|
||
/* `min-width: 0` for the same reason `.asset-picker-search div` needs it: a
|
||
flex container's automatic minimum is its min-content size, which at 360px
|
||
forces the row wider than its column instead of shrinking the input. */
|
||
.studio-app .studio-document-tools form div,
|
||
.studio-app .studio-asset-tools form div { display: flex; min-width: 0; gap: 8px; }
|
||
.studio-app .studio-asset-tools form { min-width: 0; }
|
||
.studio-app .studio-document-tools input,
|
||
.studio-app .studio-document-tools select,
|
||
.studio-app .studio-asset-tools input { width: 100%; min-width: 0; min-height: 44px; padding-inline: 12px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--paper); color: var(--ink); }
|
||
.studio-app .studio-document-tools input,
|
||
.studio-app .studio-asset-tools input { flex: 1; }
|
||
.studio-app .studio-result-count { margin: 24px 0 10px; color: var(--muted); font-size: 13px; }
|
||
.studio-app .studio-document-row { display: grid; grid-template-columns: 105px minmax(240px, 1fr) minmax(360px, 0.9fr); gap: 24px; align-items: start; padding-block: 26px; border-top: 1px solid var(--line); }
|
||
.studio-app .studio-document-list > :first-child { border-top: 0; }
|
||
.studio-app .studio-document-title h2 { margin: 0; font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
|
||
.studio-app .studio-document-title h2 a { display: inline-flex; min-height: 44px; align-items: flex-start; }
|
||
.studio-app .studio-document-title p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
|
||
.studio-app .studio-document-row dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; }
|
||
.studio-app .studio-document-row dt { color: var(--muted); font-size: 11px; }
|
||
.studio-app .studio-document-row dd { margin: 5px 0 0; font-size: 13px; overflow-wrap: anywhere; }
|
||
.studio-app .studio-secondary-button { margin-top: 24px; }
|
||
/*
|
||
한 행에 버튼이 둘 이상일 때. `.studio-secondary-button` 의 위쪽 여백은 버튼이 하나뿐이던 때의
|
||
값이라, 묶음 안에서는 묶음이 여백을 갖고 버튼은 나란히 선다.
|
||
*/
|
||
.studio-app .studio-row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
|
||
|
||
.studio-app .studio-field-note { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
|
||
.studio-app .studio-row-actions .studio-primary-button,
|
||
.studio-app .studio-row-actions .studio-secondary-button { margin: 0; }
|
||
.studio-app .studio-empty-state { padding-block: 56px; border-bottom: 1px solid var(--line); }
|
||
.studio-app .studio-empty-state h2 { margin: 0; font-size: 25px; }
|
||
.studio-app .studio-empty-state p { margin: 12px 0 22px; color: var(--muted); }
|
||
|
||
.studio-app .studio-type-list { margin: 0; padding: 0; border: 0; border-top: 1px solid var(--line-strong); }
|
||
.studio-app .studio-type-list legend { padding: 0 0 16px; font-size: 20px; font-weight: 700; }
|
||
.studio-app .studio-type-list label { display: grid; grid-template-columns: 32px 140px minmax(260px, 1fr) minmax(220px, 0.8fr); gap: 18px; min-height: 88px; align-items: center; padding-block: 20px; border-bottom: 1px solid var(--line); cursor: pointer; }
|
||
.studio-app .studio-type-list input { width: 20px; height: 20px; margin: 0; }
|
||
.studio-app .studio-type-list strong { font-size: 18px; }
|
||
.studio-app .studio-type-list span,
|
||
.studio-app .studio-type-list small { color: var(--muted); line-height: 1.6; }
|
||
.studio-app .studio-create-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
|
||
/*
|
||
`.studio-secondary-button` 는 목록 행에서 쓰려고 전역으로 `margin-top: 24px` 를 갖는다. 여기서
|
||
풀어 주지 않으면 primary(저장)만 위로 붙고 secondary(공개·공개에서 내리기)는 24px 아래로
|
||
내려앉아, 같은 줄의 버튼들이 서로 다른 높이에 선다.
|
||
*/
|
||
.studio-app .studio-create-footer .studio-primary-button,
|
||
.studio-app .studio-create-footer .studio-secondary-button { margin: 0; }
|
||
.studio-app .studio-create-footer p { margin: 0; color: var(--muted); font-size: 13px; }
|
||
.studio-app .studio-primary-button:disabled { opacity: 0.55; cursor: wait; }
|
||
|
||
@media (max-width: 900px) {
|
||
.studio-app .studio-overview-list section { grid-template-columns: 110px minmax(0, 1fr); }
|
||
.studio-app .studio-overview-list section > p:nth-of-type(2),
|
||
.studio-app .studio-overview-list section > a { grid-column: 2; }
|
||
.studio-app .studio-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||
.studio-app .studio-summary-grid div:nth-child(2) { border-right: 0; }
|
||
.studio-app .studio-summary-grid div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
|
||
.studio-app .studio-document-tools { grid-template-columns: minmax(0, 1fr) repeat(2, 160px); }
|
||
.studio-app .studio-document-row { grid-template-columns: 90px minmax(0, 1fr); }
|
||
.studio-app .studio-document-row dl { grid-column: 2; }
|
||
}
|
||
|
||
@media (max-width: 767px) {
|
||
.studio-app .studio-header-inner,
|
||
.studio-app .studio-mobile-navigation,
|
||
.studio-app .studio-main { width: min(100% - 32px, 1180px); }
|
||
.studio-app .studio-header-inner { min-height: 68px; gap: 16px; }
|
||
.studio-app .studio-desktop-navigation { display: none; }
|
||
.studio-app .studio-menu-trigger { display: inline-flex; align-items: center; }
|
||
.studio-app .studio-mobile-navigation nav { align-items: stretch; flex-direction: column; gap: 2px; }
|
||
.studio-app .studio-mobile-navigation a { width: 100%; }
|
||
.studio-app .studio-main { padding-block: 48px 88px; }
|
||
.studio-app .studio-overview-list section { display: block; }
|
||
.studio-app .studio-overview-list h2 { margin-bottom: 8px; }
|
||
.studio-app .studio-overview-list a { display: inline-flex; min-height: 44px; margin-top: 12px; align-items: center; }
|
||
.studio-app .studio-dialog-body { padding: 24px 20px; }
|
||
.studio-app .studio-dialog-actions { align-items: stretch; flex-direction: column; }
|
||
.studio-app .studio-page-top { align-items: flex-start; flex-direction: column; gap: 0; }
|
||
.studio-app .studio-page-top .studio-page-heading { padding-bottom: 24px; }
|
||
.studio-app .studio-primary-action { width: 100%; margin: 0 0 32px; }
|
||
.studio-app .studio-work-section { padding-top: 42px; }
|
||
.studio-app .studio-work-row { grid-template-columns: 78px minmax(0, 1fr); gap: 12px; }
|
||
.studio-app .studio-work-row time { grid-column: 2; }
|
||
.studio-app .studio-document-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||
.studio-app .studio-document-tools form { grid-column: 1 / -1; }
|
||
.studio-app .studio-document-row { grid-template-columns: 74px minmax(0, 1fr); gap: 12px; }
|
||
.studio-app .studio-document-row dl { grid-column: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||
.studio-app .studio-type-list label { grid-template-columns: 30px minmax(0, 1fr); gap: 7px 12px; }
|
||
.studio-app .studio-type-list span,
|
||
.studio-app .studio-type-list small { grid-column: 2; }
|
||
.studio-app .studio-create-footer { align-items: stretch; flex-direction: column; }
|
||
}
|
||
|
||
@media (max-width: 420px) {
|
||
.studio-app .studio-summary-grid { grid-template-columns: minmax(0, 1fr); }
|
||
.studio-app .studio-summary-grid div { border-right: 0; border-bottom: 1px solid var(--line); }
|
||
.studio-app .studio-summary-grid div:last-child { border-bottom: 0; }
|
||
.studio-app .studio-document-tools { grid-template-columns: minmax(0, 1fr); }
|
||
.studio-app .studio-document-tools form { grid-column: 1; }
|
||
.studio-app .studio-document-row dl { grid-template-columns: minmax(0, 1fr); }
|
||
}
|
||
|
||
/*
|
||
목록의 페이지 이동. 예전에는 「다음」 버튼 하나뿐이라 뒤로 넘어간 뒤 앞쪽으로 돌아올 방법이
|
||
없었다. 번호는 현재 쪽 좌우로만 그리고 나머지는 생략하되 첫 쪽과 끝 쪽은 늘 남긴다.
|
||
*/
|
||
/*
|
||
목록 페이지 이동. 테두리 있는 흰 버튼을 줄지어 놓았더니 이 화면에서 가장 눈에 띄는 덩어리가
|
||
되어 버렸다 — 봐야 할 것은 목록이지 페이지 번호가 아니다. 상자를 걷어내고 숫자와 꺾쇠만
|
||
남긴 뒤 사이를 세로선으로 나눈다: `‹ 1 | 2 | 3 ›`
|
||
*/
|
||
.studio-app .studio-pagination { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 32px; color: var(--muted); font-size: 14px; }
|
||
.studio-app .studio-pagination ol { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
|
||
.studio-app .studio-pagination button { min-width: 32px; min-height: 40px; padding: 0 9px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 500; }
|
||
/* 숫자 사이에만 오고 양 끝에는 오지 않는다. */
|
||
.studio-app .studio-pagination li + li::before { color: var(--line-strong); content: "|"; }
|
||
/*
|
||
손이 닿는 자리는 40px 로 넓게 두되, 눈에 반응하는 것은 글자뿐이다 — 배경을 칠하면 걷어낸
|
||
상자가 그대로 되돌아온다.
|
||
*/
|
||
.studio-app .studio-pagination button:hover:not(:disabled) { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
|
||
.studio-app .studio-pagination button:disabled { color: var(--line-strong); }
|
||
/* 지금 보고 있는 쪽. 배경 대신 글자만 진하게. */
|
||
.studio-app .studio-pagination button[aria-current="page"] { color: var(--ink); font-weight: 700; }
|
||
.studio-app .studio-pagination__gap { min-width: 20px; color: var(--faint); text-align: center; }
|