feat(sim-builder): улучшение P4 — UI билдера: color-пикеры, контролы стиля, редактор кривых, z-order/дубль/видимость
This commit is contained in:
@@ -82,10 +82,42 @@
|
||||
|
||||
/* ── объект ── */
|
||||
.sbu-obj.sel { border-color: var(--violet); box-shadow: 0 0 0 2px rgba(155,93,229,0.16); }
|
||||
.sbu-obj-hdr { display: flex; align-items: center; gap: 6px; }
|
||||
.sbu-obj.is-hidden, .sbu-plot.is-hidden { opacity: .62; }
|
||||
.sbu-obj.is-hidden .sbu-obj-fields, .sbu-obj.is-hidden .sbu-obj-style { opacity: .7; }
|
||||
.sbu-obj-hdr { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
|
||||
.sbu-obj-type { font-size: .72rem; font-weight: 800; color: var(--violet); flex-shrink: 0; }
|
||||
.sbu-in-id { flex: 1; max-width: 120px; }
|
||||
.sbu-in-id { flex: 1; min-width: 64px; max-width: 110px; }
|
||||
.sbu-obj-hdr .sbu-icon-btn { width: 26px; height: 26px; }
|
||||
.sbu-icon-btn:disabled { opacity: .32; cursor: default; pointer-events: none; }
|
||||
.sbu-icon-btn.active { border-color: var(--violet); color: var(--violet); background: rgba(155,93,229,0.1); }
|
||||
.sbu-zord { color: var(--text-3); }
|
||||
.sbu-obj-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
|
||||
/* ── блок «Стиль» объекта (P4) ── */
|
||||
.sbu-obj-style { border-top: 1px dashed var(--border); padding-top: 7px; margin-top: 1px; display: flex; flex-direction: column; gap: 7px; }
|
||||
.sbu-obj-style .sbu-sub { margin-top: 0; }
|
||||
.sbu-style-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; align-items: end; }
|
||||
.sbu-style-row > * { min-width: 0; }
|
||||
.sbu-grad-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
|
||||
|
||||
/* ── color-picker контрол (нативный пикер + текст + очистка) ── */
|
||||
.sbu-color-mini { min-width: 0; }
|
||||
.sbu-color-wrap { display: flex; align-items: center; gap: 5px; }
|
||||
.sbu-color-pick { width: 30px; height: 30px; flex-shrink: 0; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; }
|
||||
.sbu-color-pick::-webkit-color-swatch-wrapper { padding: 3px; }
|
||||
.sbu-color-pick::-webkit-color-swatch { border: none; border-radius: 5px; }
|
||||
.sbu-color-wrap .sbu-in-color { flex: 1; min-width: 0; }
|
||||
.sbu-color-clr { width: 26px; height: 26px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: var(--text-3); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
|
||||
.sbu-color-clr:hover { border-color: #ef4444; color: #ef4444; }
|
||||
|
||||
/* ── range (opacity) ── */
|
||||
.sbu-range-mini { min-width: 0; }
|
||||
.sbu-range-val { color: var(--violet); font-variant-numeric: tabular-nums; }
|
||||
.sbu-range { width: 100%; accent-color: var(--violet); height: 30px; box-sizing: border-box; }
|
||||
|
||||
/* ── кривые графика ── */
|
||||
.sbu-curves { display: flex; flex-direction: column; gap: 8px; }
|
||||
.sbu-curve { border: 1px solid var(--border); border-radius: 9px; padding: 8px; background: #fafbfd; display: flex; flex-direction: column; gap: 7px; }
|
||||
.sbu-curve-del { width: 24px; height: 24px; }
|
||||
.sbu-of { display: flex; flex-direction: column; gap: 2px; }
|
||||
.sbu-of-lbl { font-size: .66rem; color: var(--text-3); display: flex; align-items: center; justify-content: space-between; gap: 4px; }
|
||||
.sbu-fx { font-size: .62rem; font-weight: 800; font-style: italic; color: var(--violet); background: rgba(155,93,229,0.1); border: none; border-radius: 5px; padding: 1px 6px; cursor: pointer; }
|
||||
@@ -113,6 +145,11 @@
|
||||
.sbu-panels { width: auto; max-height: 50vh; border-right: none; border-bottom: 1px solid var(--border); }
|
||||
.sbu-preview { min-height: 320px; }
|
||||
}
|
||||
@media (max-width: 560px) {
|
||||
.sbu-obj-fields { grid-template-columns: 1fr; }
|
||||
.sbu-style-row, .sbu-grad-row { grid-template-columns: 1fr; }
|
||||
.sbu-row4 { grid-template-columns: 1fr 1fr; }
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user