download
raw
11.8 kB
/* ======================================
POISSON SIMULATION APP STYLES
====================================== */
.poisson-app {
min-height: 100vh;
background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 100%);
color: #eee;
font-family: system-ui, -apple-system, sans-serif;
}
/* Header */
.poisson-header {
padding: 20px 30px;
background: rgba(0, 0, 0, 0.3);
border-bottom: 1px solid #333;
display: flex;
align-items: center;
gap: 20px;
}
.poisson-header h1 {
margin: 0;
font-size: 1.5rem;
color: #00d4ff;
}
.poisson-header .subtitle {
margin: 0;
color: #888;
font-size: 0.9rem;
}
.back-btn {
background: transparent;
border: 1px solid #555;
color: #aaa;
padding: 8px 16px;
border-radius: 4px;
cursor: pointer;
transition: all 0.3s ease;
}
.back-btn:hover {
background: #333;
color: #fff;
border-color: #00d4ff;
}
/* Main Layout */
.poisson-main {
display: grid;
grid-template-columns: 350px 1fr;
gap: 20px;
padding: 20px;
min-height: calc(100vh - 100px);
}
@media (max-width: 1024px) {
.poisson-main {
grid-template-columns: 1fr;
}
}
/* Control Panel */
.control-panel {
display: flex;
flex-direction: column;
gap: 20px;
max-height: calc(100vh - 140px);
overflow-y: auto;
}
/* Form Styles */
.poisson-form {
background: rgba(30, 30, 50, 0.8);
border-radius: 8px;
padding: 15px;
border: 1px solid #333;
}
.poisson-form h3 {
margin: 0 0 15px;
color: #00d4ff;
font-size: 1.1rem;
}
.form-section {
margin-bottom: 10px;
border: 1px solid #333;
border-radius: 6px;
overflow: hidden;
}
.section-header {
width: 100%;
padding: 12px 15px;
background: rgba(0, 0, 0, 0.3);
border: none;
color: #eee;
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
font-size: 0.95rem;
transition: background 0.3s ease;
}
.section-header:hover {
background: rgba(0, 212, 255, 0.1);
}
.section-header .toggle {
color: #00d4ff;
font-weight: bold;
}
.section-content {
padding: 15px;
background: rgba(0, 0, 0, 0.2);
}
.form-group {
margin-bottom: 12px;
}
.form-group label {
display: block;
margin-bottom: 5px;
color: #aaa;
font-size: 0.85rem;
}
.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
width: 100%;
padding: 8px 12px;
background: #1a1a2e;
border: 1px solid #444;
border-radius: 4px;
color: #eee;
font-size: 0.9rem;
box-sizing: border-box;
}
.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus {
border-color: #00d4ff;
outline: none;
}
.form-group input[type="range"] {
width: 100%;
height: 6px;
border-radius: 3px;
background: #333;
cursor: pointer;
-webkit-appearance: none;
}
.form-group input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
width: 16px;
height: 16px;
border-radius: 50%;
background: #00d4ff;
cursor: pointer;
}
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}
.form-group.checkbox label {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
}
.form-group.checkbox input[type="checkbox"] {
width: 18px;
height: 18px;
cursor: pointer;
}
/* Boundary Selector */
.boundary-selector {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 5px;
}
.boundary-btn {
padding: 8px;
background: #2a2a4a;
border: 1px solid #444;
border-radius: 4px;
color: #aaa;
cursor: pointer;
font-size: 0.85rem;
transition: all 0.3s ease;
}
.boundary-btn:hover {
background: #3a3a5a;
}
.boundary-btn.selected {
background: #00d4ff;
color: #000;
border-color: #00d4ff;
}
/* Form Actions */
.form-actions {
display: flex;
gap: 10px;
margin-top: 15px;
}
.btn-preview,
.btn-submit {
flex: 1;
padding: 12px;
border: none;
border-radius: 6px;
font-size: 0.9rem;
cursor: pointer;
transition: all 0.3s ease;
}
.btn-preview {
background: #2a2a4a;
color: #00d4ff;
border: 1px solid #00d4ff;
}
.btn-preview:hover:not(:disabled) {
background: rgba(0, 212, 255, 0.2);
}
.btn-submit {
background: linear-gradient(135deg, #00d4ff, #00ff88);
color: #000;
font-weight: bold;
}
.btn-submit:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}
.btn-preview:disabled,
.btn-submit:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* Simulation History */
.simulation-history {
background: rgba(30, 30, 50, 0.8);
border-radius: 8px;
padding: 15px;
border: 1px solid #333;
}
.simulation-history h3 {
margin: 0 0 15px;
color: #00d4ff;
font-size: 1rem;
}
.no-simulations {
color: #666;
text-align: center;
padding: 20px;
}
.simulation-list {
list-style: none;
padding: 0;
margin: 0;
max-height: 300px;
overflow-y: auto;
}
.simulation-item {
padding: 12px;
background: rgba(0, 0, 0, 0.2);
border-radius: 6px;
margin-bottom: 8px;
cursor: pointer;
position: relative;
transition: all 0.3s ease;
border: 1px solid transparent;
}
.simulation-item:hover {
background: rgba(0, 212, 255, 0.1);
border-color: #333;
}
.simulation-item.selected {
border-color: #00d4ff;
background: rgba(0, 212, 255, 0.15);
}
.sim-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 5px;
}
.sim-name {
font-weight: 500;
color: #eee;
font-size: 0.9rem;
}
.sim-details {
display: flex;
gap: 15px;
font-size: 0.8rem;
color: #888;
}
.delete-btn {
position: absolute;
top: 8px;
right: 8px;
width: 24px;
height: 24px;
background: transparent;
border: none;
color: #666;
font-size: 1.2rem;
cursor: pointer;
border-radius: 4px;
opacity: 0;
transition: all 0.3s ease;
}
.simulation-item:hover .delete-btn {
opacity: 1;
}
.delete-btn:hover {
background: #ff6b6b;
color: #fff;
}
/* Status Badges */
.status {
padding: 3px 8px;
border-radius: 4px;
font-size: 0.75rem;
text-transform: uppercase;
}
.status-completed { background: rgba(0, 255, 136, 0.2); color: #00ff88; }
.status-running { background: rgba(255, 193, 7, 0.2); color: #ffc107; }
.status-failed { background: rgba(255, 107, 107, 0.2); color: #ff6b6b; }
.status-pending { background: rgba(150, 150, 150, 0.2); color: #999; }
/* Visualization Panel */
.visualization-panel {
display: flex;
flex-direction: column;
background: rgba(30, 30, 50, 0.8);
border-radius: 8px;
border: 1px solid #333;
overflow: hidden;
}
/* View Tabs */
.view-tabs {
display: flex;
background: rgba(0, 0, 0, 0.3);
border-bottom: 1px solid #333;
}
.tab {
flex: 1;
padding: 12px 20px;
background: transparent;
border: none;
color: #888;
cursor: pointer;
font-size: 0.9rem;
transition: all 0.3s ease;
border-bottom: 2px solid transparent;
}
.tab:hover:not(:disabled) {
color: #eee;
background: rgba(255, 255, 255, 0.05);
}
.tab.active {
color: #00d4ff;
border-bottom-color: #00d4ff;
}
.tab:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* Viewer Container */
.viewer-container {
flex: 1;
position: relative;
min-height: 500px;
}
.mesh-viewer-3d,
.solution-viewer,
.animation-player {
height: 100%;
display: flex;
flex-direction: column;
}
.mesh-viewer-3d canvas,
.solution-viewer .canvas-container canvas,
.animation-player .canvas-container canvas {
flex: 1;
}
.canvas-container {
flex: 1;
position: relative;
}
/* Viewer Controls */
.viewer-controls {
display: flex;
align-items: center;
gap: 20px;
padding: 10px 15px;
background: rgba(0, 0, 0, 0.3);
border-bottom: 1px solid #333;
}
.viewer-controls label {
display: flex;
align-items: center;
gap: 6px;
color: #aaa;
font-size: 0.85rem;
cursor: pointer;
}
.viewer-controls input[type="checkbox"] {
width: 16px;
height: 16px;
}
.viewer-controls .info {
margin-left: auto;
color: #666;
font-size: 0.8rem;
}
.control-group {
display: flex;
flex-direction: column;
gap: 4px;
}
.control-group input[type="range"] {
width: 100px;
}
.view-mode-toggle {
display: flex;
gap: 2px;
background: #1a1a2e;
border-radius: 4px;
overflow: hidden;
}
.view-mode-toggle button {
padding: 6px 12px;
background: transparent;
border: none;
color: #888;
cursor: pointer;
transition: all 0.3s ease;
}
.view-mode-toggle button.active {
background: #00d4ff;
color: #000;
}
/* Colorbar */
.colorbar {
position: absolute;
right: 20px;
top: 50%;
transform: translateY(-50%);
width: 25px;
height: 200px;
display: flex;
flex-direction: column;
}
.colorbar-gradient {
flex: 1;
display: flex;
flex-direction: column-reverse;
border-radius: 4px;
overflow: hidden;
border: 1px solid #444;
}
.colorbar-labels {
display: flex;
flex-direction: column-reverse;
justify-content: space-between;
padding-left: 30px;
margin-top: -200px;
height: 200px;
font-size: 0.7rem;
color: #aaa;
}
/* Viewer Help */
.viewer-help {
padding: 8px 15px;
background: rgba(0, 0, 0, 0.3);
border-top: 1px solid #333;
color: #666;
font-size: 0.8rem;
text-align: center;
}
/* Stats Bar */
.stats-bar {
display: flex;
justify-content: space-around;
padding: 15px;
background: rgba(0, 0, 0, 0.3);
border-top: 1px solid #333;
}
.stat {
text-align: center;
}
.stat .label {
display: block;
color: #666;
font-size: 0.75rem;
text-transform: uppercase;
margin-bottom: 4px;
}
.stat .value {
color: #00d4ff;
font-size: 1rem;
font-weight: 500;
}
/* Loading Overlay */
.loading-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(10, 10, 26, 0.9);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
z-index: 100;
}
.spinner {
width: 50px;
height: 50px;
border: 3px solid #333;
border-top-color: #00d4ff;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.loading-overlay p {
margin-top: 15px;
color: #888;
}
/* Placeholder */
.placeholder {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #666;
text-align: center;
padding: 40px;
}
.placeholder p {
margin: 5px 0;
}
/* Animation Controls */
.animation-controls {
padding: 15px;
background: rgba(0, 0, 0, 0.3);
border-top: 1px solid #333;
}
.playback-controls {
display: flex;
gap: 5px;
}
.playback-controls button {
width: 40px;
height: 40px;
background: #2a2a4a;
border: 1px solid #444;
border-radius: 4px;
color: #eee;
cursor: pointer;
font-size: 1.1rem;
transition: all 0.3s ease;
}
.playback-controls button:hover {
background: #3a3a5a;
border-color: #00d4ff;
}
.frame-info {
color: #888;
font-size: 0.85rem;
}
.loop-toggle {
display: flex;
align-items: center;
gap: 6px;
color: #aaa;
font-size: 0.85rem;
}
.control-row {
display: flex;
gap: 20px;
margin-top: 10px;
}
.timeline-slider {
width: 100% !important;
}

Xet Storage Details

Size:
11.8 kB
·
Xet hash:
abc4bb41272725c510a203052763a5bad38c200e50909aba8e56f15b22169ac3

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.