Files
ComfyAssets-ComfyUI-KikoTools/web/css/xyz_grid.css
T
Vito Sansevero 012c0e698c feat: add intelligent UI for XYZ Plot Controller
- Dynamic value selection widgets for models, VAEs, LoRAs, samplers
- Multi-select dialogs with search functionality
- Context-sensitive examples and usage hints for each parameter type
- Real-time validation for numeric inputs with range syntax support
- Visual feedback with proper styling and animations
- Connection hints showing where to connect outputs
- Parameter-specific placeholders and tooltips
2025-08-04 11:50:12 -07:00

247 lines
4.4 KiB
CSS

/* XYZ Grid Styles */
.xyz-value-selector {
position: relative;
margin: 5px 0;
}
.xyz-value-selector button {
transition: all 0.2s ease;
}
.xyz-value-selector button:hover {
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}
.xyz-value-selector button:active {
transform: translateY(0);
}
/* Multi-select dialog animations */
.xyz-multiselect-overlay {
animation: fadeIn 0.2s ease;
}
.xyz-multiselect-dialog {
animation: slideIn 0.2s ease;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes slideIn {
from {
transform: translateY(-20px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
/* Example helper styles */
.xyz-example-helper {
background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
border: 1px solid #444;
border-radius: 4px;
padding: 8px;
margin: 5px 0;
font-size: 11px;
color: #aaa;
position: relative;
overflow: hidden;
}
.xyz-example-helper::before {
content: "Example";
position: absolute;
top: 4px;
right: 8px;
font-size: 9px;
color: #666;
text-transform: uppercase;
letter-spacing: 1px;
}
.xyz-example-helper pre {
margin: 0;
font-family: 'Consolas', 'Monaco', monospace;
white-space: pre-wrap;
line-height: 1.4;
}
/* Value input validation styles */
.xyz-value-input {
transition: border-color 0.2s ease;
}
.xyz-value-input.valid {
border-color: #4ecdc4 !important;
}
.xyz-value-input.invalid {
border-color: #ff6b6b !important;
}
/* Progress indicator */
.xyz-progress-bar {
position: absolute;
bottom: 0;
left: 0;
height: 3px;
background: linear-gradient(90deg, #4ecdc4 0%, #44a3aa 100%);
transition: width 0.3s ease;
border-radius: 0 0 4px 4px;
}
/* Grid info display */
.xyz-grid-info {
background: #2a2a2a;
border: 1px solid #444;
border-radius: 4px;
padding: 8px 12px;
margin: 5px 0;
font-size: 12px;
color: #ddd;
display: flex;
justify-content: space-between;
align-items: center;
}
.xyz-grid-info .dimensions {
color: #4ecdc4;
font-weight: bold;
}
.xyz-grid-info .warning {
color: #ff6b6b;
font-size: 11px;
}
/* Checkbox styling in multi-select */
.xyz-checkbox-option {
display: flex;
align-items: center;
padding: 6px 8px;
margin: 2px 0;
border-radius: 4px;
transition: background-color 0.2s ease;
}
.xyz-checkbox-option:hover {
background-color: rgba(74, 144, 226, 0.1);
}
.xyz-checkbox-option input[type="checkbox"] {
margin-right: 10px;
width: 16px;
height: 16px;
cursor: pointer;
}
.xyz-checkbox-option label {
flex: 1;
cursor: pointer;
user-select: none;
}
/* Search input styling */
.xyz-search-input {
width: 100%;
padding: 10px 12px;
margin-bottom: 12px;
background: #2a2a2a;
border: 1px solid #444;
border-radius: 4px;
color: #fff;
font-size: 14px;
transition: all 0.2s ease;
}
.xyz-search-input:focus {
outline: none;
border-color: #4a90e2;
box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}
.xyz-search-input::placeholder {
color: #666;
}
/* Button group styling */
.xyz-button-group {
display: flex;
gap: 8px;
margin-top: 12px;
}
.xyz-button-group button {
flex: 1;
padding: 8px 16px;
border: none;
border-radius: 4px;
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
}
.xyz-button-primary {
background: #4a90e2;
color: white;
}
.xyz-button-primary:hover {
background: #357abd;
}
.xyz-button-secondary {
background: #666;
color: white;
}
.xyz-button-secondary:hover {
background: #555;
}
/* Tooltip for parameter info */
.xyz-param-tooltip {
position: absolute;
background: #1e1e1e;
border: 1px solid #444;
border-radius: 4px;
padding: 8px 12px;
font-size: 11px;
color: #ddd;
z-index: 10001;
pointer-events: none;
opacity: 0;
transition: opacity 0.2s ease;
max-width: 300px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.xyz-param-tooltip.visible {
opacity: 1;
}
.xyz-param-tooltip::before {
content: '';
position: absolute;
top: -5px;
left: 50%;
transform: translateX(-50%);
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 5px solid #444;
}