import ui
This commit is contained in:
@@ -357,27 +357,52 @@
|
||||
dragging a source chip onto it. */
|
||||
.mapping-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 14px 0; padding: 10px 12px; border-radius: 8px; background: #f5f7fa; }
|
||||
.mapping-summary strong { color: #24324a; font-variant-numeric: tabular-nums; }
|
||||
.mapping-workbench { display: grid; grid-template-columns: minmax(230px, .75fr) minmax(480px, 1.6fr); align-items: start; gap: 14px; }
|
||||
.mapping-workbench h3 { margin: 0; color: #24324a; font-size: 14px; }
|
||||
.mapping-workbench h3 + .hint { margin: 4px 0 12px; font-size: 12px; }
|
||||
|
||||
/* The batch actions stay reachable while a long destination list scrolls. */
|
||||
.mapping-toolbar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 12px; padding: 8px; border: 1px solid #d8e1ec; border-radius: 8px; background: rgb(255 255 255 / 96%); box-shadow: 0 3px 12px rgb(31 43 58 / 7%); }
|
||||
.mapping-toolbar button.secondary { margin: 0; padding: 6px 10px; border: 1px solid #c9d2de; border-radius: 6px; color: #24324a; background: #f4f6fa; font-size: 12px; cursor: pointer; }
|
||||
.mapping-toolbar button.secondary:hover { background: #e9edf4; }
|
||||
|
||||
.mapping-panels { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(460px, 1.5fr); align-items: start; gap: 14px; }
|
||||
.source-palette, .destination-map { padding: 14px; border: 1px solid #dfe5ed; border-radius: 9px; background: #fafbfc; }
|
||||
/* The palette follows the destination list down, so a column near the bottom
|
||||
of a wide table still has something to be dropped from. */
|
||||
.source-palette { position: sticky; top: 56px; max-height: calc(100vh - 76px); overflow: auto; }
|
||||
.palette-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; }
|
||||
.palette-actions { display: flex; align-items: center; gap: 6px; }
|
||||
.palette-actions button.secondary { margin: 0; padding: 4px 8px; border: 1px solid #cfd8e5; border-radius: 6px; color: #46566d; background: white; font-size: 11px; cursor: pointer; }
|
||||
.selection-count { color: #6d798a; font-size: 11px; font-variant-numeric: tabular-nums; }
|
||||
.selection-hint { margin: 0 0 10px; padding: 7px 9px; border-radius: 6px; color: #1d4ed8; background: #eef4ff; font-size: 12px; }
|
||||
|
||||
.source-chips { display: grid; gap: 7px; }
|
||||
.source-chip { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border: 1px solid #cfd9e6; border-radius: 7px; color: #33415c; background: white; text-align: left; cursor: grab; transition: border-color 120ms ease, box-shadow 120ms ease, opacity 120ms ease; }
|
||||
.source-chip:hover, .source-chip.is-selected { border-color: #78a1df; box-shadow: 0 3px 10px rgb(31 43 58 / 9%); }
|
||||
.source-chip.is-selected { outline: 3px solid rgb(37 99 235 / 12%); }
|
||||
.source-chip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 2px 8px; width: 100%; padding: 9px 10px; border: 1px solid #cfd9e6; border-radius: 7px; color: #33415c; background: white; text-align: left; cursor: grab; transition: border-color 120ms ease, box-shadow 120ms ease, opacity 120ms ease; }
|
||||
.source-chip:hover { border-color: #78a1df; box-shadow: 0 3px 10px rgb(31 43 58 / 9%); }
|
||||
.source-chip.is-mapped { border-color: #a8cfb3; background: #f4fbf6; }
|
||||
.source-chip.is-selected { border-color: #78a1df; background: #f3f7ff; outline: 3px solid rgb(37 99 235 / 12%); }
|
||||
.source-chip.is-dragging { opacity: .55; cursor: grabbing; }
|
||||
.source-chip code { overflow: hidden; text-overflow: ellipsis; }
|
||||
.source-chip small { max-width: 100px; overflow: hidden; color: #778396; text-overflow: ellipsis; white-space: nowrap; }
|
||||
/* The rank a selected column will take when the batch is placed. Hidden
|
||||
entirely while nothing is selected, so every chip shifts together. */
|
||||
.chip-order { grid-row: 1 / span 2; display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; color: white; background: #2563eb; font-size: 11px; font-variant-numeric: tabular-nums; }
|
||||
.mapping-workbench:not(.has-selection) .chip-order, .chip-order:empty { display: none; }
|
||||
/* Where this column ended up, read off the destination it was given. */
|
||||
.chip-target { grid-column: 2 / -1; overflow: hidden; color: #287443; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.chip-target:empty { display: none; }
|
||||
|
||||
.destination-rows { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
|
||||
.destination-rows li { display: grid; grid-template-columns: minmax(100px, .7fr) 22px minmax(210px, 1.3fr) minmax(70px, .65fr) auto; align-items: center; gap: 8px; min-height: 62px; padding: 8px 9px; border: 1px dashed #cdd6e2; border-radius: 7px; background: white; transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease; }
|
||||
.destination-rows li.is-mapped { border-style: solid; border-color: #b9cce8; }
|
||||
/* With a selection live, every row is somewhere the batch can be dropped. */
|
||||
.mapping-workbench.has-selection .destination-rows li { border-color: #9bbcf0; cursor: copy; }
|
||||
.destination-rows li.drop-ready { border-style: solid; border-color: #2563eb; background: #edf4ff; box-shadow: 0 0 0 3px rgb(37 99 235 / 12%); }
|
||||
.destination-rows li.just-mapped { background: #eef8f1; }
|
||||
.destination-name { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; }
|
||||
.destination-name code { overflow: hidden; color: #24324a; text-overflow: ellipsis; }
|
||||
.mapping-arrow { color: #9aa5b4; text-align: center; }
|
||||
.destination-rows label { display: grid; gap: 3px; color: #778396; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
|
||||
.destination-rows label { display: grid; gap: 3px; color: #778396; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; cursor: auto; }
|
||||
.destination-rows select { min-width: 0; color: #24324a; font-size: 13px; letter-spacing: normal; text-transform: none; }
|
||||
.mapped-example { min-width: 0; overflow: hidden; color: #667385; font: 11px/1.4 ui-monospace, monospace; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.clear-mapping { padding: 6px 8px; border: 1px solid #d6dde7; border-radius: 6px; color: #59677a; background: white; font-size: 11px; cursor: pointer; }
|
||||
@@ -385,7 +410,8 @@
|
||||
.clear-mapping:disabled { color: #bdc4ce; background: #f7f8fa; cursor: default; }
|
||||
|
||||
@media (max-width: 850px) {
|
||||
.mapping-workbench { grid-template-columns: 1fr; }
|
||||
.mapping-panels { grid-template-columns: 1fr; }
|
||||
.source-palette { position: static; max-height: none; }
|
||||
.source-chips { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
|
||||
.destination-rows li { grid-template-columns: minmax(90px, .7fr) 18px minmax(180px, 1.3fr) auto; }
|
||||
.mapped-example { display: none; }
|
||||
|
||||
Reference in New Issue
Block a user