af8b9fe00f
Full-featured house/apartment floor plan editor with: - Turborepo monorepo (React/Vite client, Fastify/Prisma server, shared Zod schemas) - 2D room editor with walls, doors, windows, furniture, electrical elements - 3D room preview with Three.js (auto-hide nearest walls, bird's eye default) - Wall projection views with interactive drag (elevation, position) - Apartment floor plan view with room positioning - Copy/paste, alignment tools, measurement tool, annotations - Item-attached annotations with leader lines (visible on projections) - Door open direction (LEFT/RIGHT/INWARD/OUTWARD) with swing arc - Floor type textures (wood, tile, concrete, laminate, herringbone) - Wall color picker for 3D view - Furniture: bed, desk, wardrobe, sofa, table, chair, shelf, nightstand, dresser, bookcase, TV (with stand toggle), AC unit - Furniture elevation support (wall-mounted items) - Auto-save with dirty state tracking, batch save API - Rotation-aware collision detection (SAT/OBB) with 3D elevation check - Rotation-aware hit testing - i18n (English/Russian) with locale-aware number formatting - Dark mode with system preference detection - Undo/redo, keyboard shortcuts, scale bar - PDF/PNG/JSON export and JSON import - Focus trap modal, toast notifications, tooltips - Responsive layout with overlay palettes
94 lines
1.7 KiB
CSS
94 lines
1.7 KiB
CSS
.container {
|
|
position: fixed;
|
|
bottom: var(--space-6);
|
|
right: var(--space-6);
|
|
z-index: var(--z-toast);
|
|
display: flex;
|
|
flex-direction: column-reverse;
|
|
gap: var(--space-2);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.toast {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
padding: var(--space-3) var(--space-4);
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--shadow-lg);
|
|
font-size: var(--font-size-sm);
|
|
font-weight: var(--font-weight-medium);
|
|
line-height: var(--line-height-normal);
|
|
min-width: 240px;
|
|
max-width: 400px;
|
|
pointer-events: auto;
|
|
animation: toastIn var(--transition-base) ease forwards;
|
|
}
|
|
|
|
.toast.exiting {
|
|
animation: toastOut var(--transition-base) ease forwards;
|
|
}
|
|
|
|
.success {
|
|
background-color: var(--color-success-50);
|
|
border: 1px solid var(--color-success-500);
|
|
color: var(--color-success-700);
|
|
}
|
|
|
|
.error {
|
|
background-color: var(--color-danger-50);
|
|
border: 1px solid var(--color-danger-500);
|
|
color: var(--color-danger-700);
|
|
}
|
|
|
|
.info {
|
|
background-color: var(--color-accent-50);
|
|
border: 1px solid var(--color-accent-400);
|
|
color: var(--color-accent-800);
|
|
}
|
|
|
|
.message {
|
|
flex: 1;
|
|
}
|
|
|
|
.dismiss {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 24px;
|
|
height: 24px;
|
|
border: none;
|
|
border-radius: var(--radius-sm);
|
|
background: transparent;
|
|
color: inherit;
|
|
opacity: 0.6;
|
|
cursor: pointer;
|
|
transition: opacity var(--transition-fast);
|
|
}
|
|
|
|
.dismiss:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
@keyframes toastIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(16px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
|
|
@keyframes toastOut {
|
|
from {
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
transform: translateX(16px);
|
|
}
|
|
}
|