[verified] feat: add Webmaker visual editor v0.2.0
This commit is contained in:
@@ -752,6 +752,39 @@ details.dom-rec-details > summary { cursor: pointer; font-size: 13px; font-weigh
|
||||
.si-disk-total { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
|
||||
.si-table th, .si-table td { white-space: nowrap; }
|
||||
|
||||
/* ===== v1.8.0: 직접 편집(시각 편집기) — 도구 줄(.ve-bar) · 무대(.ve-stage: 팔레트 | 캔버스 | 속성 창) ===== */
|
||||
.ve-bar { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--line); background: #f8fafc; flex-wrap: wrap; }
|
||||
.ve-bar .ve-title { font-weight: 700; font-size: 13px; color: #1e3a8a; }
|
||||
.ve-bar .spacer { flex: 1; }
|
||||
.ve-state { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #e5e7eb; color: #374151; }
|
||||
.ve-state.dirty, .ve-state.error { background: #fee2e2; color: #991b1b; font-weight: 600; } .ve-state.saving { background: #fef3c7; color: var(--run); } .ve-state.saved { background: #d1fae5; color: var(--ok); }
|
||||
.ve-stage { flex: 1; min-height: 0; display: flex; }
|
||||
.ve-stage .frame-wrap { flex: 1; min-width: 0; }
|
||||
.ve-side { flex: 0 0 240px; max-width: 40%; border-left: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
|
||||
.ve-side.ve-palette { border-left: 0; border-right: 1px solid var(--line); }
|
||||
.ve-side.collapsed { flex-basis: 34px; } .ve-side.collapsed .ve-side-head b, .ve-side.collapsed .ve-side-head .help { display: none; } .ve-side.collapsed > *:not(.ve-side-head) { display: none; }
|
||||
.ve-side-head { display: flex; align-items: center; gap: 6px; padding: 8px; border-bottom: 1px solid var(--line); font-size: 13px; }
|
||||
.ve-toggle { all: unset; cursor: pointer; width: 22px; height: 22px; border-radius: 6px; text-align: center; line-height: 22px; color: var(--muted); } .ve-toggle:hover, .ve-toggle:focus-visible { background: #eef2ff; outline: 2px solid #c7d7ff; }
|
||||
.ve-palette-list { list-style: none; margin: 0; padding: 8px; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
|
||||
.ve-comp { border: 1px dashed #c9d1dc; border-radius: 8px; padding: 8px; background: #f8fafc; cursor: grab; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; }
|
||||
.ve-comp:hover { border-color: var(--accent); background: #eef2ff; } .ve-comp .ve-comp-name { font-weight: 600; font-size: 13px; } .ve-comp .ve-comp-hint { grid-column: 1; } .ve-comp button { grid-column: 2; grid-row: 1 / span 2; }
|
||||
/* 포인터 끌기 다리(visual-editor-ui.js): 끌기 중 글 선택 방지·잡는 손 모양. 터치는 다리를 쓰지 않으므로 세로 스크롤(pan-y)은 그대로 */
|
||||
.ve-comp { user-select: none; touch-action: pan-y; } .ve-comp.ve-comp-dragging { opacity: .6; cursor: grabbing; border-style: solid; border-color: var(--accent); } body.ve-palette-dragging, body.ve-palette-dragging * { cursor: grabbing !important; user-select: none; }
|
||||
.ve-inspector-body { padding: 10px; overflow: auto; font-size: 13px; }
|
||||
.ve-sel-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
|
||||
.ve-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; } .ve-actions .danger { color: #991b1b; }
|
||||
.ve-field { display: block; margin-bottom: 8px; } .ve-field textarea { resize: vertical; }
|
||||
body.ve-on .toolbar #btnVisual.active { background: #dbeafe; border-color: #93c5fd; color: #1e3a8a; }
|
||||
/* 직접 편집 중(body.ve-on, visual-editor-ui.js 가 켜고 끈다): 옛 작업 칸(.left)을 숨기고 .app 을 "레일 + 전체 폭 캔버스" 두 칸으로 다시 짠다.
|
||||
실제 브라우저 검증(1280×633)에서 세 칸 그대로면 iframe 이 115px 로 줄어 글자가 한 자씩 떨어졌다 — 이제 1280px 에서 캔버스 = 1280 − 레일 232 − 패널 240×2 = 568px.
|
||||
편집을 끝내면 class 가 빠져 원래 세 칸 배치가 그대로 돌아온다(작업 칸 내용은 숨겨질 뿐 바뀌지 않는다). */
|
||||
body.ve-on .app { grid-template-columns: var(--rail-w) minmax(0, 1fr); }
|
||||
body.ve-on .left { display: none; }
|
||||
@media (max-width: 1180px) { body.ve-on .ve-side { flex-basis: 190px; } } /* 레일 204px 구간: 1100px 에서도 캔버스 ≥ 500px */
|
||||
@media (max-width: 900px) { .ve-stage { flex-direction: column; } .ve-side { flex: 0 0 auto; max-width: none; max-height: 32vh; border-left: 0; border-top: 1px solid var(--line); } .ve-side.ve-palette { order: 2; border-right: 0; } .ve-inspector { order: 3; } .ve-stage .frame-wrap { order: 1; min-height: 40vh; } .ve-side.collapsed { max-height: 36px; }
|
||||
/* 390px 등 좁은 화면: 레일(가로 띠) 바로 아래에 캔버스. 옛 작업 칸 행이 없으므로 캔버스가 y≈2200 으로 밀리지 않는다 */
|
||||
body.ve-on .app { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: 100vh; } body.ve-on .right { min-height: 0; } }
|
||||
|
||||
/* ===== v1.7.3: 메일 사용량 (메일 화면 한눈에 보기 · 사이트 정보) ===== */
|
||||
.mg-usage .git-list { margin: 6px 0 4px; } .mg-usage .git-list .st { white-space: normal; text-align: right; }
|
||||
.mg-usage > div + div { margin-top: 3px; }
|
||||
|
||||
Reference in New Issue
Block a user