Add badge price tag controls: position, size, ribbon & digit colors

Adds four new controls to the digital-badge price tag so users can fine
-tune the look: a vertical position slider (raises/lowers the band
within the circle), a size slider (60-160% of the default band scale),
and two color rows for the ribbon and the digits — each with six
preset swatches plus a native color picker for custom colors.
Per-item state (priceY, priceSize, priceBg, priceFg) is preserved
across selections and renders consistently in the 240x240 export.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
zuevav
2026-05-14 21:51:32 +03:00
parent 68f4560bd5
commit 45a20d1edb
3 changed files with 186 additions and 17 deletions
+38
View File
@@ -4214,6 +4214,44 @@ select {
margin-top: 6px;
}
.badge-color-row {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
margin-top: 4px;
}
.badge-color-swatch {
width: 28px;
height: 28px;
border-radius: 50%;
border: 2px solid transparent;
padding: 0;
cursor: pointer;
box-shadow: 0 0 0 1px rgba(0,0,0,0.1) inset;
transition: transform 0.12s ease, border-color 0.12s ease;
}
.badge-color-swatch:hover {
transform: scale(1.08);
}
.badge-color-swatch.active {
border-color: #007AFF;
box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.25);
}
.badge-color-row input[type="color"] {
width: 36px;
height: 30px;
border: 1px solid var(--border-color);
border-radius: 8px;
background: transparent;
cursor: pointer;
padding: 2px;
}
.badge-actions {
display: flex;
flex-wrap: wrap;