Files
openidea/src/features/debugger/ui/Overlays.module.css
T
l0ng-ai bf2f44d523 fix(debugger): align evaluation history with the expression editor (#4985)
Evaluate uses the configured editor font, size and line height for the expression field. Its history dropdown lines up with the full field and uses the same code typography. The Result label also names the results area for assistive technology.
2026-11-21 16:23:40 +08:00

533 lines
9.0 KiB
CSS

.spacer {
flex: 1;
}
.empty {
padding: 16px;
color: var(--fg-faint);
font-size: var(--fs-ui);
text-align: center;
}
.field {
display: flex;
flex-direction: column;
gap: var(--space-1);
}
.label {
color: var(--fg-muted);
font-size: var(--fs-small);
}
/* breakpoint popover */
.bpEditor {
width: 340px;
padding: 10px 12px;
display: flex;
flex-direction: column;
gap: var(--space-2);
}
.bpTitle {
display: flex;
align-items: center;
gap: var(--space-2);
color: var(--fg-emphasis);
font-weight: 500;
}
.bpFile {
min-width: 0;
overflow: hidden;
font-family: var(--font-mono);
font-size: var(--fs-ui);
text-overflow: ellipsis;
white-space: nowrap;
}
/* Long file names truncate; the actions keep their width. */
.bpTitle > button {
flex: none;
white-space: nowrap;
}
.bpDot {
flex: none;
width: 9px;
height: 9px;
border-radius: 50%;
background: var(--danger);
box-sizing: border-box;
}
.bpDot[data-look="off"] {
background: transparent;
border: 1.5px solid var(--danger);
}
.bpDot[data-look="unverified"] {
background: var(--fg-gutter);
}
.bpFooter {
display: flex;
align-items: center;
gap: var(--space-1-5);
margin-top: 2px;
}
.link {
display: inline-flex;
align-items: center;
gap: var(--space-1-5);
color: var(--accent);
font-size: var(--fs-ui);
cursor: pointer;
}
.link:hover {
color: var(--accent-hover);
}
/* breakpoints dialog */
.bpWindow [data-dialog-body] {
display: flex;
flex-direction: column;
overflow: hidden;
}
.bpDialog {
flex: 1 1 420px;
}
.bpListHeader {
min-height: var(--h-header);
flex: none;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: var(--space-1-5);
padding: var(--space-0-5) var(--space-2);
border-bottom: 1px solid var(--border-popup);
}
.bpListActions {
display: flex;
gap: var(--space-1);
margin-inline-start: auto;
}
.bpList {
flex: 1 0 calc(2 * var(--h-list-row));
min-height: 0;
}
.bpAuxiliary {
flex: 0 1 auto;
max-height: 42%;
min-height: 0;
overflow: auto;
}
.bpRow,
.chooserRow {
display: flex;
align-items: center;
gap: var(--space-2);
min-width: 0;
width: 100%;
padding: 0 8px;
}
.bpName {
flex: none;
font-family: var(--font-mono);
font-size: var(--fs-ui);
color: var(--fg-emphasis);
}
.bpLocation {
display: inline-flex;
min-width: 0;
align-items: baseline;
}
.bpRow .bpName,
.bpLocation .bpName {
flex: 0 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
font-family: var(--font-ui);
}
.bpLine {
flex: none;
white-space: nowrap;
font-variant-numeric: tabular-nums;
}
.bpRow > svg {
flex: none;
}
.bpDir {
flex: 1;
min-width: 0;
color: var(--fg-subtle);
font-size: var(--fs-small);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-align: right;
}
.bpCond {
flex: none;
color: var(--syn-keyword);
font-family: var(--font-mono);
font-size: var(--fs-tiny);
}
.bpDetail {
flex: 1;
min-width: 0;
min-height: 0;
overflow: auto;
}
.detail {
padding: var(--space-3);
display: flex;
flex-direction: column;
gap: var(--space-2);
}
.detail .bpTitle {
flex-wrap: wrap;
gap: var(--space-1) var(--space-2);
}
.detail :is(.bpFile, .bpLocation) {
flex: 1 1 12ch;
font-family: var(--font-ui);
}
.detail .label {
font-size: var(--fs-ui);
}
.statusLine {
color: var(--fg-subtle);
font-size: var(--fs-small);
}
.unsupportedField {
display: flex;
flex-direction: column;
gap: var(--space-1);
}
/* A disabled control gets no pointer events in WebKit: the field shows the tooltip instead. */
.unsupportedField > * {
pointer-events: none;
}
/* evaluate dialog */
.evalDialog {
height: min(440px, 100%);
}
.evalBody {
height: 100%;
padding: var(--space-2) var(--space-3) 0;
display: flex;
flex-direction: column;
gap: var(--space-2);
}
.evalExpression,
.evalResult {
display: flex;
flex-direction: column;
min-height: 0;
gap: var(--space-1);
}
/* Long fragments scroll inside the field so the result keeps its own space. */
.evalExpression {
max-height: 50%;
}
.evalImport {
flex: none;
max-height: 40%;
overflow: auto;
padding: var(--space-1);
display: flex;
flex-wrap: wrap;
align-items: center;
align-content: start;
gap: var(--space-1) var(--space-2);
border-bottom: 1px solid var(--border);
}
.evalImport > button {
max-width: 100%;
height: auto;
min-height: var(--h-control);
white-space: normal;
overflow-wrap: anywhere;
}
.evalResult {
flex: 1;
}
.evalResultContent {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
border: 1px solid var(--border-popup);
border-radius: var(--radius-small);
padding: var(--space-0-5) var(--space-1);
overflow: hidden;
}
.evalHint {
padding: var(--space-2);
color: var(--fg-muted);
font-size: var(--fs-small);
overflow: auto;
}
.chooser {
height: 260px;
}
.stepPopup {
display: flex;
flex-direction: column;
width: min(460px, calc(100vw - 12px));
padding-block-end: var(--space-0-5);
overflow: hidden;
font-size: var(--fs-ui);
}
.stepHeading {
flex: none;
padding: var(--space-1-5) var(--space-3);
color: var(--fg-strong);
font-weight: 600;
}
.stepTargets {
display: flex;
min-height: 0;
}
.stepList {
flex: 1;
min-width: 0;
}
.stepLabel {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
}
.exceptions {
border-top: 1px solid var(--border-popup);
padding: 6px 12px 8px;
display: flex;
flex-direction: column;
gap: var(--space-0-5);
}
.exceptionsTitle {
font-size: var(--fs-small);
font-weight: 600;
color: var(--fg-muted);
padding: 2px 0 4px;
}
.exceptionsEmpty {
font-size: var(--fs-small);
color: var(--fg-subtle);
}
.exceptionGroup {
display: flex;
flex-direction: column;
gap: var(--space-0-5);
}
.exceptionAdapter {
font-size: var(--fs-small);
color: var(--fg-subtle);
padding-top: 4px;
}
.exceptionRow {
display: flex;
align-items: center;
min-height: 22px;
}
.exceptionHint {
font-size: var(--fs-small);
color: var(--fg-subtle);
padding: 0 0 4px 22px;
}
.attachDialog {
height: 520px;
}
.attachDialog > [data-dialog-body] {
display: flex;
flex-direction: column;
}
.attachContent {
display: flex;
flex: 1;
flex-direction: column;
gap: var(--space-2);
min-height: 0;
padding: var(--space-3) var(--space-4);
}
.attachContent > p {
margin: 0;
color: var(--fg-muted);
}
.attachGrid {
container: attach-processes / inline-size;
display: flex;
flex: 1;
flex-direction: column;
min-height: calc(var(--h-list-row) * 4);
overflow: hidden;
border: 1px solid var(--border-popup);
border-radius: var(--radius-small);
font-size: var(--fs-ui);
}
.attachHeader,
.attachRow {
display: grid;
grid-template-columns: clamp(112px, 22vw, 184px) 60px minmax(0, 1fr);
align-items: center;
gap: var(--space-2);
width: 100%;
}
.attachHeader {
height: var(--h-list-row);
padding: 0 var(--space-2);
background: var(--bg-popup);
border-bottom: 1px solid var(--border-popup);
color: var(--fg-subtle);
}
.attachList {
--list-inset: 0px;
flex: 1;
scrollbar-gutter: stable;
}
.attachList [role="row"] {
border-radius: 0;
}
.attachPid {
text-align: end;
font-variant-numeric: tabular-nums;
}
.attachCommand {
display: flex;
gap: var(--space-2);
min-width: 0;
font-family: var(--font-mono);
}
.attachCommand > :first-child {
flex: 1;
}
.attachCell,
.attachEndpoint {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.attachPort {
display: none;
}
@container attach-processes (max-width: 480px) {
.attachFullAddress {
display: none;
}
.attachPort {
display: inline;
}
}
.attachEndpoint {
max-width: 60%;
color: var(--fg-muted);
font-size: var(--fs-small);
}
/* Evaluate: a field that grows with ⇧Enter, like IDEA's expression editor. */
.evalInputRow {
display: flex;
min-height: 0;
border-radius: var(--radius-control, 4px);
background: var(--bg-field, var(--bg-button));
box-shadow: inset 0 0 0 1px var(--border-button);
}
.evalInputRow:focus-within {
box-shadow:
inset 0 0 0 1px var(--focus-ring),
0 0 0 1px var(--focus-ring);
}
.evalInput {
flex: 1;
min-width: 0;
min-height: 0;
padding: var(--space-1) var(--space-2);
resize: none;
appearance: none;
border: 0;
background: none;
color: var(--fg-strong);
font-family: var(--evaluate-font, var(--font-mono));
font-size: var(--evaluate-font-size, var(--fs-code));
font-weight: var(--fw-code);
line-height: var(--evaluate-line-height, var(--lh-code));
outline: none;
-webkit-user-select: text;
user-select: text;
}
.evalInput::placeholder {
color: var(--fg-faint);
}
.evalHistory {
align-self: flex-start;
margin: var(--space-1);
}
.evalHistoryPopup {
width: 0;
padding-block: var(--space-1);
}
.evalHistoryPopup [role="menuitem"] {
height: max(var(--h-list-row), var(--evaluate-line-height, var(--lh-code)));
font-family: var(--evaluate-font, var(--font-mono));
font-size: var(--evaluate-font-size, var(--fs-code));
font-weight: var(--fw-code);
}