File size: 2,951 Bytes
0d811c3 | 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 | /* The scenario library (LibraryPages.tsx), after Testomat.io's tests page: a tree of business areas and process steps
on the left, the dense list in the middle, the chosen scenario's steps on the right. Tokens only. */
.lib { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); align-items: start; }
.lib[data-wide] { grid-template-columns: 250px minmax(0, 1fr); }
.lib[data-wide][data-open] { grid-template-columns: 250px minmax(0, 1fr) 400px; }
.lib-tree { position: sticky; top: var(--sp-4); display: flex; flex-direction: column; gap: 1px; padding: var(--sp-2); background: var(--bg-elev);
border-radius: var(--r-lg); box-shadow: var(--sh-card); max-height: calc(100vh - 140px); overflow-y: auto; }
.lib-node { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 32px; padding: 0 var(--sp-2); border: 0; border-radius: var(--r-md);
background: transparent; color: var(--label); font: 500 var(--fs-sm) var(--font); text-align: left; cursor: pointer; }
.lib-node:hover { background: var(--fill); }
.lib-node[data-on] { background: var(--accent-soft); color: var(--accent-text); font-weight: 700; }
.lib-node:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.lib-node svg { color: var(--label-3); flex: none; }
.lib-node-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-leaf { padding-left: 28px; font-weight: 500; }
.lib-code { font-family: var(--mono); font-size: 11px; color: var(--label-3); }
.lib-n { margin-left: auto; font-size: var(--fs-xs); color: var(--label-3); font-weight: 600; }
.lib-list { min-width: 0; background: var(--bg-elev); border-radius: var(--r-lg); box-shadow: var(--sh-card); overflow: hidden; }
.lib-bar { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--sep); }
.lib-h { font-size: var(--fs-base); font-weight: 700; margin-right: var(--sp-2); }
.lib-bar-r { margin-left: auto; display: flex; gap: var(--sp-2); flex-wrap: wrap; }
html body .lib-table .mantine-Table-th { background: var(--bg-elev-2); height: 34px; }
.lib-row:hover > td { background: var(--accent-soft); }
.lib-row[data-selected] > td { background: var(--accent-soft); }
.lib-row[data-selected] > td:first-child { box-shadow: inset 2px 0 0 var(--violet-strong); }
.lib-title { font-weight: 700; color: var(--label); text-align: left; }
.lib-title:hover { text-decoration: underline; text-underline-offset: 2px; }
.lib-sub { display: flex; gap: 10px; margin-top: 2px; font-size: var(--fs-xs); color: var(--label-3); }
.lib-foot { padding: var(--sp-2) var(--sp-4); border-top: 1px solid var(--sep); }
.lib-panel { position: sticky; top: var(--sp-4); padding: var(--sp-4); background: var(--bg-elev); border-radius: var(--r-lg); box-shadow: var(--sh-card);
max-height: calc(100vh - 140px); overflow-y: auto; }
|