spaxel/dashboard/css/floorplan.css
jedarden bd3e89f2e5 feat(dashboard): tokenize CSS to design system tokens and fix home page styling
Convert hardcoded rgba colors across all dashboard CSS files to use
--ok-bg, --warn-bg, --alert-bg tokens from tokens.css per §8e design
system. Home page status banner and card tags now use proper semantic
tokens. Add layout.css import to live.html for shared nav structure.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-24 12:46:02 -04:00

261 lines
4.6 KiB
CSS

/**
* Floor Plan Setup Panel Styles
*/
.floorplan-panel {
position: fixed;
top: 60px;
right: 340px;
width: 380px;
max-height: calc(100vh - 80px);
background: rgba(0, 0, 0, 0.9);
border-radius: 8px;
z-index: 100;
overflow-y: auto;
}
.floorplan-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 16px;
border-bottom: 1px solid var(--bg-hover);
}
.floorplan-header h3 {
font-size: var(--text-sm);
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 1px;
margin: 0;
}
.floorplan-close {
background: none;
border: none;
color: var(--text-muted);
font-size: 24px;
cursor: pointer;
padding: 0 4px;
line-height: 1;
transition: color 0.2s;
}
.floorplan-close:hover {
color: var(--slate-12);
}
.floorplan-content {
padding: 12px;
}
.floorplan-section {
margin-bottom: 20px;
}
.floorplan-section h4 {
font-size: 13px;
color: var(--slate-11);
margin-bottom: 8px;
}
.floorplan-hint {
font-size: 11px;
color: var(--text-muted);
margin-bottom: 8px;
}
/* Upload area */
.floorplan-upload-area {
display: flex;
align-items: center;
gap: 12px;
}
.floorplan-btn {
padding: 6px 14px;
border-radius: 4px;
font-size: var(--text-xs);
cursor: pointer;
transition: background 0.2s;
border: none;
display: inline-flex;
align-items: center;
gap: 6px;
}
.floorplan-btn-primary {
background: var(--blue-10);
color: var(--bg-card);
}
.floorplan-btn-primary:hover:not(:disabled) {
background: var(--blue-10);
}
.floorplan-btn-primary:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.floorplan-btn-secondary {
background: var(--bg-hover);
color: var(--slate-11);
border: 1px solid var(--border-strong);
}
.floorplan-btn-secondary:hover {
background: var(--border-strong);
}
.floorplan-icon {
font-size: var(--text-sm);
}
.floorplan-file-name {
font-size: 11px;
color: var(--text-muted);
max-width: 180px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* Preview */
.floorplan-preview {
margin-top: 12px;
text-align: center;
}
.floorplan-preview img {
max-width: 100%;
max-height: 200px;
border-radius: 4px;
border: 1px solid var(--bg-hover);
}
/* Calibration */
.floorplan-calibration-container {
margin-top: 12px;
}
.floorplan-image-wrapper {
position: relative;
display: inline-block;
border: 1px solid var(--bg-hover);
border-radius: 4px;
overflow: hidden;
}
#floorplan-canvas {
display: block;
cursor: crosshair;
max-width: 100%;
}
.floorplan-marker {
position: absolute;
width: 24px;
height: 24px;
border-radius: 50%;
color: var(--text-on-accent);
font-size: var(--text-xs);
font-weight: bold;
display: flex;
align-items: center;
justify-content: center;
transform: translate(-50%, -50%);
pointer-events: none;
text-shadow: 0 1px 3px var(--overlay-strong);
}
.floorplan-controls {
margin-top: 12px;
}
.floorplan-instructions {
font-size: var(--text-xs);
color: var(--text-muted);
background: var(--border-subtle);
padding: 8px 10px;
border-radius: 4px;
text-align: center;
}
.floorplan-points-info {
background: var(--shadow);
border-radius: 4px;
padding: 8px 10px;
margin-top: 8px;
}
.floorplan-point-info {
display: flex;
justify-content: space-between;
font-size: 11px;
margin-bottom: 4px;
}
.point-label {
color: var(--text-muted);
}
.floorplan-distance-input {
margin-top: 8px;
}
.floorplan-distance-input label {
display: block;
font-size: 11px;
color: var(--text-secondary);
margin-bottom: 4px;
}
.floorplan-distance-input input {
width: 100%;
padding: 6px 10px;
background: var(--border-default);
border: 1px solid var(--border-strong);
border-radius: 4px;
color: var(--slate-12);
font-size: 13px;
box-sizing: border-box;
}
.floorplan-distance-input input:focus {
outline: none;
border-color: var(--blue-10);
box-shadow: 0 0 0 2px var(--blue-muted);
}
.floorplan-actions {
display: flex;
justify-content: space-between;
margin-top: 12px;
gap: 8px;
}
.floorplan-status-info {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
margin-bottom: 12px;
}
.status-item {
display: flex;
justify-content: space-between;
font-size: 11px;
}
.status-label {
color: var(--text-muted);
}
/* Responsive adjustments */
@media (max-width: 1200px) {
.floorplan-panel {
right: 20px;
width: 340px;
}
}