Add remap ink, eraser cuts, and improved brush geometry
This commit is contained in:
parent
1f0b4d9918
commit
353cb6e050
19 changed files with 747 additions and 224 deletions
|
|
@ -1414,6 +1414,7 @@ button.share-button:hover, button.share-button.on { filter: brightness(1.1); }
|
|||
rotates with the node and the tag does not. Sizes are in user units because
|
||||
this SVG's viewBox is the stage's 320x200 scaled by `zoom`. */
|
||||
.paint-overlay .creation-target { pointer-events: none; }
|
||||
.paint-overlay .selected-paint-outline { fill: none; stroke: #fbbf24; stroke-width: 0.8; vector-effect: non-scaling-stroke; pointer-events: none; }
|
||||
.paint-overlay .creation-target .creation-target-box { fill: none; stroke: var(--target-stage); stroke-width: 0.7; }
|
||||
.paint-overlay .creation-target .creation-target-tag-bg { fill: var(--target-stage); }
|
||||
.paint-overlay .creation-target .creation-target-tag {
|
||||
|
|
@ -1669,3 +1670,40 @@ button.share-button:hover, button.share-button.on { filter: brightness(1.1); }
|
|||
border-radius: 4px;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
|
||||
}
|
||||
|
||||
/* Remap: the map swatch, and the inspector's grid for a remap shape. A slot is
|
||||
shown as what is under the shape will be drawn in; the original is the chip
|
||||
in its corner. */
|
||||
.palette .cell.map,
|
||||
.palette .chip.map {
|
||||
background: linear-gradient(135deg, #3a3f52 0 50%, #e8d9a8 50% 100%);
|
||||
color: #fff; font-size: 11px; line-height: 1; text-shadow: 0 1px 1px rgba(0, 0, 0, .6);
|
||||
}
|
||||
.palette .cell.map { grid-column: span 2; width: 36px; }
|
||||
.palette .cell { position: relative; }
|
||||
.palette .cell .badge {
|
||||
position: absolute; right: -2px; bottom: -2px;
|
||||
width: 7px; height: 7px;
|
||||
border: 1px solid var(--pane); border-radius: 50%;
|
||||
}
|
||||
|
||||
.remap-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
|
||||
.remap, .remap-pick { display: grid; grid-template-columns: repeat(8, 22px); gap: 3px; }
|
||||
.remap-pick { margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--hair); }
|
||||
.remap-pick > .dim { grid-column: 1 / -1; }
|
||||
.remap .cell, .remap-pick .cell {
|
||||
position: relative;
|
||||
width: 22px; height: 22px;
|
||||
padding: 0;
|
||||
border: 1px solid rgba(0, 0, 0, .35);
|
||||
border-radius: 3px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.remap .cell:hover, .remap-pick .cell:hover { border-color: var(--fg); }
|
||||
.remap .cell.on, .remap-pick .cell.on { box-shadow: 0 0 0 1px var(--pane), 0 0 0 2px var(--sel); }
|
||||
.remap .cell.mapped i {
|
||||
position: absolute; left: 2px; top: 2px;
|
||||
width: 8px; height: 8px;
|
||||
border: 1px solid rgba(255, 255, 255, .8);
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue