Files
openidea/src/features/vcs/LocalHistory.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

84 lines
1.4 KiB
CSS

.root {
flex: 1;
height: 100%;
min-height: 0;
display: flex;
background: var(--bg-app);
}
.sidebar {
flex: none;
width: 260px;
display: flex;
flex-direction: column;
border-right: 1px solid var(--border);
}
.header {
flex: none;
height: var(--h-header);
display: flex;
align-items: center;
gap: var(--space-2);
padding: 0 8px 0 12px;
border-bottom: 1px solid var(--border);
}
.title {
flex: 1;
color: var(--fg-emphasis);
font-weight: 500;
}
.list {
flex: 1;
}
.entry {
display: flex;
flex-direction: column;
min-width: 0;
gap: var(--space-0-5);
}
.time {
color: var(--fg-emphasis);
}
.label {
color: var(--fg-subtle);
font-size: var(--fs-small);
overflow: hidden;
text-overflow: ellipsis;
}
.diff {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
}
.message {
padding: 16px;
color: var(--fg-faint);
text-align: center;
}
.path,
.deletedPath {
color: var(--fg);
font-size: var(--fs-small);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.deletedPath {
color: var(--fg-muted);
text-decoration: line-through;
}
.labelRow {
display: flex;
align-items: center;
gap: var(--space-1);
min-width: 0;
color: var(--fg-muted);
}
.labelName {
font-size: var(--fs-small);
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}