326 lines
7.0 KiB
CSS
326 lines
7.0 KiB
CSS
[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 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-divider {
|
|
height: 1px;
|
|
background: var(--vscode-dropdown-border, #454545);
|
|
}
|
|
|
|
[data-testid="media-editor"] .quick-action-icon {
|
|
font-size: 16px;
|
|
flex-shrink: 0;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
[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.media-editor {
|
|
flex-direction: row;
|
|
align-items: stretch;
|
|
gap: 24px;
|
|
}
|
|
|
|
[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"] .post-editor-input.disabled,
|
|
[data-testid="media-editor"] .post-editor-input:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
[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;
|
|
gap: 12px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
[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;
|
|
}
|
|
|