Files

529 lines
12 KiB
CSS

/*
* SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* RTX Remix Dialog Styles */
/* Overlay */
.rtx-remix-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: var(--overlay);
display: flex;
align-items: center;
justify-content: center;
z-index: var(--rtx-z-dialog-overlay);
backdrop-filter: blur(var(--blur-md));
animation: rtx-fadeIn var(--rtx-animation-normal) ease-out;
}
/* Dialog Container */
.rtx-remix-dialog {
background: var(--bg-base);
border-radius: var(--radius-xl);
padding: 0;
min-width: 500px;
max-width: 900px;
max-height: 95vh;
display: flex;
flex-direction: column;
box-shadow: var(--shadow-xl);
color: var(--text-secondary);
animation: rtx-slideIn var(--rtx-animation-normal) ease-out;
}
/* Header */
.rtx-remix-dialog-header {
background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-base) 100%);
padding: var(--space-5) var(--space-6);
border-bottom: var(--border-width-medium) solid var(--remix-color);
border-radius: var(--radius-xl) var(--radius-xl) 0 0;
display: flex;
align-items: center;
gap: var(--space-3);
}
.rtx-remix-dialog-icon {
width: var(--icon-lg);
height: var(--icon-lg);
}
.rtx-remix-dialog-title {
margin: 0;
font-size: var(--font-xl);
font-weight: var(--font-semibold);
color: var(--text-primary);
}
/* Dialog header content wrapper for title + subtitle layout */
.rtx-remix-dialog-header-content {
display: flex;
flex-direction: column;
min-width: 0;
flex: 1;
}
.rtx-remix-dialog-header-content .rtx-remix-dialog-title {
margin-bottom: var(--space-2);
}
/* Dialog subtitle */
.rtx-remix-dialog-subtitle {
display: flex;
align-items: center;
gap: var(--space-2);
font-size: var(--font-base);
font-weight: var(--font-normal);
color: var(--text-muted);
min-width: 0;
}
.rtx-remix-dialog-subtitle-node,
.rtx-remix-dialog-subtitle-slot {
max-width: 50%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.rtx-remix-dialog-subtitle-separator {
flex-shrink: 0;
color: var(--text-subtle);
}
/* Body */
.rtx-remix-dialog-body {
padding: var(--space-6);
overflow-y: auto;
flex: 1;
}
.rtx-remix-dialog-body code,
.rtx-remix-info-content code {
background: var(--bg-darker);
color: var(--remix-color);
padding: 3px var(--space-2);
border-radius: var(--radius-sm);
font-family: "Consolas", "Monaco", "Courier New", monospace;
font-size: 0.95em;
font-weight: var(--font-medium);
border: var(--border-width-thin) solid var(--border-base);
box-shadow: var(--shadow-sm);
}
.rtx-remix-dialog-body pre,
.rtx-remix-info-content pre {
background: var(--bg-darker);
color: var(--remix-color);
padding: var(--space-3) var(--space-4);
border-radius: var(--radius-md);
font-family: "Consolas", "Monaco", "Courier New", monospace;
font-size: 0.95em;
font-weight: var(--font-medium);
overflow-x: auto;
border: var(--border-width-thin) solid var(--border-base);
border-left: var(--border-width-thick) solid var(--remix-color);
box-shadow: var(--shadow-md);
}
.rtx-remix-section-title {
margin: 0 0 var(--space-3) 0;
font-size: var(--font-lg);
font-weight: var(--font-semibold);
color: var(--text-primary);
}
.rtx-remix-input-container {
position: relative;
margin-bottom: var(--space-3);
}
.rtx-remix-input {
width: 100%;
padding: var(--space-3) var(--space-4);
background: var(--bg-darker);
border: var(--border-width-medium) solid var(--border-base);
border-radius: var(--radius-md);
color: var(--text-primary);
font-family: inherit;
font-size: var(--font-lg);
box-sizing: border-box;
outline: none;
transition: all var(--rtx-animation-normal) ease;
}
.rtx-remix-input:focus {
border-color: var(--remix-color);
box-shadow: var(--shadow-focus-lg);
}
.rtx-remix-input:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.rtx-remix-input.error {
border-color: var(--status-error);
}
/* Dropdown built from a button plus a popover menu, because a native <select> popup cannot render
the faded category dividers. */
.rtx-remix-select {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-2);
cursor: pointer;
text-align: left;
}
.rtx-remix-select-value.placeholder {
color: var(--text-subtle);
}
.rtx-remix-select-caret {
color: var(--text-subtle);
font-size: var(--font-sm);
}
/* The shared popover sits below the dialog overlay, so lift it when it holds this menu */
.rtx-remix-popover:has(.rtx-remix-select-menu) {
z-index: var(--rtx-z-dropdown);
padding: var(--space-1) 0;
}
.rtx-remix-select-menu {
display: flex;
flex-direction: column;
max-height: 240px;
overflow-y: auto;
}
/* The faded divider line runs inline with the category name, on every category */
.rtx-remix-select-category {
display: flex;
align-items: center;
gap: var(--space-2);
margin-top: var(--space-1);
padding: var(--space-2) var(--space-3) var(--space-1);
color: var(--text-subtle);
font-size: var(--font-xs);
text-transform: uppercase;
letter-spacing: 0.04em;
opacity: 0.75;
}
.rtx-remix-select-category::after {
content: "";
flex: 1;
border-top: var(--border-width-thin) solid var(--border-base);
}
.rtx-remix-select-option {
padding: var(--space-2) var(--space-3);
background: none;
border: none;
color: var(--text-primary);
font-family: inherit;
font-size: var(--font-md);
text-align: left;
cursor: pointer;
}
.rtx-remix-select-option:hover {
background: var(--bg-hover);
}
.rtx-remix-select-option.selected {
color: var(--remix-color);
}
textarea.rtx-remix-input {
resize: vertical;
min-height: 60px;
font-family: inherit;
}
.rtx-remix-required {
color: var(--status-error);
}
.rtx-remix-validation-msg {
margin-top: var(--space-2);
font-size: var(--font-base);
min-height: var(--font-xl);
color: var(--status-error);
display: none;
}
.rtx-remix-validation-msg.show {
display: block;
}
.rtx-remix-info-msg {
margin-top: var(--space-2);
font-size: var(--font-sm);
color: var(--text-subtle);
font-style: italic;
}
.rtx-remix-info-msg.loading {
color: var(--remix-color);
}
/* Footer */
.rtx-remix-dialog-footer {
padding: var(--space-4) var(--space-6);
background: var(--bg-darker);
border-radius: 0 0 var(--radius-xl) var(--radius-xl);
display: flex;
justify-content: flex-end;
gap: var(--space-3);
border-top: var(--border-width-thin) solid var(--border-base);
}
/* Spinner */
.rtx-remix-spinner {
display: inline-flex;
align-items: center;
gap: var(--space-2);
}
.rtx-remix-spinner-icon {
display: inline-block;
width: var(--font-md);
height: var(--font-md);
border: var(--border-width-medium) solid var(--shadow-light);
border-top-color: var(--text-black);
border-radius: 50%;
animation: rtx-spin 0.6s linear infinite;
}
/* Confirmation Dialog */
.rtx-remix-confirm-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: var(--overlay);
display: flex;
align-items: center;
justify-content: center;
z-index: var(--rtx-z-confirm-overlay);
animation: rtx-fadeIn var(--rtx-animation-fast) ease-out;
}
.rtx-remix-confirm-dialog {
background: var(--bg-base);
border-radius: var(--radius-lg);
padding: var(--space-6);
max-width: 400px;
box-shadow: var(--shadow-xl);
animation: rtx-slideIn var(--rtx-animation-fast) ease-out;
color: var(--text-secondary);
}
.rtx-remix-confirm-title {
margin: 0 0 var(--space-4) 0;
color: var(--text-primary);
font-size: var(--font-md);
font-weight: var(--font-semibold);
}
.rtx-remix-confirm-message {
margin: 0 0 var(--space-5) 0;
color: var(--text-muted);
font-size: var(--font-md);
line-height: var(--leading-normal);
}
.rtx-remix-confirm-filename {
color: var(--remix-color);
font-weight: var(--font-medium);
}
.rtx-remix-confirm-actions {
display: flex;
gap: var(--space-3);
justify-content: flex-end;
}
/* Split actions: Cancel left, other buttons right */
.rtx-remix-confirm-actions.rtx-remix-confirm-actions-split {
justify-content: space-between;
}
.rtx-remix-confirm-actions-right {
display: flex;
gap: var(--space-3);
}
/* Info Dialog */
.rtx-remix-info-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: var(--overlay);
display: flex;
align-items: center;
justify-content: center;
z-index: var(--rtx-z-confirm-overlay);
animation: rtx-fadeIn var(--rtx-animation-fast) ease-out;
}
.rtx-remix-info-dialog {
background: var(--bg-base);
border-radius: var(--radius-lg);
padding: var(--space-6);
max-width: 600px;
box-shadow: var(--shadow-xl);
animation: rtx-slideIn var(--rtx-animation-fast) ease-out;
color: var(--text-secondary);
}
.rtx-remix-info-title {
margin: 0 0 var(--space-4) 0;
color: var(--text-primary);
font-size: var(--font-xl);
font-weight: var(--font-semibold);
}
.rtx-remix-info-content {
margin: 0 0 var(--space-5) 0;
color: var(--text-muted);
font-size: var(--font-md);
line-height: 1.6;
}
.rtx-remix-info-content p {
margin: 0 0 var(--space-3) 0;
}
.rtx-remix-info-content p:last-child {
margin-bottom: 0;
}
.rtx-remix-info-content ol,
.rtx-remix-info-content ul {
margin: var(--space-2) 0 var(--space-3) 0;
padding-left: var(--space-6);
}
.rtx-remix-info-content li {
margin-bottom: var(--space-2);
}
.rtx-remix-info-content a {
color: var(--accent-link);
text-decoration: none;
transition: color var(--rtx-animation-normal) ease;
}
.rtx-remix-info-content a:hover {
color: var(--remix-color);
text-decoration: underline;
}
.rtx-remix-info-content strong {
color: var(--text-primary);
font-weight: var(--font-semibold);
}
.rtx-remix-info-content em {
color: var(--text-disabled);
}
.rtx-remix-info-actions {
display: flex;
gap: var(--space-3);
justify-content: flex-end;
}
/* Medium dialog size variant */
.rtx-remix-dialog-medium {
min-width: 400px;
max-width: 500px;
}
/* Large dialog size variant (for export dialog) */
.rtx-remix-dialog-large {
width: 100%;
min-width: 700px;
max-width: 900px;
}
/* Edit Details Dialog */
.rtx-remix-edit-details-info {
color: var(--text-muted);
font-size: var(--font-base);
margin-bottom: var(--space-4);
line-height: var(--leading-normal);
}
.rtx-remix-edit-details-form {
display: flex;
flex-direction: column;
gap: var(--space-3);
}
.rtx-remix-edit-details-form .rtx-remix-metadata-field {
display: flex;
flex-direction: column;
gap: var(--space-2);
}
.rtx-remix-edit-details-form .rtx-remix-metadata-label {
font-size: var(--font-sm);
font-weight: var(--font-medium);
color: var(--text-secondary);
}
.rtx-remix-edit-details-form .rtx-remix-metadata-input {
padding: var(--space-2) 10px;
border-radius: var(--radius-md);
border: var(--border-width-thin) solid var(--border-base);
background: var(--bg-darker);
color: var(--text-primary);
font-size: var(--font-base);
font-family: inherit;
transition:
border-color var(--rtx-animation-fast) ease,
box-shadow var(--rtx-animation-fast) ease;
}
.rtx-remix-edit-details-form .rtx-remix-metadata-input:focus {
outline: none;
border-color: var(--remix-color);
box-shadow: var(--shadow-focus);
}
.rtx-remix-edit-details-form select.rtx-remix-metadata-input {
cursor: pointer;
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 10px center;
padding-right: 30px;
}
/* NOTE: Old group combobox styles removed - now using groupPickerController */