Files
Owen/demo/styles/interactive.css
Kaj Kowalski ad8dbb95dd
Some checks failed
CI/CD Pipeline / Test & Lint (16.x) (push) Has been cancelled
CI/CD Pipeline / Test & Lint (18.x) (push) Has been cancelled
CI/CD Pipeline / Test & Lint (20.x) (push) Has been cancelled
CI/CD Pipeline / Security Audit (push) Has been cancelled
CI/CD Pipeline / Release (push) Has been cancelled
Release / Validate Version (push) Has been cancelled
Release / Build and Test (push) Has been cancelled
Release / Create Release (push) Has been cancelled
Release / Publish to NPM (push) Has been cancelled
Release / Deploy Demo (push) Has been cancelled
Animation Processing Pipeline / Validate Animation Names (push) Has been cancelled
Animation Processing Pipeline / Process Blender Animation Assets (push) Has been cancelled
Animation Processing Pipeline / Update Animation Documentation (push) Has been cancelled
Animation Processing Pipeline / Deploy Animation Demo (push) Has been cancelled
Implement multi-scheme animation name mapper for Owen Animation System
- Added AnimationNameMapper class to handle conversion between different animation naming schemes (legacy, artist, hierarchical, semantic).
- Included methods for initialization, pattern matching, conversion, and validation of animation names.
- Developed comprehensive unit tests for the animation name converter and demo pages using Playwright.
- Created a Vite configuration for the demo application, including asset handling and optimization settings.
- Enhanced the demo with features for batch conversion, performance metrics, and responsive design.
2025-05-24 05:40:03 +02:00

445 lines
8.0 KiB
CSS

/* Interactive Playground Specific Styles */
.interactive-container {
max-width: 1600px;
margin: 0 auto;
padding: 2rem;
display: grid;
grid-template-areas:
"header header"
"controls playground"
"results results";
grid-template-columns: 300px 1fr;
grid-template-rows: auto 1fr auto;
gap: 2rem;
min-height: calc(100vh - 4rem);
}
.playground-header {
grid-area: header;
text-align: center;
margin-bottom: 1rem;
}
.playground-header h1 {
color: var(--text-primary);
margin-bottom: 1rem;
}
.playground-header p {
color: var(--text-secondary);
font-size: 1.125rem;
max-width: 600px;
margin: 0 auto;
line-height: 1.6;
}
.playground-controls {
grid-area: controls;
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 1.5rem;
height: fit-content;
box-shadow: var(--shadow-sm);
}
.controls-section {
margin-bottom: 2rem;
}
.controls-section:last-child {
margin-bottom: 0;
}
.section-title {
font-size: 1rem;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 1rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid var(--border-color);
}
.control-group {
margin-bottom: 1rem;
}
.control-label {
display: block;
font-size: 0.875rem;
color: var(--text-secondary);
margin-bottom: 0.5rem;
font-weight: 500;
}
.control-input {
width: 100%;
padding: 0.75rem;
border: 1px solid var(--border-color);
background: var(--bg-tertiary);
color: var(--text-primary);
border-radius: 6px;
font-size: 0.875rem;
transition: all 0.2s ease;
}
.control-input:focus {
outline: none;
border-color: var(--accent-color);
box-shadow: 0 0 0 3px var(--accent-color-alpha);
}
.control-textarea {
min-height: 100px;
resize: vertical;
font-family: "Fira Code", monospace;
}
.scheme-buttons {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.5rem;
margin-bottom: 1rem;
}
.scheme-button {
padding: 0.75rem;
border: 1px solid var(--border-color);
background: var(--bg-tertiary);
color: var(--text-secondary);
border-radius: 6px;
cursor: pointer;
transition: all 0.2s ease;
font-size: 0.75rem;
text-align: center;
font-weight: 500;
}
.scheme-button:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.scheme-button.active {
background: var(--accent-color);
color: white;
border-color: var(--accent-color);
}
.action-buttons {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.action-button {
padding: 0.75rem 1rem;
border: 1px solid var(--accent-color);
background: var(--accent-color);
color: white;
border-radius: 6px;
cursor: pointer;
transition: all 0.2s ease;
font-weight: 500;
font-size: 0.875rem;
}
.action-button:hover {
background: var(--accent-hover);
border-color: var(--accent-hover);
}
.action-button.secondary {
background: transparent;
color: var(--accent-color);
}
.action-button.secondary:hover {
background: var(--accent-color-alpha);
}
.action-button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.playground-main {
grid-area: playground;
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: 12px;
overflow: hidden;
box-shadow: var(--shadow-sm);
display: flex;
flex-direction: column;
}
.playground-tabs {
display: flex;
background: var(--bg-tertiary);
border-bottom: 1px solid var(--border-color);
}
.playground-tab {
padding: 1rem 1.5rem;
background: none;
border: none;
color: var(--text-secondary);
cursor: pointer;
transition: all 0.2s ease;
font-weight: 500;
border-bottom: 2px solid transparent;
}
.playground-tab:hover {
color: var(--text-primary);
background: var(--bg-hover);
}
.playground-tab.active {
color: var(--accent-color);
border-bottom-color: var(--accent-color);
background: var(--bg-secondary);
}
.playground-content {
flex: 1;
padding: 1.5rem;
overflow: auto;
}
.code-editor {
width: 100%;
height: 400px;
border: 1px solid var(--border-color);
border-radius: 6px;
background: var(--bg-code);
color: var(--text-primary);
font-family: "Fira Code", monospace;
font-size: 0.875rem;
padding: 1rem;
resize: vertical;
line-height: 1.5;
}
.output-panel {
background: var(--bg-code);
border: 1px solid var(--border-color);
border-radius: 6px;
padding: 1rem;
font-family: "Fira Code", monospace;
font-size: 0.875rem;
line-height: 1.5;
color: var(--text-primary);
white-space: pre-wrap;
overflow: auto;
max-height: 400px;
}
.conversion-preview {
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
border-radius: 6px;
padding: 1rem;
margin-top: 1rem;
}
.preview-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.5rem 0;
border-bottom: 1px solid var(--border-color);
}
.preview-item:last-child {
border-bottom: none;
}
.preview-input {
font-family: "Fira Code", monospace;
color: var(--text-secondary);
font-size: 0.875rem;
}
.preview-output {
font-family: "Fira Code", monospace;
color: var(--text-primary);
font-size: 0.875rem;
font-weight: 500;
}
.performance-monitor {
grid-area: results;
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 1.5rem;
box-shadow: var(--shadow-sm);
}
.monitor-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
margin-top: 1rem;
}
.monitor-card {
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 1rem;
text-align: center;
}
.monitor-value {
font-size: 1.5rem;
font-weight: bold;
color: var(--accent-color);
margin-bottom: 0.5rem;
}
.monitor-label {
color: var(--text-secondary);
font-size: 0.875rem;
}
.status-indicator {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
margin-right: 0.5rem;
}
.status-indicator.success {
background: var(--success-color);
}
.status-indicator.warning {
background: var(--warning-color);
}
.status-indicator.error {
background: var(--error-color);
}
.error-message {
background: var(--error-bg);
color: var(--error-text);
border: 1px solid var(--error-border);
border-radius: 6px;
padding: 1rem;
margin: 1rem 0;
}
.success-message {
background: var(--success-bg);
color: var(--success-text);
border: 1px solid var(--success-border);
border-radius: 6px;
padding: 1rem;
margin: 1rem 0;
}
.loading-spinner {
display: inline-block;
width: 16px;
height: 16px;
border: 2px solid var(--border-color);
border-top: 2px solid var(--accent-color);
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.history-panel {
max-height: 300px;
overflow-y: auto;
border: 1px solid var(--border-color);
border-radius: 6px;
background: var(--bg-tertiary);
}
.history-item {
padding: 0.75rem 1rem;
border-bottom: 1px solid var(--border-color);
cursor: pointer;
transition: background 0.2s ease;
}
.history-item:hover {
background: var(--bg-hover);
}
.history-item:last-child {
border-bottom: none;
}
.history-input {
font-family: "Fira Code", monospace;
font-size: 0.875rem;
color: var(--text-primary);
margin-bottom: 0.25rem;
}
.history-meta {
font-size: 0.75rem;
color: var(--text-secondary);
}
@media (max-width: 1024px) {
.interactive-container {
grid-template-areas:
"header"
"controls"
"playground"
"results";
grid-template-columns: 1fr;
padding: 1rem;
}
.playground-controls {
height: auto;
}
.scheme-buttons {
grid-template-columns: 1fr;
}
.monitor-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 640px) {
.playground-tabs {
overflow-x: auto;
}
.playground-tab {
padding: 0.75rem 1rem;
white-space: nowrap;
}
.code-editor {
height: 300px;
}
.monitor-grid {
grid-template-columns: 1fr;
}
.action-buttons {
gap: 0.5rem;
}
}