.pe { display: grid; grid-template-columns: minmax(320px, 1fr) auto; gap: 18px; align-items: start; } .pe-side, .pe-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; } .pe-list { display: flex; flex-direction: column; gap: 3px; max-height: calc(100vh - 470px); min-height: 120px; overflow-y: auto; padding: 4px; border: 1px solid var(--border-color-primary); border-radius: 8px; background: var(--block-background-fill); } .pe-row { display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 7px 8px; border: 1px solid transparent; border-left: 3px solid var(--c); border-radius: 4px; background: transparent; color: var(--body-text-color); font: inherit; font-size: 0.92rem; text-align: left; cursor: pointer; } .pe-row:hover { background: color-mix(in srgb, var(--c) 8%, transparent); } .pe-row.is-selected { background: color-mix(in srgb, var(--c) 16%, transparent); border-color: var(--c); } .pe-row-kind { flex: none; width: 6.4em; font-weight: 600; font-size: 0.8rem; color: var(--c); } .pe-row-text { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pe-row-text.is-empty { color: var(--body-text-color-subdued); font-style: italic; } .pe-row-over { flex: none; font-size: 0.7rem; font-weight: 600; color: #b3261e; } .pe-list-empty { margin: 8px; font-size: 0.82rem; color: var(--body-text-color-subdued); } @media (max-width: 900px) { .pe { grid-template-columns: minmax(0, 1fr); } .pe-list { max-height: 220px; } .pe-main { width: auto !important; } } .pe-bar, .pe-inspector-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .pe-inspector-head { flex-wrap: nowrap; } .pe-foot { align-items: flex-start; } .pe-gap { flex: 1; } .pe-field { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--body-text-color-subdued); } .pe-field select, .pe-kind, .pe-template { font: inherit; font-size: 0.85rem; padding: 4px 6px; border-radius: 6px; border: 1px solid var(--border-color-primary); background: var(--input-background-fill); color: var(--body-text-color); } .pe-lines { width: 84px; accent-color: #5b4a2f; } .pe-lines-value { min-width: 1.6em; font-variant-numeric: tabular-nums; color: var(--body-text-color); } .pe-btn { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; font: inherit; font-size: 0.8rem; font-weight: 500; border-radius: 6px; border: 1px solid var(--border-color-primary); background: var(--block-background-fill); color: var(--body-text-color); cursor: pointer; white-space: nowrap; } .pe-btn:hover { border-color: var(--body-text-color-subdued); } .pe-btn:disabled { opacity: 0.45; cursor: default; } .pe-btn[hidden], .pe-result[hidden] { display: none; } .pe-stage { position: relative; margin: 0 auto; width: 100%; max-width: 100%; background: #f1ead8; background-image: radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.5), transparent 55%); border: 1px solid #cdbf9f; border-radius: 4px; box-shadow: 0 1px 6px rgba(60, 40, 10, 0.18); overflow: hidden; touch-action: pan-y pinch-zoom; user-select: none; outline: none; cursor: crosshair; } .pe-stage:focus-visible { box-shadow: 0 0 0 2px #7a6a4a; } .pe-result { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; } .pe-layer { position: absolute; inset: 0; } .pe-layer.is-hidden { display: none; } .pe-box { position: absolute; box-sizing: border-box; border: 1.5px solid var(--c); background: color-mix(in srgb, var(--c) 9%, transparent); cursor: move; touch-action: none; } .pe-box.is-printed { border-style: dashed; } .pe-box.is-rule { border-color: transparent; background: transparent; } .pe-box.is-rule.is-selected { border-color: var(--c); } .pe-box.is-selected { border-width: 2px; background: color-mix(in srgb, var(--c) 16%, transparent); z-index: 2; } .pe-box.is-over .pe-tag { background: #b3261e; } .pe-tag { position: absolute; left: -1.5px; bottom: 100%; padding: 1px 6px; font: 600 10px/14px var(--font, sans-serif); color: #fff; background: var(--c); border-radius: 3px 3px 0 0; white-space: nowrap; pointer-events: none; } .pe-box.at-top .pe-tag { bottom: auto; top: 0; border-radius: 0 0 3px 0; } .pe-slot { position: absolute; left: 0; right: 0; box-sizing: border-box; border-bottom: 1px solid color-mix(in srgb, var(--c) 35%, transparent); overflow: hidden; white-space: nowrap; padding: 0 4px; color: #2b2317; font-family: "Snell Roundhand", "Apple Chancery", "URW Chancery L", "Segoe Script", cursive; font-style: italic; pointer-events: none; display: flex; align-items: flex-end; } .pe-box.is-printed .pe-slot { font-family: Georgia, "Times New Roman", serif; font-style: normal; } .pe-slot.is-empty { border-bottom-style: dotted; } .has-result .pe-slot { color: transparent; border-bottom-color: transparent; } .has-result .pe-box { background: transparent; } .has-result .pe-box.is-selected { background: color-mix(in srgb, var(--c) 10%, transparent); } /* over a drawn page the boxes step back: fainter outlines, a box's name only when it is selected or pointed at */ .has-result .pe-box:not(.is-selected) { border-color: color-mix(in srgb, var(--c) 45%, transparent); border-width: 1px; } .has-result .pe-box:not(.is-selected):not(:hover) .pe-tag { display: none; } .pe-rule { position: absolute; background: var(--c); pointer-events: none; } .pe-handle { position: absolute; width: 11px; height: 11px; box-sizing: border-box; background: #fff; border: 1.5px solid var(--c); border-radius: 2px; display: none; } .pe-box.is-selected .pe-handle { display: block; } .pe-handle[data-dir="nw"] { left: -6px; top: -6px; cursor: nwse-resize; } .pe-handle[data-dir="ne"] { right: -6px; top: -6px; cursor: nesw-resize; } .pe-handle[data-dir="sw"] { left: -6px; bottom: -6px; cursor: nesw-resize; } .pe-handle[data-dir="se"] { right: -6px; bottom: -6px; cursor: nwse-resize; } .pe-handle[data-dir="n"] { left: calc(50% - 5px); top: -6px; cursor: ns-resize; } .pe-handle[data-dir="s"] { left: calc(50% - 5px); bottom: -6px; cursor: ns-resize; } .pe-handle[data-dir="w"] { left: -6px; top: calc(50% - 5px); cursor: ew-resize; } .pe-handle[data-dir="e"] { right: -6px; top: calc(50% - 5px); cursor: ew-resize; } @media (pointer: coarse) { .pe-btn { height: 34px; padding: 0 12px; } .pe-handle { width: 18px; height: 18px; border-radius: 9px; } .pe-handle::after { content: ""; position: absolute; inset: -10px; } .pe-handle:not([data-dir="nw"]):not([data-dir="se"]) { display: none !important; } .pe-handle[data-dir="nw"] { left: -10px; top: -10px; } .pe-handle[data-dir="se"] { right: -10px; bottom: -10px; } } .pe-ghost { position: absolute; box-sizing: border-box; border: 1.5px dashed #5b4a2f; background: rgba(91, 74, 47, 0.08); pointer-events: none; } .pe-hint { flex: 1 1 240px; font-size: 0.78rem; line-height: 1.4; color: var(--body-text-color-subdued); } .pe-inspector { position: relative; display: flex; flex-direction: column; gap: 8px; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--border-color-primary); border-left: 4px solid var(--c, #5b4a2f); border-radius: 8px; background: var(--block-background-fill); } .pe-swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--c, #5b4a2f); flex: none; } .pe-room { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.78rem; color: var(--body-text-color-subdued); } .pe-inspector-head .pe-gap { display: none; } .pe-room.is-over { color: #b3261e; font-weight: 600; } .pe-text { width: 100%; box-sizing: border-box; resize: vertical; font: inherit; font-size: 1rem; line-height: 1.45; padding: 8px 10px; border: 1px solid var(--border-color-primary); border-radius: 6px; background: var(--input-background-fill); color: var(--body-text-color); } .pe-text.is-unused { visibility: hidden; } /* the panel keeps one height whatever is selected: a panel that grew would move the page under a pointer mid-drag */ .pe-idle { position: absolute; inset: 0; display: flex; align-items: center; margin: 0; padding: 0 12px; font-size: 0.88rem; color: var(--body-text-color-subdued); } .pe-inspector:not(.is-idle) .pe-idle { display: none; } .pe-inspector.is-idle .pe-inspector-head, .pe-inspector.is-idle .pe-text { visibility: hidden; }