fixesc
This commit is contained in:
@@ -373,24 +373,29 @@
|
||||
.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; }
|
||||
.selection-count { min-width: 42px; color: #6d798a; font-size: 11px; font-variant-numeric: tabular-nums; text-align: right; }
|
||||
|
||||
/* Every track is a fixed width and there is only ever one row, so selecting a
|
||||
chip or mapping it changes colour and nothing else — no part of the list
|
||||
moves under the pointer that just clicked it. */
|
||||
.source-chips { display: grid; gap: 7px; }
|
||||
.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 { display: grid; grid-template-columns: 19px minmax(0, 1fr) 108px; 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 { 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; }
|
||||
/* The rank a selected column will take when the batch is placed. Its track is
|
||||
reserved whether or not it is showing. */
|
||||
.chip-order { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; visibility: hidden; color: white; background: #2563eb; font-size: 11px; font-variant-numeric: tabular-nums; }
|
||||
.source-chip.is-selected .chip-order { visibility: visible; }
|
||||
/* One slot, two things to say: the first data value while the column is still
|
||||
free, and where it went once it is mapped — by then the destination row is
|
||||
showing that value anyway. */
|
||||
.source-chip small, .chip-target { grid-column: 3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.source-chip small { color: #778396; }
|
||||
.chip-target { color: #287443; font-size: 11px; }
|
||||
.source-chip.is-mapped small, .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; }
|
||||
@@ -412,7 +417,7 @@
|
||||
@media (max-width: 850px) {
|
||||
.mapping-panels { grid-template-columns: 1fr; }
|
||||
.source-palette { position: static; max-height: none; }
|
||||
.source-chips { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
|
||||
.source-chips { grid-template-columns: repeat(auto-fit, minmax(230px, 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