.menu-editor-view { padding: 1rem; height: 100%; display: flex; flex-direction: column; gap: 0.75rem; position: relative; } .menu-editor-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; } .menu-editor-header h2 { margin: 0; } .menu-editor-header p { margin: 0.25rem 0 0; color: var(--vscode-descriptionForeground); } .menu-editor-loading, .menu-editor-empty { color: var(--vscode-descriptionForeground); } .menu-editor-main { display: flex; flex-direction: column; min-height: 0; flex: 1; } .menu-editor-tree-wrap { display: flex; flex-direction: column; flex: 1; border: 1px solid var(--vscode-panel-border); border-radius: 6px; background: var(--vscode-editor-background); padding: 0.5rem; min-height: 0; } .menu-editor-tree-wrap [role='tree'] { flex: 1; min-height: 0; } .menu-editor-toolbar { display: flex; align-items: center; gap: 0.2rem; margin-bottom: 0.5rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--vscode-panel-border); } .menu-editor-tool { width: 1.8rem; height: 1.8rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--vscode-foreground); cursor: pointer; padding: 0; } .menu-editor-tool-wrap { display: inline-flex; } .menu-editor-toolbar-tooltip { margin-left: auto; max-width: 320px; min-width: 120px; border: 1px solid var(--vscode-editorHoverWidget-border); border-radius: 4px; background: var(--vscode-editorHoverWidget-background); color: var(--vscode-editorHoverWidget-foreground); font-size: 0.75rem; line-height: 1.2; padding: 0.25rem 0.45rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .menu-editor-tool:hover:not(:disabled) { background: var(--vscode-toolbar-hoverBackground); border-color: var(--vscode-panel-border); } .menu-editor-tool:disabled { opacity: 0.45; cursor: not-allowed; } .menu-editor-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.2rem 0.4rem; border-radius: 4px; cursor: pointer; } .menu-editor-row.is-selected { background: var(--vscode-list-activeSelectionBackground); color: var(--vscode-list-activeSelectionForeground); } .menu-editor-row.is-parent-target { box-shadow: inset 0 0 0 1px var(--vscode-focusBorder); background: var(--vscode-list-hoverBackground); } .menu-editor-row-kind { display: inline-flex; align-items: center; justify-content: center; width: 1rem; min-width: 1rem; opacity: 0.9; } .menu-editor-row-kind-icon { display: inline-flex; align-items: center; justify-content: center; color: inherit; } .menu-editor-row-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .menu-editor-row-title.is-editing { white-space: normal; overflow: visible; text-overflow: clip; } .menu-editor-inline-input { width: 100%; border: 1px solid var(--vscode-focusBorder); border-radius: 4px; background: var(--vscode-input-background); color: var(--vscode-input-foreground); padding: 0.15rem 0.4rem; min-height: 1.6rem; } .menu-editor-inline-search { margin-top: 0.5rem; border-top: 1px solid var(--vscode-panel-border); padding-top: 0.5rem; display: flex; flex-direction: column; gap: 0.35rem; max-height: 18rem; overflow: hidden; } .menu-editor-entry-editor { display: block; } .menu-editor-inline-search-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; } .menu-editor-inline-actions { display: inline-flex; align-items: center; gap: 0.5rem; } .menu-editor-inline-search-head strong { font-size: 0.8rem; } .menu-editor-inline-search-head span { color: var(--vscode-descriptionForeground); font-size: 0.75rem; } .menu-editor-inline-action { border: 1px solid var(--vscode-button-border, transparent); border-radius: 4px; background: var(--vscode-button-secondaryBackground); color: var(--vscode-button-secondaryForeground); padding: 0.2rem 0.5rem; cursor: pointer; } .menu-editor-inline-action:hover { background: var(--vscode-button-secondaryHoverBackground); } .menu-editor-picker-backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--vscode-editor-background) 75%, black); display: flex; align-items: center; justify-content: center; } .menu-editor-picker { width: min(580px, 90%); max-height: 75%; border: 1px solid var(--vscode-panel-border); background: var(--vscode-editor-background); border-radius: 6px; padding: 0.75rem; display: flex; flex-direction: column; gap: 0.6rem; } .menu-editor-picker-header { display: flex; justify-content: space-between; align-items: center; } .menu-editor-picker-header h3 { margin: 0; } .menu-editor-picker-list { display: flex; flex-direction: column; gap: 0.35rem; max-height: 16rem; overflow-y: auto; } .menu-editor-picker-item { display: flex; justify-content: space-between; align-items: center; width: 100%; border: 1px solid var(--vscode-panel-border); border-radius: 4px; background: var(--vscode-input-background); color: var(--vscode-input-foreground); padding: 0.45rem 0.55rem; text-align: left; cursor: pointer; } .menu-editor-picker-item:hover { border-color: var(--vscode-focusBorder); background: var(--vscode-list-hoverBackground); } .menu-editor-picker-item.is-active { border-color: var(--vscode-focusBorder); background: var(--vscode-list-activeSelectionBackground); color: var(--vscode-list-activeSelectionForeground); } .menu-editor-picker-item.is-active small { color: var(--vscode-list-activeSelectionForeground); opacity: 0.8; } .menu-editor-picker-item small { color: var(--vscode-descriptionForeground); } .menu-editor-picker-state { color: var(--vscode-descriptionForeground); }