Files
openidea/src/features/github/diff/ReviewDiff.module.css
T
Mr0Bread 9a518e734b refactor(styles): put gap on the spacing scale (#3562)
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 <55754540+Mr0Bread@users.noreply.github.com>
2026-11-15 23:59:47 +08:00

35 lines
828 B
CSS

/* The editor inlay panel (`CodeReviewCommentUIUtil.createEditorInlayPanel`): 10px arc, the
tear line colour as border, the editor background; content at most 42em wide, and never
wider than the pane (the scroller is its size container; 96px: gutters and margins). */
.inlay {
box-sizing: border-box;
max-width: min(calc(42em + 60px), calc(100cqw - 96px));
margin: 4px 12px 4px 4px;
padding: 6px 0;
border: 1px solid var(--border);
border-radius: 10px;
background: var(--bg-editor);
font-family: var(--font-ui);
font-size: var(--fs-ui);
white-space: normal;
cursor: auto;
}
.newComment {
padding: 4px 10px;
}
.sep {
width: 1px;
height: 14px;
margin: 0 4px;
background: var(--border-strong);
}
.page {
display: flex;
flex-direction: column;
gap: var(--space-2);
padding: 4px 0;
}