дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-23 01:50:45 +02:00
The Commit panel wraps change actions into groups when the pane is narrow, so Expand All and Collapse All stay visible, and Commit and Push… wraps its label instead of cutting it. The commit message uses the editor's font family, size, weight and line height.
384 рядки
7.4 KiB
CSS
384 рядки
7.4 KiB
CSS
.root {
|
||
flex: 1;
|
||
min-height: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
.count {
|
||
color: var(--fg-subtle);
|
||
font-size: var(--fs-tiny);
|
||
}
|
||
.split {
|
||
flex: 1;
|
||
min-height: 0;
|
||
}
|
||
.changes {
|
||
height: 100%;
|
||
display: flex;
|
||
flex-direction: column;
|
||
min-height: 0;
|
||
}
|
||
.toolbar {
|
||
flex: none;
|
||
height: 32px;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: var(--space-0-5);
|
||
padding: 0 6px;
|
||
}
|
||
.changesToolbar {
|
||
height: auto;
|
||
min-height: 32px;
|
||
flex-wrap: wrap;
|
||
column-gap: var(--space-2);
|
||
padding-block: var(--space-0-5);
|
||
}
|
||
.changesTools {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
gap: var(--space-0-5);
|
||
max-width: 100%;
|
||
}
|
||
.sep {
|
||
width: 1px;
|
||
height: 16px;
|
||
margin: 0 4px;
|
||
background: var(--border);
|
||
}
|
||
.treeWrap {
|
||
flex: 1;
|
||
min-height: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
.empty {
|
||
color: var(--fg-subtle);
|
||
}
|
||
.check {
|
||
flex: none;
|
||
width: 14px;
|
||
height: 14px;
|
||
margin-right: 2px;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border-radius: 3px;
|
||
background: var(--bg-checkbox, var(--bg-input));
|
||
box-shadow: inset 0 0 0 1px var(--control-off);
|
||
color: var(--fg-on-accent);
|
||
--icon-color: currentColor;
|
||
}
|
||
.checkOn {
|
||
background: var(--accent);
|
||
box-shadow: none;
|
||
}
|
||
.icon {
|
||
flex: none;
|
||
}
|
||
/* The name takes the whole row; when it doesn't fit, the grey detail after it gives way first. */
|
||
.label {
|
||
flex: 0 1 auto;
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
.groupLabel {
|
||
color: var(--fg-strong);
|
||
}
|
||
.detail {
|
||
flex: 0 10000 auto;
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
color: var(--fg-subtle);
|
||
}
|
||
.detailIcon {
|
||
flex: none;
|
||
--icon-color: var(--fg-subtle);
|
||
}
|
||
.partial {
|
||
flex: none;
|
||
padding: 0 4px;
|
||
border-radius: var(--radius-small);
|
||
background: color-mix(in srgb, var(--vcs-modified) 16%, transparent);
|
||
color: var(--vcs-modified);
|
||
font-size: var(--fs-tiny);
|
||
line-height: 14px;
|
||
}
|
||
.commit {
|
||
height: 100%;
|
||
display: flex;
|
||
flex-direction: column;
|
||
min-height: 0;
|
||
border-top: 1px solid var(--border);
|
||
}
|
||
.tabs {
|
||
min-width: 0;
|
||
border: 0;
|
||
background: none;
|
||
}
|
||
.commitBar {
|
||
flex: none;
|
||
min-height: 32px;
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
gap: var(--space-0-5) var(--space-1);
|
||
padding: var(--space-0-5) 6px var(--space-0-5) 12px;
|
||
}
|
||
.grow {
|
||
flex: 1;
|
||
}
|
||
.lineLen {
|
||
color: var(--fg-faint);
|
||
font-family: var(--font-mono);
|
||
font-size: var(--fs-tiny);
|
||
white-space: nowrap;
|
||
}
|
||
.lineLenWarn {
|
||
color: var(--warning);
|
||
}
|
||
.message {
|
||
--pad: 10px;
|
||
flex: 1;
|
||
min-height: 40px;
|
||
margin: 0;
|
||
padding: 6px var(--pad);
|
||
resize: none;
|
||
border: 0;
|
||
border-top: 1px solid var(--border);
|
||
outline: none;
|
||
color: var(--fg-strong);
|
||
line-height: var(--lh-code);
|
||
-webkit-user-select: text;
|
||
user-select: text;
|
||
/* Right margin guide at the subject length limit. */
|
||
background:
|
||
linear-gradient(
|
||
to right,
|
||
transparent calc(var(--pad) + var(--guide)),
|
||
var(--border) calc(var(--pad) + var(--guide)),
|
||
var(--border) calc(var(--pad) + var(--guide) + 1px),
|
||
transparent calc(var(--pad) + var(--guide) + 1px)
|
||
)
|
||
no-repeat,
|
||
var(--bg-island, var(--bg-app));
|
||
}
|
||
.message::placeholder {
|
||
color: var(--fg-subtle);
|
||
font-family: var(--font-ui);
|
||
font-size: var(--fs-ui);
|
||
}
|
||
/* IDEA: Commit and Commit and Push… on one row under the message, the gear at its end. */
|
||
.commitActions {
|
||
flex: none;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: var(--space-2);
|
||
flex-wrap: wrap;
|
||
padding: 8px 6px 10px 10px;
|
||
white-space: nowrap;
|
||
}
|
||
.commitActions > button {
|
||
flex: none;
|
||
}
|
||
.commitActions > .pushButton {
|
||
flex: 0 1 auto;
|
||
min-width: 0;
|
||
min-height: var(--h-button, 28px);
|
||
height: auto;
|
||
padding: var(--space-1) var(--space-3);
|
||
line-height: 1.3;
|
||
}
|
||
.pushButton > span {
|
||
white-space: normal;
|
||
overflow-wrap: anywhere;
|
||
}
|
||
.stashList {
|
||
flex: 1;
|
||
container: stash-list / inline-size;
|
||
}
|
||
.stashRow {
|
||
flex: 1;
|
||
min-width: 0;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: var(--space-2);
|
||
}
|
||
/* The message identifies a stash: the branch gives way first, the time stays whole. */
|
||
.stashRow > .detail {
|
||
white-space: nowrap;
|
||
}
|
||
.stashRow > .stashTime {
|
||
flex: none;
|
||
}
|
||
.stashMessage {
|
||
flex: 1 1 auto;
|
||
min-width: 4em;
|
||
overflow: hidden;
|
||
white-space: nowrap;
|
||
text-overflow: ellipsis;
|
||
}
|
||
@container stash-list (max-width: 320px) {
|
||
.stashBranch {
|
||
display: none;
|
||
}
|
||
}
|
||
/* Settings › Commit › Show right margin off. */
|
||
.noMargin {
|
||
background: var(--bg-island, var(--bg-app));
|
||
}
|
||
.inspections {
|
||
flex: none;
|
||
padding: 2px 10px 0;
|
||
color: var(--warning);
|
||
font-size: var(--fs-small);
|
||
line-height: 1.4;
|
||
}
|
||
/* A change list group or file row (drag source / drop target between lists). */
|
||
.nodeRow {
|
||
flex: 1;
|
||
min-width: 0;
|
||
align-self: stretch;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: var(--space-1);
|
||
border-radius: var(--radius-small);
|
||
}
|
||
/* Test files and the folders under a test root, as IDEA's green "Tests" file colour; hover and selection win. */
|
||
.testFile:not(:hover):not([aria-selected="true"]) {
|
||
background: var(--bg-file-tests);
|
||
}
|
||
.dropTarget {
|
||
box-shadow: inset 0 0 0 1px var(--accent);
|
||
background: color-mix(in srgb, var(--accent) 12%, transparent);
|
||
}
|
||
/* Only the active change list is bold, as in IDEA. */
|
||
.inactiveList {
|
||
font-weight: 400;
|
||
}
|
||
.messageError {
|
||
box-shadow: inset 0 0 0 1px var(--danger);
|
||
}
|
||
.inspectionError {
|
||
color: var(--danger);
|
||
}
|
||
/* Commit Options popup (gear next to Commit). */
|
||
.options {
|
||
width: 340px;
|
||
max-height: min(560px, 80vh);
|
||
overflow: auto;
|
||
padding: 4px 16px 12px;
|
||
}
|
||
.optFocus {
|
||
outline: none;
|
||
}
|
||
.optSection + .optSection {
|
||
margin-top: 6px;
|
||
}
|
||
.optTitle {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: var(--space-2);
|
||
margin: 10px 0 6px;
|
||
color: var(--fg-strong);
|
||
font-size: var(--fs-ui);
|
||
font-weight: 400;
|
||
}
|
||
.optTitle::after {
|
||
content: "";
|
||
flex: 1;
|
||
height: 1px;
|
||
background: var(--border);
|
||
}
|
||
.optBody {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: var(--space-1-5);
|
||
padding-left: 16px;
|
||
}
|
||
.optRow {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
}
|
||
.optField {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: var(--space-2);
|
||
color: var(--fg);
|
||
}
|
||
.optField > :last-child {
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
.optLink {
|
||
padding: 0;
|
||
border: 0;
|
||
background: none;
|
||
color: var(--link);
|
||
font: inherit;
|
||
cursor: pointer;
|
||
}
|
||
.optLink:hover {
|
||
color: var(--link-hover);
|
||
text-decoration: underline;
|
||
}
|
||
/* Failed before-commit checks (IDEA's commit checks failure panel). */
|
||
.checkProblems {
|
||
flex: none;
|
||
display: flex;
|
||
gap: var(--space-1-5);
|
||
max-height: 120px;
|
||
overflow: auto;
|
||
padding: 4px 10px 0;
|
||
color: var(--fg-secondary);
|
||
font-size: var(--fs-small);
|
||
line-height: 1.4;
|
||
}
|
||
.checkProblemsIcon {
|
||
flex: none;
|
||
margin-top: 1px;
|
||
color: var(--warning);
|
||
}
|
||
.checkProblemsList {
|
||
min-width: 0;
|
||
}
|
||
.checkProblemTitle {
|
||
color: var(--fg);
|
||
}
|
||
.checkProblemLink {
|
||
padding: 0;
|
||
border: 0;
|
||
background: none;
|
||
color: var(--accent);
|
||
font: inherit;
|
||
cursor: pointer;
|
||
}
|
||
.checkProblemLink:hover {
|
||
text-decoration: underline;
|
||
}
|
||
/* Staging area: Stage / Unstage on the hovered or selected row, as a hover icon at the row's end. */
|
||
.stageButton {
|
||
flex: none;
|
||
margin-left: auto;
|
||
visibility: hidden;
|
||
}
|
||
[role="treeitem"]:hover .stageButton,
|
||
[role="treeitem"][aria-selected="true"] .stageButton {
|
||
visibility: visible;
|
||
}
|
||
.inspectionFix {
|
||
margin-left: var(--space-2);
|
||
padding: 0;
|
||
border: none;
|
||
background: none;
|
||
color: var(--link);
|
||
font: inherit;
|
||
cursor: pointer;
|
||
}
|
||
.inspectionFix:hover {
|
||
text-decoration: underline;
|
||
}
|