/* ============================================================================ */ /* Block handles + slash menu */ /* */ /* Inline tooling shown next to blocks and via the slash shortcut. */ /* ============================================================================ */ /* ---- Block handle (drag + add) ---- */ .block-handle { display: flex; align-items: center; gap: 2px; height: 32px; } .block-handle-btn { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: none; background: none; color: var(--text-faint); border-radius: 6px; cursor: pointer; transition: color 0.12s, background 0.12s; padding: 0; line-height: 1; } .block-handle-btn:hover { color: var(--muted-color); background: var(--code-bg); } .block-handle-grip { cursor: grab; } .block-handle-grip:active { cursor: grabbing; } /* ---- Slash menu ---- */ .slash-menu { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 10px; padding: 0.35rem; min-width: 280px; max-width: 340px; max-height: 360px; overflow-y: auto; box-shadow: var(--shadow-lg); } .slash-menu-group + .slash-menu-group { margin-top: 0.25rem; padding-top: 0.35rem; border-top: 1px solid var(--border-color); } .slash-menu-section { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-color); padding: 0.35rem 0.65rem 0.25rem; user-select: none; pointer-events: none; } .slash-menu-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.45rem 0.6rem; border-radius: 6px; cursor: pointer; transition: background 0.1s; border: none; background: none; width: 100%; text-align: left; color: var(--text-color); font-size: 0.875rem; font-family: inherit; } .slash-menu-item:hover, .slash-menu-item.is-selected { background: var(--code-bg); } .slash-menu-item-icon { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: var(--code-bg); color: var(--muted-color); font-size: 0.9rem; flex-shrink: 0; } .slash-menu-item-content { display: flex; flex-direction: column; } .slash-menu-item-title { font-weight: 500; color: var(--text-color); font-size: 0.875rem; } .slash-menu-item-desc { font-size: 0.75rem; color: var(--muted-color); }