Файли
openidea/src/features/vcs/CommitView.module.css
T

524 рядки
10 KiB
CSS
Неформатований Анотація Історія

Цей файл містить неоднозначні символи Юнікоду
Цей файл містить символи Юнікоду, які можна сплутати з іншими символами. Якщо ви вважаєте, що це зроблено навмисно, можете сміливо ігнорувати це попередження. Щоб показати їх, скористайтеся кнопкою Escape.
.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;
}
.committerWarning {
--icon-color: var(--warning);
}
/* 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);
}
.stageGroupLabel {
font-weight: 600;
}
.detail {
flex: 0 10000 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
color: var(--fg-subtle);
}
.nodeCount {
flex: none;
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;
}
.messageHistory {
--history-row-height: max(var(--h-list-row), calc(1em + var(--space-2)));
min-width: min(180px, calc(100vw - var(--space-3)));
max-height: calc(7 * var(--history-row-height) + var(--space-2) + 2px);
padding-block: var(--space-1);
overflow-x: hidden;
}
.messageHistory [role="menu"] {
max-width: calc(var(--history-columns) + var(--space-4) + var(--space-2));
font-size: inherit;
}
.messageHistory [role="menuitem"] {
height: var(--history-row-height);
margin-inline: var(--space-1);
padding-inline: var(--space-2);
}
.amendTarget {
min-width: 0;
max-width: 112px;
}
.amendTarget > span {
overflow: hidden;
text-overflow: ellipsis;
}
.amendPicker {
width: max-content;
min-width: min(280px, calc(100vw - var(--space-4)));
padding-block: var(--space-1);
}
.amendPicker > * {
max-width: 520px;
}
.amendPickerRows {
max-height: calc(5 * var(--h-list-row));
}
.amendPickerStatus {
color: var(--fg-muted);
padding: var(--space-1) var(--space-3);
}
.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);
}
.commitAuthor {
display: flex;
align-items: baseline;
gap: var(--space-1);
padding: var(--space-1) var(--space-3) 0;
color: var(--fg-subtle);
}
.authorLink {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.authorDate {
flex: none;
white-space: nowrap;
}
/* 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-1-5);
}
.stashGroupName,
.stashTime,
.stashBranch,
.stashMessage {
min-width: 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.stashMessage {
min-width: min(4em, 100%);
}
.stashGroupName {
font-weight: 600;
}
.stashTime {
flex-shrink: 10000;
color: var(--fg-secondary);
}
.stashBranch {
max-width: 30%;
margin-inline-start: auto;
}
@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: 384px;
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;
}
.testConfiguration {
flex: 1;
min-width: 0;
}
.optIdentity {
container-type: inline-size;
}
.optIdentityFields {
display: grid;
grid-template-columns: minmax(0, 1fr);
align-items: center;
gap: var(--space-1) var(--space-2);
color: var(--fg);
font-size: var(--fs-ui);
}
.optIdentityFields > label {
overflow-wrap: anywhere;
}
@container (min-width: 328px) {
.optIdentityFields {
grid-template-columns: fit-content(32%) minmax(0, 1fr);
row-gap: var(--space-1-5);
}
}
.optDateInput {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: flex-end;
gap: var(--space-1);
}
.optDateInput input {
flex: 1 1 min(100%, 212px);
min-width: 0;
}
.optLink {
padding: 0;
border: 0;
background: none;
color: var(--link);
font: inherit;
cursor: pointer;
}
.todoFilter {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.optLink:disabled {
color: var(--fg-muted);
cursor: default;
}
.optLink:not(:disabled):hover {
color: var(--link-hover);
text-decoration: underline;
}
/* Commit checks and their retry action, above the commit buttons. */
.checkFeedback {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: var(--space-1);
min-height: var(--h-control-small);
}
.checkFeedback > .checkProblems {
align-self: stretch;
flex: 1;
}
.checkFeedback .checkProblemsList {
align-self: stretch;
}
.checkFeedback > button {
flex: none;
}
.checkProblems {
flex: none;
display: flex;
align-items: flex-start;
gap: var(--space-1-5);
min-width: 0;
padding: var(--space-1) 10px 0;
color: var(--fg-secondary);
overflow-wrap: anywhere;
font-size: var(--fs-ui);
line-height: 1.4;
}
.checkProblemsIcon {
flex: none;
margin-top: 1px;
color: var(--warning);
}
.checkPassedIcon {
flex: none;
margin-top: 1px;
color: var(--success);
}
.checkProblemsList {
display: flex;
flex-direction: column;
gap: var(--space-1);
min-width: 0;
max-height: 150px;
overflow: auto;
overscroll-behavior: contain;
}
.checkProblemTitle {
color: var(--fg);
}
.checkProblemLink {
max-width: 100%;
padding: 0;
text-align: start;
border: 0;
background: none;
color: var(--accent);
font: inherit;
cursor: pointer;
}
.checkProblemLink:hover {
text-decoration: underline;
}
.stageButton {
flex: none;
margin-left: auto;
visibility: hidden;
}
[role="treeitem"]:hover .stageButton,
.stageButtonLead {
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;
}