[data-testid="media-editor"] { flex: 1; display: flex; flex-direction: column; background-color: var(--vscode-editor-background); overflow: hidden; } [data-testid="media-editor"] .editor-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px; min-height: 35px; background-color: var(--vscode-tab-activeBackground); border-bottom: 1px solid var(--vscode-panel-border); } [data-testid="media-editor"] .editor-tabs { display: flex; align-items: center; gap: 2px; min-width: 0; } [data-testid="media-editor"] .editor-tab { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 6px 12px; background-color: var(--vscode-tab-inactiveBackground); color: var(--vscode-tab-inactiveForeground); font-size: 13px; border-radius: 4px 4px 0 0; } [data-testid="media-editor"] .editor-tab.active { background-color: var(--vscode-tab-activeBackground); color: var(--vscode-tab-activeForeground); } [data-testid="media-editor"] .editor-tab-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } [data-testid="media-editor"] .editor-tab-dirty { color: var(--vscode-notificationsWarningIcon-foreground, var(--vscode-editorWarning-foreground)); font-size: 10px; } [data-testid="media-editor"] .editor-actions { display: flex; align-items: center; gap: 8px; } [data-testid="media-editor"] .editor-actions button { padding: 4px 10px; font-size: 12px; } [data-testid="media-editor"] .editor-actions button.danger:hover { background-color: var(--vscode-notificationsErrorIcon-foreground); } [data-testid="media-editor"] .auto-save-indicator { font-size: 11px; color: var(--vscode-descriptionForeground); font-style: italic; } [data-testid="media-editor"] .quick-actions-wrapper { position: relative; } [data-testid="media-editor"] .quick-actions-btn { display: inline-flex; align-items: center; gap: 6px; } [data-testid="media-editor"] .quick-actions-btn-icon { font-size: 12px; line-height: 1; } [data-testid="media-editor"] .quick-actions-menu { position: absolute; top: calc(100% + 4px); right: 0; width: 280px; background: var(--vscode-dropdown-background, #252526); border: 1px solid var(--vscode-dropdown-border, #454545); border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); overflow: hidden; z-index: 30; } [data-testid="media-editor"] .quick-actions-divider { height: 1px; background: var(--vscode-dropdown-border, #454545); } [data-testid="media-editor"] .quick-action-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 12px; background: none; border: none; color: var(--vscode-dropdown-foreground, #ccc); cursor: pointer; text-align: left; transition: background 0.1s; } [data-testid="media-editor"] .quick-action-item:hover:not(:disabled) { background: var(--vscode-list-hoverBackground, #2a2d2e); } [data-testid="media-editor"] .quick-action-item:disabled { opacity: 0.5; cursor: not-allowed; } [data-testid="media-editor"] .quick-action-icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; } [data-testid="media-editor"] .quick-action-text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; } [data-testid="media-editor"] .quick-action-text strong { font-size: 13px; font-weight: 500; } [data-testid="media-editor"] .quick-action-text small { font-size: 11px; opacity: 0.7; } [data-testid="media-editor"] .editor-content { flex: 1; display: flex; flex-direction: column; padding: 16px; overflow-y: auto; gap: 16px; } [data-testid="media-editor"] > .editor-content.media-editor { flex-direction: row; align-items: stretch; gap: 24px; } [data-testid="media-editor"] .editor-field { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; } [data-testid="media-editor"] .editor-field label { font-size: 11px; font-weight: 500; color: var(--vscode-descriptionForeground); text-transform: uppercase; letter-spacing: 0.5px; } [data-testid="media-editor"] .editor-field-row { display: flex; gap: 12px; width: 100%; margin-bottom: 0; } [data-testid="media-editor"] .post-editor-input, [data-testid="media-editor"] .post-editor-textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--vscode-input-border, var(--vscode-panel-border)); border-radius: 4px; background: var(--vscode-input-background, rgba(255, 255, 255, 0.06)); color: var(--vscode-input-foreground, var(--vscode-foreground)); font: inherit; } [data-testid="media-editor"] .post-editor-input.disabled, [data-testid="media-editor"] .post-editor-input:disabled { opacity: 0.6; cursor: not-allowed; } [data-testid="media-editor"] .post-editor-textarea { line-height: 1.5; resize: vertical; } [data-testid="media-editor"] .media-preview { flex: 1; display: flex; align-items: center; justify-content: center; background-color: var(--vscode-input-background); border-radius: 8px; min-height: 300px; overflow: hidden; } [data-testid="media-editor"] .media-preview-placeholder { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--vscode-descriptionForeground); } [data-testid="media-editor"] .media-preview-image { display: flex; align-items: center; justify-content: center; align-self: stretch; width: 100%; height: 100%; min-height: 0; padding: 16px; box-sizing: border-box; } [data-testid="media-editor"] .media-preview-image img { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; } [data-testid="media-editor"] .media-details { width: 320px; display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; } [data-testid="media-editor"] .media-editor-details-form { display: flex; flex-direction: column; gap: 12px; } [data-testid="media-editor"] .media-details textarea { resize: vertical; } [data-testid="media-editor"] .linked-posts-section label { display: flex; justify-content: space-between; align-items: center; } [data-testid="media-editor"] .add-link-btn { background: var(--vscode-button-secondaryBackground); border: none; color: var(--vscode-button-secondaryForeground); padding: 2px 8px; border-radius: 3px; cursor: pointer; font-size: 11px; } [data-testid="media-editor"] .add-link-btn:hover { background: var(--vscode-button-secondaryHoverBackground); } [data-testid="media-editor"] .post-picker { background: var(--vscode-dropdown-background); border: 1px solid var(--vscode-dropdown-border); border-radius: 4px; margin-top: 8px; max-height: 250px; overflow-y: auto; } [data-testid="media-editor"] .post-picker-search { padding: 8px; border-bottom: 1px solid var(--vscode-dropdown-border); position: sticky; top: 0; background: var(--vscode-dropdown-background); } [data-testid="media-editor"] .post-picker-search input { width: 100%; padding: 6px 10px; background: var(--vscode-input-background); border: 1px solid var(--vscode-input-border); border-radius: 3px; color: var(--vscode-input-foreground); font-size: 12px; } [data-testid="media-editor"] .post-picker-search input:focus { outline: none; border-color: var(--vscode-focusBorder); } [data-testid="media-editor"] .post-picker-list { padding: 4px; } [data-testid="media-editor"] .post-picker-item { width: 100%; padding: 6px 8px; cursor: pointer; border: none; border-radius: 3px; background: transparent; color: inherit; font-size: 12px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } [data-testid="media-editor"] .post-picker-item:hover { background: var(--vscode-list-hoverBackground); } [data-testid="media-editor"] .post-picker-more { padding: 6px 8px; color: var(--vscode-descriptionForeground); font-size: 11px; font-style: italic; } [data-testid="media-editor"] .no-posts, [data-testid="media-editor"] .no-linked-posts { padding: 12px 8px; color: var(--vscode-descriptionForeground); font-size: 12px; font-style: italic; } [data-testid="media-editor"] .linked-posts-list { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; } [data-testid="media-editor"] .linked-post-item { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; background: var(--vscode-sideBar-background); border-radius: 4px; } [data-testid="media-editor"] .linked-post-title, [data-testid="media-editor"] .linked-post-link { flex: 1; min-width: 0; border: none; background: transparent; padding: 0; color: inherit; text-align: left; cursor: pointer; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } [data-testid="media-editor"] .linked-post-title:hover, [data-testid="media-editor"] .linked-post-link:hover { color: var(--vscode-textLink-foreground); text-decoration: underline; } [data-testid="media-editor"] .linked-post-item .unlink-btn { background: none; border: none; color: var(--vscode-descriptionForeground); cursor: pointer; padding: 0 4px; font-size: 14px; opacity: 0; transition: opacity 0.1s; } [data-testid="media-editor"] .linked-post-item:hover .unlink-btn { opacity: 1; } [data-testid="media-editor"] .linked-post-item .unlink-btn:hover { color: var(--vscode-errorForeground); } .translation-modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.68); display: flex; align-items: center; justify-content: center; pointer-events: auto; z-index: 10001; } .translation-modal { width: min(640px, calc(100vw - 32px)); background: #1e1e1e; border: 1px solid #3c3c3c; border-radius: 8px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); } .translation-modal-header, .translation-modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; } .translation-modal-header { border-bottom: 1px solid #3c3c3c; } .translation-modal-footer { border-top: 1px solid #3c3c3c; justify-content: flex-end; gap: 10px; } .translation-modal-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; } .translation-modal-close { border: none; background: transparent; color: #c5c5c5; cursor: pointer; font-size: 20px; line-height: 1; }