дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-28 21:42:27 +02:00
Extends the 4px-grid spacing scale with --space-0-5 (2px), --space-1 (4px) and --space-1-5 (6px) and replaces the literal 2/4/6/8/12/16px gap, row-gap and column-gap values with the tokens; computed values are unchanged. src/styles/spacingScale.test.ts flags an on-scale literal gap. Co-authored-by: Mr0Bread <[email protected]>
341 рядки
6.2 KiB
CSS
341 рядки
6.2 KiB
CSS
.root {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
height: 100%;
|
|
background: var(--bg-editor);
|
|
color: var(--fg);
|
|
font-size: var(--fs-ui);
|
|
}
|
|
|
|
/* Header: what the snapshot is, then its tools. */
|
|
.header {
|
|
flex: none;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: var(--space-2) var(--space-4);
|
|
padding: 8px 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.headerText {
|
|
flex: 1 1 320px;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-0-5);
|
|
}
|
|
.title,
|
|
.totals {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: baseline;
|
|
column-gap: var(--space-3);
|
|
min-width: 0;
|
|
}
|
|
.label {
|
|
color: var(--fg-strong);
|
|
font-weight: 600;
|
|
}
|
|
.source {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
color: var(--fg-muted);
|
|
-webkit-user-select: text;
|
|
user-select: text;
|
|
}
|
|
.totals {
|
|
color: var(--fg-muted);
|
|
font-size: var(--fs-small);
|
|
}
|
|
.headerTools {
|
|
flex: none;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
}
|
|
.compare {
|
|
width: 200px;
|
|
}
|
|
|
|
.views {
|
|
flex: none;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.body {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
/* Shorter than the view and the strip at their smallest: scroll rather than overlap. */
|
|
overflow-y: auto;
|
|
}
|
|
.main {
|
|
flex: 1;
|
|
/* The toolbar, the column header and three rows; the strip below gives way first. */
|
|
min-height: calc(3 * var(--h-row) + 3 * 22px);
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.main[hidden] {
|
|
display: none;
|
|
}
|
|
/* Biggest objects and the path share a strip under the view; the view keeps the rest. */
|
|
.details {
|
|
flex: 0 1 auto;
|
|
display: flex;
|
|
height: min(calc(var(--h-row) + 10 * var(--h-list-row)), 45%);
|
|
min-height: calc(2 * var(--h-row) + var(--h-list-row));
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
.pane {
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.pane + .pane {
|
|
border-left: 1px solid var(--border);
|
|
}
|
|
.paneTitle {
|
|
flex: none;
|
|
display: flex;
|
|
align-items: center;
|
|
height: var(--h-row);
|
|
padding: 0 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
color: var(--fg-strong);
|
|
}
|
|
|
|
.view {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.toolbar {
|
|
flex: none;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
padding: 4px 8px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.filter {
|
|
flex: 0 1 240px;
|
|
min-width: 80px;
|
|
}
|
|
|
|
.note {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-1-5);
|
|
padding: 8px 12px;
|
|
color: var(--fg-subtle);
|
|
}
|
|
.error {
|
|
flex: none;
|
|
padding: 4px 12px;
|
|
color: var(--fg);
|
|
background: var(--bg-feedback-error);
|
|
border-bottom: 1px solid var(--border-feedback-error);
|
|
-webkit-user-select: text;
|
|
user-select: text;
|
|
}
|
|
.errorText {
|
|
color: var(--danger);
|
|
}
|
|
|
|
/* Tables: a header row above a virtualised list of rows sharing its column template. */
|
|
.table {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
.classColumns {
|
|
--heap-columns: minmax(0, 1fr) 88px 104px 104px;
|
|
}
|
|
.classColumns.withDiff {
|
|
--heap-columns: minmax(0, 1fr) 88px 104px 104px 88px 104px;
|
|
}
|
|
.objectColumns {
|
|
--heap-columns: minmax(0, 1fr) 88px 104px;
|
|
}
|
|
.head,
|
|
.row {
|
|
display: grid;
|
|
grid-template-columns: var(--heap-columns);
|
|
align-items: center;
|
|
column-gap: var(--space-3);
|
|
width: 100%;
|
|
}
|
|
.head {
|
|
flex: none;
|
|
height: var(--h-row);
|
|
padding: 0 16px 0 14px;
|
|
border-bottom: 1px solid var(--border);
|
|
color: var(--fg-muted);
|
|
font-size: var(--fs-small);
|
|
}
|
|
.headCell {
|
|
display: flex;
|
|
min-width: 0;
|
|
white-space: nowrap;
|
|
}
|
|
.headCell button {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
min-width: 0;
|
|
height: 100%;
|
|
padding: 0;
|
|
color: inherit;
|
|
font: inherit;
|
|
white-space: nowrap;
|
|
text-align: left;
|
|
}
|
|
.headCell button:hover,
|
|
.sorted button {
|
|
color: var(--fg-strong);
|
|
}
|
|
.headCell button:focus-visible {
|
|
outline: 2px solid var(--focus-ring);
|
|
outline-offset: -2px;
|
|
}
|
|
.numeric,
|
|
.numeric button {
|
|
justify-content: flex-end;
|
|
text-align: right;
|
|
}
|
|
.list {
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
.cell {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.className {
|
|
color: var(--fg-strong);
|
|
font-family: var(--font-mono);
|
|
}
|
|
.num {
|
|
text-align: right;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.muted {
|
|
color: var(--fg-subtle);
|
|
}
|
|
|
|
/* The dominator tree: its rows lay the same columns out after the tree's indent and chevron. */
|
|
.dominatorColumns {
|
|
--heap-columns: minmax(0, 1fr) 88px 104px 56px;
|
|
}
|
|
.treeHead {
|
|
padding: 0 20px 0 24px;
|
|
}
|
|
.treeRow {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
}
|
|
.treeRow > :first-child {
|
|
flex: 1;
|
|
}
|
|
.treeRow > :nth-child(2) {
|
|
flex: none;
|
|
width: 88px;
|
|
}
|
|
.treeRow > :nth-child(3) {
|
|
flex: none;
|
|
width: 104px;
|
|
}
|
|
.treeRow > :nth-child(4) {
|
|
flex: none;
|
|
width: 56px;
|
|
}
|
|
|
|
/* An object: `className@address`, then a string's text or the class a class object stands for. */
|
|
.object {
|
|
display: inline-flex;
|
|
align-items: baseline;
|
|
gap: var(--space-2);
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
font-family: var(--font-mono);
|
|
}
|
|
.objectName,
|
|
.preview,
|
|
.stringPreview {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.objectName {
|
|
flex: 0 1 auto;
|
|
color: var(--fg-strong);
|
|
}
|
|
/* The preview gives way before the name. */
|
|
.preview,
|
|
.stringPreview {
|
|
flex: 0 3 auto;
|
|
}
|
|
.preview {
|
|
color: var(--fg-muted);
|
|
}
|
|
.stringPreview {
|
|
color: var(--syn-string);
|
|
}
|
|
|
|
/* Two lines per step, so a long name and its reference never share one: the object, then what holds it. */
|
|
.step {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
min-width: 0;
|
|
height: 100%;
|
|
padding: 0 12px;
|
|
white-space: nowrap;
|
|
}
|
|
.edge {
|
|
min-width: 0;
|
|
padding-left: 16px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
color: var(--fg-muted);
|
|
font-family: var(--font-mono);
|
|
font-size: var(--fs-small);
|
|
}
|
|
.omitted {
|
|
display: flex;
|
|
align-items: center;
|
|
height: 100%;
|
|
padding: 0 12px;
|
|
color: var(--fg-subtle);
|
|
font-style: italic;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.openProgress {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-1-5);
|
|
}
|