This commit is contained in:
Martino Ferrari
2026-04-25 23:10:51 +02:00
parent 986f6cd6d8
commit 91b42027c9
6 changed files with 525 additions and 136 deletions
+81 -3
View File
@@ -1026,8 +1026,8 @@ body {
.overlay-delete {
position: absolute;
top: -10px;
right: -10px;
top: -14px;
right: -14px;
width: 18px;
height: 18px;
border-radius: 50%;
@@ -1040,7 +1040,7 @@ body {
align-items: center;
justify-content: center;
line-height: 1;
z-index: 20;
z-index: 30;
padding: 0;
}
@@ -1310,3 +1310,81 @@ body {
.iface-delete { color: #ef4444 !important; }
.iface-delete:hover { background: rgba(239, 68, 68, 0.15) !important; }
/* ── Phase 7 additions ───────────────────────────────────────────────────── */
/* Rubber-band selection rectangle */
.rubber-band {
position: absolute;
pointer-events: none;
border: 1px solid #60a5fa;
background: rgba(96, 165, 250, 0.08);
z-index: 50;
box-sizing: border-box;
}
/* Edit toolbar tools (center section) */
.edit-toolbar-tools {
display: flex;
align-items: center;
gap: 0.3rem;
flex-wrap: wrap;
justify-content: center;
}
.toolbar-sep {
width: 1px;
height: 18px;
background: #2d3748;
margin: 0 0.1rem;
flex-shrink: 0;
}
.toolbar-btn.icon-only {
padding: 0.25rem 0.45rem;
font-size: 0.75rem;
}
.toolbar-btn:disabled {
opacity: 0.35;
cursor: not-allowed;
}
/* Snap-to-grid toggle */
.snap-toggle {
display: flex;
align-items: center;
gap: 0.3rem;
font-size: 0.78rem;
color: #94a3b8;
cursor: pointer;
user-select: none;
white-space: nowrap;
}
.snap-toggle input { cursor: pointer; accent-color: #4a9eff; }
/* Insert dropdown */
.toolbar-dropdown {
position: relative;
}
.toolbar-dropdown-menu {
position: absolute;
top: calc(100% + 4px);
left: 0;
z-index: 9000;
background: #1a1f2e;
border: 1px solid #2d3748;
border-radius: 6px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
min-width: 140px;
padding: 4px 0;
}
/* Align toolbar */
.align-toolbar {
display: flex;
align-items: center;
gap: 0.2rem;
}