File size: 3,635 Bytes
e14c2fd 81a8217 e14c2fd 81a8217 e14c2fd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | /* styles/wave46/manage-database.css — WAVE 46 (owner instruction 31, R12, contracts C1 + C6).
⛔ IMPORTED FROM `settings/ManageDatabase.tsx`, NEVER FROM `index.css`. The root sheet
`@import`s the older lane sheets at its top, so anything arriving that way loses every
equal-specificity fight with the rules beneath it; a sheet imported from a component lands
after `index.css` in the bundle and wins. `AssistantPage.tsx` does the same with wave 45's.
Field rows share Settings controls. Data adds a right-side drawer around the same editor.
Tokens only: no literal font-size, no inline hex, hairlines not shadows, the 4/8 spacing grid,
and two radii at most (`--lp-r-sm`, `--lp-r-md`). */
.w46-db-fields {
list-style: none;
margin: 4px 0 0;
padding: 0;
display: grid;
gap: 8px;
}
/* A body portal keeps Data's field drawer outside the rail's clipping container. */
.w46-db-drawer-backdrop {
position: fixed;
inset: 0;
z-index: var(--cg-z-overlay);
background: color-mix(in srgb, var(--lp-ink) 25%, transparent);
display: flex;
justify-content: flex-end;
}
.w46-db-drawer {
width: min(760px, 100%);
height: 100%;
overflow-y: auto;
background: var(--lp-surface);
color: var(--lp-ink);
border-left: 1px solid var(--lp-line);
box-shadow: var(--lp-panel-shadow);
}
.w46-db-drawer > .set-pane {
padding: var(--lp-content-inset);
}
/* ONE CONTAINMENT LAYER. The row is the only bordered box on this page: the pane itself is
unframed, so a row inside a card inside the pane would be the card in card the design
constitution forbids. */
.w46-db-field {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
align-items: end;
gap: 8px;
padding: 8px 12px;
border: 1px solid var(--lp-line);
border-radius: var(--lp-r-md);
background: var(--lp-surface);
}
.w46-db-idline {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
min-width: 0;
}
/* The field's WIRE KEY, which is the thing an admin matches against a report or a formula, so it
is set in the monospace stack rather than in prose type. */
.w46-db-key {
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: var(--lp-fs-2xs);
color: var(--lp-ink);
overflow-wrap: anywhere;
}
/* Type and source, stated together and quietly: they are what the field IS, not what you do to
it, and R12 puts both beyond this version's three verbs. */
.w46-db-meta {
font-size: var(--lp-fs-3xs);
color: var(--lp-muted);
}
.w46-db-relabel {
display: block;
min-width: 0;
}
.w46-db-acts {
display: flex;
align-items: center;
gap: 8px;
}
/* Quiet the way `.shell-newfolder` is quiet: every native button property reset in the base rule,
muted ink, a wash on hover, no border and no shadow. */
.w46-db-move {
border: 0;
background: transparent;
font: inherit;
color: inherit;
font-size: var(--lp-fs-2xs);
color: var(--lp-muted);
padding: 4px 8px;
border-radius: var(--lp-r-sm);
cursor: pointer;
transition: background 120ms ease-out, color 120ms ease-out;
}
.w46-db-move:hover:enabled {
background: var(--lp-wash);
color: var(--lp-ink);
}
.w46-db-move:focus-visible {
outline: 2px solid var(--lp-blue-deep);
outline-offset: 1px;
}
.w46-db-move:disabled {
opacity: 0.45;
cursor: default;
}
/* One column under a narrow modal body: three columns of controls at this width would wrap
mid control, which reads as a broken row rather than as a stacked one. */
@media (max-width: 720px) {
.w46-db-field {
grid-template-columns: minmax(0, 1fr);
align-items: stretch;
}
}
|