refactor: v4 편집기가 걷어낸 화면의 잔해를 지운다
즉시 미리보기(`InstantPreview`)와 동작 원리 띠(`MechanismMap`)는 파일로만 남아 있었다. 아무 화면도 부르지 않는데 규칙과 검사는 그대로여서, 고칠 때마다 살아 있는 코드처럼 따라왔다. 함께 죽어 있던 것들: - `createAssetCatalogResolver` — 즉시 미리보기만 쓰던 픽셀 해석기 - `mergeAssetCatalog` 와 편집기의 자료 목록 — 그 목록을 읽던 화면이 없어졌다 (`DocumentEditor` 는 이미 `assets: _assets` 로 받아만 두고 있었다) - 분할 편집기·미리보기 모드·예전 검증 패널의 CSS 규칙 검사는 지우지 않고 살아 있는 쪽으로 옮겼다. 자료 열쇠 합의 검사는 이제 목 어댑터의 투영과 공개 화면이 실제로 쓰는 해석기를 맞대고 본다 — READY 검사를 빼 보면 144개 조합 중 16개가 어긋난다. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
d1c6ad5891
commit
7dda6c7923
@@ -1,51 +1,14 @@
|
||||
.studio-app .studio-editor-page,
|
||||
.studio-app .studio-editor-split,
|
||||
.studio-app .studio-editor-workspace,
|
||||
.studio-app .studio-editor-preview { min-width: 0; }
|
||||
.studio-app .studio-editor-workspace { min-width: 0; }
|
||||
|
||||
.studio-app .studio-editor-loading { min-height: 240px; padding-block: 56px; color: var(--muted); }
|
||||
/*
|
||||
편집과 미리보기를 한 화면에 나란히 둔다. 탭이었을 때는 한 번에 하나만 보였고, 고친 결과를
|
||||
보려면 편집하던 자리를 화면에서 치워야 했다.
|
||||
*/
|
||||
/*
|
||||
이 화면만 공용 컨테이너보다 넓다. `.studio-main` 은 모든 Studio 화면이 1180px 를 함께
|
||||
쓰는데, 여기서는 그 폭에 본문 두 벌이 들어가야 해서 한 칸이 566px 로 좁아졌다. 헤더와
|
||||
다른 화면은 그대로 두고 편집기가 놓인 경우에만 넓힌다.
|
||||
*/
|
||||
.studio-app:has(.studio-editor-split) .studio-header-inner,
|
||||
.studio-app:has(.studio-editor-split) .studio-main { width: min(1600px, calc(100% - 80px)); }
|
||||
|
||||
/*
|
||||
편집과 미리보기를 한 화면에 나란히 둔다. 탭이었을 때는 한 번에 하나만 보였고, 고친 결과를
|
||||
보려면 편집하던 자리를 화면에서 치워야 했다.
|
||||
|
||||
두 칸 모두 페이지 스크롤을 그대로 탄다. 미리보기를 붙박이로 두고 자체 스크롤을 주었더니
|
||||
편집기를 내려도 미리보기는 제자리였고, 보려면 그 안을 따로 굴려야 했다 — 나란히 둔 이유가
|
||||
둘을 같이 보는 것인데 움직임이 갈라지면 그 이점이 없다.
|
||||
*/
|
||||
.studio-app .studio-editor-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding-top: 40px; }
|
||||
/* 반쪽 폭에는 62px 짜리 제목이 앉을 자리가 없다. */
|
||||
.studio-app .studio-editor-split .studio-editor-heading h1 { font-size: clamp(28px, 3vw, 40px); }
|
||||
|
||||
/*
|
||||
미리보기는 제자리에 붙어 따라온다. 예전에는 폼과 같은 흐름에 나란히 놓여 있어서, 편집기가
|
||||
8,872px 이면 미리보기도 그만큼 아래로 흘렀다 — 아래쪽 칸을 고치는 동안 미리보기는 화면 밖이었다.
|
||||
`align-self: start` 가 없으면 격자가 칸을 늘려 버려 붙박이가 걸리지 않는다.
|
||||
*/
|
||||
.studio-app .studio-editor-preview { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow-y: auto; display: flex; flex-direction: column; padding-left: 40px; border-left: 1px solid var(--line); }
|
||||
.studio-app .studio-editor-preview__heading { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
|
||||
.studio-app .studio-editor-preview__heading .studio-eyebrow { margin-bottom: 8px; }
|
||||
.studio-app .studio-editor-preview__body { padding-top: 20px; }
|
||||
.studio-app .studio-editor-heading { padding-bottom: 36px; border-bottom: 1px solid var(--line-strong); }
|
||||
.studio-app .studio-editor-heading h1 { margin: 0; font-size: clamp(38px, 5vw, 62px); line-height: 1.05; letter-spacing: -0.045em; }
|
||||
.studio-app .studio-editor-heading > p:last-child { max-width: 780px; margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; overflow-wrap: anywhere; }
|
||||
.studio-app .studio-editor-section { padding: 48px 0; border-bottom: 1px solid var(--line); }
|
||||
.studio-app .studio-editor-section-heading { margin-bottom: 24px; }
|
||||
.studio-app .studio-editor-section-heading .studio-eyebrow { margin-bottom: 8px; }
|
||||
.studio-app .studio-editor-section-heading h2,
|
||||
.studio-app .studio-editor-preview__heading h2,
|
||||
.studio-app .studio-preview-error h2 { margin: 0; font-size: 25px; letter-spacing: -0.03em; }
|
||||
.studio-app .studio-editor-section-heading h2 { margin: 0; font-size: 25px; letter-spacing: -0.03em; }
|
||||
|
||||
.studio-app .studio-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
|
||||
.studio-app .studio-field,
|
||||
@@ -95,10 +58,8 @@
|
||||
.studio-app .studio-checkbox-set .studio-field--checkbox input { width: 20px; min-width: 20px; min-height: 20px; padding: 0; }
|
||||
.studio-app .studio-checkbox-set .studio-field--checkbox span { font-size: 15px; font-weight: 500; }
|
||||
|
||||
.studio-app .studio-ordered-list,
|
||||
.studio-app .studio-resolution-fields { min-width: 0; margin: 34px 0 0; padding: 0; border: 0; }
|
||||
.studio-app .studio-ordered-list legend,
|
||||
.studio-app .studio-resolution-fields legend { margin-bottom: 14px; font-size: 17px; font-weight: 700; }
|
||||
.studio-app .studio-ordered-list { min-width: 0; margin: 34px 0 0; padding: 0; border: 0; }
|
||||
.studio-app .studio-ordered-list legend { margin-bottom: 14px; font-size: 17px; font-weight: 700; }
|
||||
.studio-app .studio-ordered-list > p { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
|
||||
.studio-app .studio-ordered-item,
|
||||
.studio-app .studio-relation-item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 22px 0; border-top: 1px solid var(--line); }
|
||||
@@ -109,8 +70,6 @@
|
||||
.studio-app .studio-item-actions button:disabled,
|
||||
.studio-app .studio-add-item:disabled { opacity: 0.45; }
|
||||
.studio-app .studio-add-item { margin-top: 12px; }
|
||||
.studio-app .studio-resolution-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
|
||||
.studio-app .studio-resolution-fields legend { grid-column: 1 / -1; }
|
||||
|
||||
/*
|
||||
작업 상태와 저장·게시를 화면 아래에 붙여 둔다. 문서가 길어져도 스크롤 위치와 무관하게 손이
|
||||
@@ -120,16 +79,12 @@
|
||||
.studio-app .studio-document-status-bar { position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; min-width: 0; margin-top: 48px; padding: 16px 0; border-top: 1px solid var(--line-strong); background: var(--paper); }
|
||||
.studio-app .studio-editor-status { margin: 0; font-weight: 700; }
|
||||
.studio-app .studio-editor-status--dirty,
|
||||
.studio-app .studio-editor-status--conflict,
|
||||
.studio-app .studio-editor-conflict { color: #8f2f27; }
|
||||
.studio-app .studio-editor-status--conflict { color: #8f2f27; }
|
||||
.studio-app .studio-editor-status--clean { color: #166748; }
|
||||
.studio-app .studio-document-status-bar dl { display: flex; gap: 20px; margin: 0; }
|
||||
.studio-app .studio-document-status-bar dl div { display: flex; align-items: baseline; gap: 8px; }
|
||||
.studio-app .studio-document-status-bar dt { color: var(--muted); font-size: 12px; }
|
||||
.studio-app .studio-document-status-bar dd { margin: 0; font-size: 13px; }
|
||||
.studio-app .studio-document-status-bar__note { flex: 1 1 240px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
|
||||
/* 색은 위 묶음이 정한다 — 여기서 다시 칠하면 실패가 안내문처럼 보인다. */
|
||||
.studio-app .studio-document-status-bar .studio-editor-conflict { flex: 1 1 240px; margin: 0; font-size: 12px; line-height: 1.6; }
|
||||
.studio-app .studio-document-status-bar__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
|
||||
/* `.studio-primary-button` 은 세로로 쌓이는 자리에 맞춘 바깥 여백을 갖고 있다. 한 줄에
|
||||
나란히 두면 그 여백이 줄 높이를 늘리고, 옆 버튼만 늘어나 짝이 어긋난다. */
|
||||
@@ -137,16 +92,8 @@
|
||||
/* 저장·게시는 이 화면의 주 동작이다 — 굵기와 색으로만 격을 올린다. */
|
||||
.studio-app .studio-document-status-bar button { min-width: 92px; color: var(--ink); font-weight: 700; }
|
||||
.studio-app .studio-document-status-bar button:disabled { color: var(--faint); }
|
||||
.studio-app .studio-document-status-bar .studio-editor-unplaced-issues { flex: 1 1 100%; }
|
||||
|
||||
.studio-app .studio-asset-panel { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
|
||||
.studio-app .studio-asset-panel .studio-eyebrow { margin-bottom: 8px; }
|
||||
.studio-app .studio-asset-panel h3 { margin: 0 0 10px; font-size: 19px; letter-spacing: -0.02em; }
|
||||
.studio-app .studio-asset-panel > p { max-width: 640px; margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }
|
||||
.studio-app .studio-asset-panel-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 18px; }
|
||||
.studio-app .studio-asset-kind-field { display: grid; min-width: 0; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 650; }
|
||||
.studio-app .studio-asset-kind-field select { min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; }
|
||||
.studio-app .studio-asset-panel-actions button { min-height: 44px; padding-inline: 13px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--paper); color: var(--ink); font-weight: 650; }
|
||||
.studio-app .asset-picker ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
|
||||
.studio-app .asset-picker button { min-height: 36px; padding-inline: 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 13px; }
|
||||
/* Declared after `.asset-picker button` on purpose: the pill rule above also
|
||||
@@ -168,51 +115,16 @@
|
||||
.studio-app .asset-picker ul:not(:empty) { margin-top: 12px; }
|
||||
.studio-app .studio-error,
|
||||
.studio-app .studio-asset-picker-empty { margin: 0; color: var(--muted); font-size: 13px; }
|
||||
.studio-app .studio-instant-preview { min-width: 0; overflow: clip; border: 1px solid var(--line); }
|
||||
.studio-app .studio-instant-preview .public-record-embedded { width: 100%; max-width: none; margin: 0; padding: clamp(24px, 5vw, 56px); }
|
||||
.studio-app .studio-preview-error { padding: 48px 0; border-bottom: 1px solid var(--line); }
|
||||
.studio-app .studio-preview-error ul { margin: 20px 0 0; padding-left: 20px; color: #8f2f27; line-height: 1.7; overflow-wrap: anywhere; }
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.studio-app .studio-editor-split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
|
||||
.studio-app .studio-editor-split .studio-editor-heading h1 { font-size: clamp(38px, 5vw, 62px); }
|
||||
.studio-app .studio-editor-preview { position: static; max-height: none; overflow-y: visible; padding-top: 8px; padding-left: 0; border-top: 1px solid var(--line-strong); border-left: 0; }
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.studio-app .studio-editor-heading { padding-bottom: 28px; }
|
||||
.studio-app .studio-editor-split { padding-top: 28px; }
|
||||
/* 안내문은 세 줄로 접혀 뷰포트의 20%를 고정으로 가져간다. 실패 문구는 남기고 안내만 접는다 —
|
||||
Ctrl+S 는 여기서 누를 수 있는 것도 아니다. */
|
||||
.studio-app .studio-document-status-bar__note { display: none; }
|
||||
.studio-app .studio-document-status-bar__actions { flex: 1 1 100%; margin-left: 0; }
|
||||
.studio-app .studio-document-status-bar__actions button { flex: 1; min-width: 0; }
|
||||
.studio-app .studio-field-grid,
|
||||
.studio-app .studio-resolution-fields { grid-template-columns: minmax(0, 1fr); }
|
||||
.studio-app .studio-field--wide,
|
||||
.studio-app .studio-resolution-fields legend { grid-column: auto; }
|
||||
.studio-app .studio-field-grid { grid-template-columns: minmax(0, 1fr); }
|
||||
.studio-app .studio-field--wide { grid-column: auto; }
|
||||
.studio-app .studio-item-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
|
||||
.studio-app .studio-instant-preview .public-record-embedded { padding: 22px 16px; }
|
||||
}
|
||||
|
||||
/* 게시까지의 단계. 순서가 있는 길이라 번호를 붙인다 — 장식이 아니라 밟아야 하는 차례다. */
|
||||
.studio-app .studio-editor-flow ol { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
|
||||
.studio-app .studio-editor-flow li { display: flex; align-items: center; gap: 6px; font-size: 13px; }
|
||||
.studio-app .studio-editor-flow li + li::before { content: "→"; margin-right: 4px; color: var(--faint); }
|
||||
.studio-app .studio-editor-flow span { display: inline-flex; min-width: 18px; height: 18px; align-items: center; justify-content: center; border-radius: 999px; background: var(--line); color: var(--muted); font-size: 11px; font-weight: 650; }
|
||||
|
||||
/* 게시를 막는 항목. 고치는 자리에서 보이지 않으면 작성자는 별도 화면과 편집기를 오가며
|
||||
어느 칸이었는지 기억해야 한다. */
|
||||
.studio-app .studio-editor-validation { margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--danger, #b4232a); border-radius: 6px; background: var(--paper); }
|
||||
.studio-app .studio-editor-validation--stale { border-color: var(--line-strong); opacity: 0.72; }
|
||||
.studio-app .studio-editor-validation-title { margin: 0 0 10px; color: var(--danger, #b4232a); font-size: 13px; font-weight: 700; }
|
||||
.studio-app .studio-editor-validation--stale .studio-editor-validation-title { color: var(--muted); }
|
||||
.studio-app .studio-editor-validation ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
|
||||
.studio-app .studio-editor-validation li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 13px; color: var(--ink); }
|
||||
.studio-app .studio-editor-validation li span { min-width: 30px; color: var(--danger, #b4232a); font-size: 11px; font-weight: 700; }
|
||||
.studio-app .studio-editor-validation li[data-severity="WARNING"] span { color: var(--muted); }
|
||||
.studio-app .studio-editor-validation code { color: var(--faint); font-size: 11px; }
|
||||
|
||||
/*
|
||||
칸 아래에 붙는 지적. 검증 결과를 화면 맨 위 한 덩어리로 모아 두는 대신 그 칸 옆에 두면,
|
||||
작성자는 `/topicId` 같은 경로를 읽고 어느 칸인지 스스로 찾을 필요가 없다.
|
||||
@@ -224,11 +136,6 @@
|
||||
.studio-app .studio-char-count { justify-self: end; margin-top: -2px; color: var(--faint); font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
|
||||
.studio-app .studio-char-count[data-full] { color: var(--danger, #b4232a); font-weight: 650; }
|
||||
.studio-app .studio-field-notice--error { color: var(--danger, #b4232a); }
|
||||
.studio-app .studio-field-notice--warning { color: var(--muted); }
|
||||
.studio-app .studio-editor-unplaced-issues { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
|
||||
.studio-app .studio-editor-unplaced-issues li { font-size: 12px; color: var(--danger, #b4232a); }
|
||||
.studio-app .studio-editor-unplaced-issues li[data-severity="WARNING"] { color: var(--muted); }
|
||||
.studio-app .studio-editor-unplaced-issues code { color: var(--faint); font-size: 11px; }
|
||||
|
||||
/*
|
||||
저장과 게시는 되돌릴 수 있는 정도가 다르다 — 하나는 초안을 남기고, 하나는 공개한다. 둘이
|
||||
@@ -262,9 +169,6 @@
|
||||
/* 지금 보고 있는 구역. 배경 대신 글자만 진하게 — Studio 의 다른 곳과 같은 언어다. */
|
||||
.studio-app .studio-editor-toc a[aria-current="true"] { color: var(--ink); font-weight: 700; }
|
||||
|
||||
/* 미리보기 본문이 스스로 스크롤한다. 편집 중인 절로 옮기려면 이 요소가 스크롤 컨테이너여야 한다. */
|
||||
.studio-app .studio-editor-preview__body { flex: 1; min-height: 0; overflow-y: auto; scroll-behavior: smooth; }
|
||||
|
||||
/*
|
||||
반복 그룹.
|
||||
|
||||
@@ -282,18 +186,6 @@
|
||||
/* 순서 바꾸기는 이 행의 목적이 아니다 — 글자 크기로 그렇게 말한다. */
|
||||
.studio-app .studio-ordered-item .studio-item-actions button { font-size: 12px; font-weight: 500; }
|
||||
|
||||
/* 미리보기 보기 방식 — 좁은 칸에 갇힌 미리보기는 공개 화면이 아니다 */
|
||||
.studio-app .studio-preview-modes { display: inline-flex; gap: 2px; margin-left: 14px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; }
|
||||
.studio-app .studio-preview-modes button { min-height: 28px; padding-inline: 10px; border: 0; border-radius: 4px; background: none; color: var(--muted); font-size: 12px; }
|
||||
.studio-app .studio-preview-modes button[aria-pressed="true"] { background: var(--canvas); color: var(--ink); font-weight: 640; }
|
||||
.studio-app .studio-editor-split[data-preview="full"] { grid-template-columns: minmax(0, 1fr); }
|
||||
.studio-app .studio-editor-split[data-preview="hidden"] { grid-template-columns: minmax(0, 1fr); }
|
||||
/*
|
||||
모바일 폭은 실제 좁은 화면의 폭(390px)으로 잘라 본다. 줄여 그리지 않고 그 폭 그대로 두어야
|
||||
줄바꿈과 접힘이 배포본과 같아진다.
|
||||
*/
|
||||
.studio-app .studio-editor-preview__body[data-width="mobile"] > * { max-width: 390px; margin-inline: auto; }
|
||||
|
||||
/* 관계 대상 거르기 — 105개를 평면 셀렉트에서 이름으로 찾을 수는 없다 */
|
||||
.studio-app .studio-relation-filter { display: grid; gap: 5px; margin-bottom: 18px; }
|
||||
.studio-app .studio-relation-filter > span { color: var(--muted); font-size: 12px; font-weight: 640; }
|
||||
@@ -320,7 +212,6 @@
|
||||
.studio-app .studio-editor-context dd { margin: 0; color: var(--ink); font-size: 14px; font-weight: 600; }
|
||||
.studio-app .studio-context-empty { color: var(--faint); font-weight: 500; }
|
||||
.studio-app .studio-context-missing { color: #a13b31; }
|
||||
.studio-app .studio-context-relations-title { margin: 15px 0 0; color: var(--faint); font-size: 12px; font-weight: 620; }
|
||||
.studio-app .studio-editor-context ul { margin: 8px 0 0; padding: 0; list-style: none; }
|
||||
.studio-app .studio-editor-context ul li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding-block: 4px; }
|
||||
.studio-app .studio-editor-context ul span { color: var(--faint); font-size: 12px; line-height: 1.7; }
|
||||
@@ -540,24 +431,6 @@
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.studio-app .studio-editor-commandbar__views {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
.studio-app .studio-editor-commandbar__views > span {
|
||||
color: var(--faint);
|
||||
font-size: 11px;
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
.studio-app .studio-editor-commandbar .studio-preview-modes,
|
||||
.studio-app .studio-editor-preview__heading .studio-preview-modes {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.studio-app .studio-editor-context {
|
||||
grid-column: 1 / -1;
|
||||
display: flex;
|
||||
@@ -680,30 +553,6 @@
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.studio-app .studio-editor-split {
|
||||
display: grid;
|
||||
gap: 28px;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.studio-app .studio-editor-split[data-preview="hidden"] {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.studio-app .studio-editor-split[data-preview="hidden"] .studio-editor-workspace {
|
||||
width: min(100%, 920px);
|
||||
margin-inline: auto;
|
||||
}
|
||||
|
||||
.studio-app .studio-editor-split[data-preview="split"] {
|
||||
grid-template-columns: minmax(560px, 0.86fr) minmax(620px, 1.14fr);
|
||||
gap: 34px;
|
||||
}
|
||||
|
||||
.studio-app .studio-editor-split[data-preview="full"] {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.studio-app .studio-editor-workspace {
|
||||
padding-bottom: 42px;
|
||||
}
|
||||
@@ -725,105 +574,10 @@
|
||||
padding-top: 34px;
|
||||
}
|
||||
|
||||
.studio-app .studio-editor-preview {
|
||||
position: sticky;
|
||||
top: 16px;
|
||||
align-self: start;
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
max-height: calc(100dvh - 32px);
|
||||
overflow: hidden;
|
||||
flex-direction: column;
|
||||
padding: 0;
|
||||
border: 1px solid var(--line-strong);
|
||||
border-radius: 8px;
|
||||
background: #f6f6f3;
|
||||
}
|
||||
|
||||
.studio-app .studio-editor-preview__heading {
|
||||
display: flex;
|
||||
min-height: 68px;
|
||||
flex: 0 0 auto;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 18px;
|
||||
padding: 12px 16px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
background: var(--paper);
|
||||
}
|
||||
|
||||
.studio-app .studio-editor-preview__heading .studio-eyebrow {
|
||||
margin: 0 0 2px;
|
||||
font-size: 9px;
|
||||
}
|
||||
|
||||
.studio-app .studio-editor-preview__heading h2 {
|
||||
font-size: 17px;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.studio-app .studio-editor-preview__body {
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
padding: 22px;
|
||||
scroll-behavior: smooth;
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: #c3c6c7 transparent;
|
||||
}
|
||||
|
||||
.studio-app .studio-editor-preview__body::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
}
|
||||
|
||||
.studio-app .studio-editor-preview__body::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.studio-app .studio-editor-preview__body::-webkit-scrollbar-thumb {
|
||||
border: 2px solid transparent;
|
||||
border-radius: 999px;
|
||||
background: #c3c6c7;
|
||||
background-clip: padding-box;
|
||||
}
|
||||
|
||||
.studio-app .studio-instant-preview {
|
||||
overflow: clip;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 4px;
|
||||
background: var(--paper);
|
||||
box-shadow: 0 10px 28px rgb(0 0 0 / 4%);
|
||||
}
|
||||
|
||||
.studio-app .studio-editor-split[data-preview="full"] .studio-editor-preview {
|
||||
position: static;
|
||||
width: min(100%, 1240px);
|
||||
max-height: none;
|
||||
margin-inline: auto;
|
||||
}
|
||||
|
||||
.studio-app .studio-editor-split[data-preview="full"] .studio-editor-preview__body {
|
||||
max-height: none;
|
||||
overflow: visible;
|
||||
padding: 28px;
|
||||
}
|
||||
|
||||
.studio-app .studio-document-status-bar {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
@media (max-width: 1180px) {
|
||||
.studio-app .studio-editor-split[data-preview="split"] {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.studio-app .studio-editor-split[data-preview="split"] .studio-editor-preview {
|
||||
position: static;
|
||||
max-height: 72dvh;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.studio-app:has(.studio-editor-page) .studio-main,
|
||||
.studio-app:has(.studio-editor-page) .studio-header-inner {
|
||||
@@ -839,10 +593,6 @@
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.studio-app .studio-editor-commandbar__views {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.studio-app .studio-editor-context {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
@@ -861,10 +611,6 @@
|
||||
.studio-app .studio-editor-context__separator {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.studio-app .studio-editor-preview__body {
|
||||
padding: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
@@ -914,19 +660,6 @@
|
||||
color: var(--line-strong);
|
||||
}
|
||||
|
||||
.studio-app .studio-editor-commandbar .studio-preview-modes {
|
||||
border-color: transparent;
|
||||
background: var(--canvas);
|
||||
}
|
||||
|
||||
.studio-app .studio-editor-commandbar .studio-preview-modes button {
|
||||
min-height: 30px;
|
||||
}
|
||||
|
||||
.studio-app .studio-editor-split[data-preview="hidden"] .studio-editor-workspace {
|
||||
width: min(100%, 820px);
|
||||
}
|
||||
|
||||
.studio-app .studio-editor-workspace {
|
||||
padding-top: 34px;
|
||||
}
|
||||
@@ -1415,8 +1148,7 @@
|
||||
}
|
||||
|
||||
/* Repeated items resemble reorderable document blocks, not nested forms. */
|
||||
.studio-app .studio-ordered-list,
|
||||
.studio-app .studio-resolution-fields {
|
||||
.studio-app .studio-ordered-list {
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
@@ -1457,19 +1189,6 @@
|
||||
text-underline-offset: 3px;
|
||||
}
|
||||
|
||||
/* Evidence is part of authoring, but secondary to the prose. */
|
||||
.studio-app .studio-asset-panel {
|
||||
margin-top: 34px;
|
||||
padding: 20px 22px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
background: color-mix(in srgb, var(--canvas) 48%, transparent);
|
||||
}
|
||||
|
||||
.studio-app .studio-asset-panel-actions {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
/* Keep status actions available without making the writing surface feel boxed. */
|
||||
.studio-app .studio-document-status-bar {
|
||||
margin-top: 44px;
|
||||
|
||||
Reference in New Issue
Block a user