feat(site-builder): drag padding handles on the canvas
Edge handles on a selected Section/Container/Columns write padding via the per-device setter as one undo burst; Alt = opposite side, Shift = all four, Ctrl/Cmd snaps to 8px, Escape cancels. Refs #56
This commit is contained in:
1 parent
5430f13877
commit
092c8f6747
6 files changed
+529
No files matched your search
@@ -2731,3 +2731,44 @@ body {
|
||||
color: var(--color-text);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* #56 on-canvas padding handles */
|
||||
.spacing-handles {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
z-index: 40;
|
||||
}
|
||||
.spacing-handle {
|
||||
position: fixed;
|
||||
pointer-events: auto;
|
||||
background: var(--color-accent);
|
||||
opacity: 0.35;
|
||||
border-radius: 3px;
|
||||
transform: translate(-50%, -50%);
|
||||
transition: opacity 0.12s;
|
||||
}
|
||||
.spacing-handle-top,
|
||||
.spacing-handle-bottom { width: 44px; height: 6px; cursor: ns-resize; }
|
||||
.spacing-handle-left,
|
||||
.spacing-handle-right { width: 6px; height: 44px; cursor: ew-resize; }
|
||||
.spacing-handle:hover,
|
||||
.spacing-handle.is-active { opacity: 0.9; }
|
||||
.spacing-band {
|
||||
position: fixed;
|
||||
background: var(--color-accent);
|
||||
opacity: 0.2;
|
||||
pointer-events: none;
|
||||
}
|
||||
.spacing-readout {
|
||||
position: fixed;
|
||||
transform: translate(-50%, -140%);
|
||||
padding: 1px 6px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
color: #fff;
|
||||
background: var(--color-accent);
|
||||
border-radius: 3px;
|
||||
pointer-events: none;
|
||||
white-space: nowrap;
|
||||
}
|
||||
Reference in new issue
Block a user