/* history.css — markdown edit-history modal (browse/js/history.js). */ .md-history-box { background: var(--bg, #fff); color: var(--fg, #111); padding: 1.1rem 1.35rem; border-radius: 6px; min-width: 30rem; max-width: 56rem; width: 80vw; max-height: 85vh; display: flex; flex-direction: column; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25); font-family: inherit; } .md-history-title { margin: 0 0 0.5rem 0; font-size: 1.1rem; overflow-wrap: anywhere; } .md-history-body { display: flex; flex-direction: column; min-height: 0; /* allow inner scroll regions to shrink */ overflow: hidden; } .md-history-hint { margin: 0 0 0.6rem 0; font-size: 0.82rem; color: var(--muted, #666); } .md-history-empty { margin: 1rem 0; font-size: 0.9rem; color: var(--muted, #666); } /* ── version list ── */ .md-history-list { overflow-y: auto; border: 1px solid var(--border, #ddd); border-radius: 4px; } .md-history-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.6rem; padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--border, #eee); font-size: 0.88rem; } .md-history-row:last-child { border-bottom: none; } .md-history-row.is-current { background: var(--accent-bg, rgba(60, 130, 246, 0.08)); } .md-history-meta { display: flex; align-items: baseline; gap: 0.75rem; min-width: 0; } .md-history-time { font-variant-numeric: tabular-nums; } .md-history-by { color: var(--muted, #555); overflow-wrap: anywhere; } .md-history-size { color: var(--muted, #888); font-size: 0.8rem; } .md-history-badge { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.05rem 0.4rem; border-radius: 10px; background: var(--accent, #3c82f6); color: #fff; } .md-history-actions { display: flex; gap: 0.35rem; } /* ── single-version view ── */ .md-history-pre { flex: 1 1 auto; overflow: auto; margin: 0; padding: 0.6rem 0.8rem; border: 1px solid var(--border, #ddd); border-radius: 4px; background: var(--code-bg, #f7f7f8); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.82rem; white-space: pre-wrap; overflow-wrap: anywhere; } /* ── diff view ── */ .md-diff { flex: 1 1 auto; overflow: auto; border: 1px solid var(--border, #ddd); border-radius: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.82rem; line-height: 1.45; } .md-diff-line { display: flex; gap: 0.5rem; padding: 0 0.5rem; white-space: pre-wrap; overflow-wrap: anywhere; } .md-diff-gutter { flex: 0 0 1ch; text-align: center; color: var(--muted, #999); user-select: none; } .md-diff-text { flex: 1 1 auto; } .md-diff-add { background: rgba(46, 160, 67, 0.16); } .md-diff-add .md-diff-gutter { color: #2ea043; } .md-diff-del { background: rgba(248, 81, 73, 0.16); } .md-diff-del .md-diff-gutter { color: #f85149; } .md-diff-eq { color: var(--muted, #777); } .md-diff-old { color: #f85149; } .md-diff-new { color: #2ea043; } /* ── footer ── */ .md-history-footer { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.85rem; }